code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh -x
# Set up the initial Ubuntu/dapper template image, for use when duplicating
# the install to multiple server/client tests. Makes use of tunbr and
# a presetup br1, squid, and dnsmasq. Must run from the cbtb/host-setup/
# directory to use other scripts and data.
# $Id: dapper-i386.sh 837 2007-11-02 20:4... | Shell |
#!/bin/sh -x
# Run the dapper/i386 image using -snapshot to verify that it works.
# The template should be left unmodified.
# Any parameters are copied to the destination instance and executed as root
# $Id: test-dapper-i386.sh 769 2007-10-05 03:20:43Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Die... | Shell |
#!/bin/sh
#
# $Id: proxy.sh 629 2007-08-29 23:42:00Z drake.diedrich $
#
# Set up the local machine (Debian or derivative) with the pass-through proxy.
set -e
VIRTNET="192.168.23.0/24"
VIRTHOST="192.168.23.1"
[ -x /etc/default/testenv ] && . /etc/default/testenv
# if apache2 was already installed and the default Virt... | Shell |
#!/bin/sh
# Turn the swap partition into a physical volume in the sysvg volume group
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
modprobe dm-mod || true
if egrep dm_mod /proc/modules ; then
dev=`awk '/swap/ { print $1; }' /etc/fstab`
egrep dm-mod /etc/mo... | Shell |
#!/bin/sh
#
# $Id$
#
# Install and configure atftpd for use with the virtualization test
# environment for zumastor.
#
# Copyright 2007 Google Inc. All rights reserved.
# Author: Drake Diedrich (dld@google.com)
VIRTHOST="192.168.23.1"
[ -x /etc/default/testenv ] && . /etc/default/testenv
# Create /tftpboot if it doe... | Shell |
#!/bin/sh
# run after the base packages are installed, from inside the d-i environment
# copied into the initrd so it doesn't need to be fetched over network
# connections.
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
mkdir /target/root/.ssh
cp /authorized_ke... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Install and configure dnsmasq to dynamically serve DNS and DHCP
# for the range of addresses managed by tunbr, part of the zumastor
# virtual test environment.
# The default /etc/dnsmasq.conf is locally diverted and replaced
# with the configuration file inline below, with instructions o... | Shell |
#!/bin/sh
# run early in the dapper install, from the preseed
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
| Shell |
#!/bin/sh -x
# Set up the initial Ubuntu/dapper template image, for use when duplicating
# the install to multiple server/client tests. Makes use of tunbr and
# a presetup br1, squid, and dnsmasq. Must run from the cbtb/host-setup/
# directory to use other scripts and data.
# $Id$
# Copyright 2007 Google Inc.
# Aut... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Add the br1 bridge to /etc/network/interfaces, as required by tests in
# the tunbr virtualization environment.
#
VIRTNET="192.168.23.0/24"
VIRTHOST="192.168.23.1"
VIRTBR="br1"
[ -x /etc/default/testenv ] && . /etc/default/testenv
if echo $VIRTNET | egrep "/24"
then
NETWORK=`echo $VIRTNET |... | Shell |
#!/bin/sh
# run early in the dapper install, from the preseed
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
| Shell |
#!/bin/sh
#
# $Id$
#
# Set up the local machine (Debian or derivative) with the pass-through proxy.
set -e
VIRTNET="192.168.23.0/24"
VIRTHOST="192.168.23.1"
[ -x /etc/default/testenv ] && . /etc/default/testenv
# if apache2 was already installed and the default VirtualHost is already
# enabled, leave it alone. Else... | Shell |
#!/bin/sh -x
# Run the dapper/i386 image using -snapshot to verify that it works.
# The template should be left unmodified.
# Any parameters are copied to the destination instance and executed as root
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
SSH='ssh -o S... | Shell |
#!/bin/sh -x
# Set up the initial Debian/etch template image, for use when duplicating
# the install to multiple server/client tests. Makes use of tunbr and
# a presetup br1, squid, and dnsmasq.
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
SSH='ssh -o Strict... | Shell |
#!/bin/sh -x
# Run the etch/i386 image using -snapshot to verify that it works.
# The template should be left unmodified.
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
if [ "x$MACFILE" = "x" -o "x$MACADDR" = "x" -o "x$IFACE" = "x" \
-o "x$IPADDR" = "x" ] ... | Shell |
#!/bin/sh
# run after the base packages are installed, from inside the d-i environment
# copied into the initrd so it doesn't need to be fetched over network
# connections.
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
mkdir /target/root/.ssh
cp /authorized_ke... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Install any other zumastor testenv (cbtb) dependencies
aptitude install timeout uml-utilities
| Shell |
#!/bin/sh -x
#
# $Id: dnsmasq.sh 629 2007-08-29 23:42:00Z drake.diedrich $
#
# Install and configure dnsmasq to dynamically serve DNS and DHCP
# for the range of addresses managed by tunbr, part of the zumastor
# virtual test environment.
# The default /etc/dnsmasq.conf is locally diverted and replaced
# with the... | Shell |
#!/bin/sh -x
#
# $Id: dependencies.sh 654 2007-09-05 21:37:06Z drake.diedrich $
#
# Install any other zumastor testenv (cbtb) dependencies
aptitude install timeout uml-utilities
| Shell |
#!/bin/sh
#
# $Id: atftpd.sh 629 2007-08-29 23:42:00Z drake.diedrich $
#
# Install and configure atftpd for use with the virtualization test
# environment for zumastor.
#
# Copyright 2007 Google Inc. All rights reserved.
# Author: Drake Diedrich (dld@google.com)
VIRTHOST="192.168.23.1"
[ -x /etc/default/testenv ] && ... | Shell |
#!/bin/sh
# run early in the dapper install, from the preseed
# $Id: dapper-early.sh 629 2007-08-29 23:42:00Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
| Shell |
#!/bin/sh -x
#
# $Id: interfaces-bridge.sh 629 2007-08-29 23:42:00Z drake.diedrich $
#
# Add the br1 bridge to /etc/network/interfaces, as required by tests in
# the tunbr virtualization environment.
#
VIRTNET="192.168.23.0/24"
VIRTHOST="192.168.23.1"
VIRTBR="br1"
[ -x /etc/default/testenv ] && . /etc/default/testenv
... | Shell |
#!/bin/sh
# Turn the swap partition into a physical volume in the sysvg volume group
# $Id: swap2sysvg.sh 629 2007-08-29 23:42:00Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
modprobe dm-mod || true
if egrep dm_mod /proc/modules ; then
dev=`awk '... | Shell |
#!/bin/sh -x
# Set up the initial Debian/etch template image, for use when duplicating
# the install to multiple server/client tests. Makes use of tunbr and
# a presetup br1, squid, and dnsmasq.
# $Id: etch-i386.sh 629 2007-08-29 23:42:00Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@g... | Shell |
#!/bin/sh -x
# Run the zuma/dapper/i386 image using -snapshot to verify that it works.
# The template should be left unmodified.
# Any parameters are copied to the destination instance and executed as root
# $Id: test-zuma-dapper-i386.sh 1026 2007-12-02 04:25:18Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author... | Shell |
#!/bin/bash -x
#
# $Id: ptxdist-image.sh 688 2007-09-12 23:05:01Z chklin $
#
# based partially on buildcurrent.sh
# builds a ptxdist image with zumastor kernel and userland support
#
# Copyright 2007 Google Inc.
# Author: Chuan-kai Lin (cklin@google.com)
KERNEL_VERSION=`awk '/^2\.6\.[0-9]+(\.[0-9]+)?$/ { print $1; }' ... | Shell |
#!/bin/sh -x
#
# $Id: dapper-build.sh 928 2007-11-19 19:33:33Z drake.diedrich $
#
# Launch a dapper-i386 snapshot
# create a build user in the snapshot
# copy the zumastor source to ~build
# run buildcurrent.sh as user build in the testenv instance
# pull the debs out of the instance
# shut down the instance
#
# Copy t... | Shell |
#!/bin/sh -x
#
# Build an image with current or provided zumastor debs installed, booted,
# and ready to immediately run single-node tests.
# Inherits from the generic dapper template.
#
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
KERNEL_VERSION=`awk '/^2\.6\.... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Launch a dapper-i386 snapshot
# create a build user in the snapshot
# copy the zumastor source to ~build
# run buildcurrent.sh as user build in the testenv instance
# pull the debs out of the instance
# shut down the instance
#
# Copy this to a directory outside the working directory, and laun... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Continuously check whether a new build has completed, and install
# the new debs into a new image to use for testing. Create a symlink to
# the new image for the continuous-test script to notice and launch tests
# against.
repo="${PWD}/zumastor"
top="${PWD}"
branch=`cat $repo/Version`
buil... | Shell |
#!/bin/bash -x
#
# $Id$
#
# based partially on buildcurrent.sh
# builds a ptxdist image with zumastor kernel and userland support
#
# Copyright 2007 Google Inc.
# Author: Chuan-kai Lin (cklin@google.com)
KERNEL_VERSION=`awk '/^2\.6\.[0-9]+(\.[0-9]+)?$/ { print $1; }' KernelVersion`
if [ "x$KERNEL_VERSION" = "x" ] ; th... | Shell |
#!/bin/sh -x
#
# $Id$
#
#
# Continuously svn update, run the encapsulated build
# Create symlinks to the new debs each time a new build is successful,
# so other continuous-* scripts can tell at a glance that a new one
# has arrived.
mailto=/usr/bin/mailto
sendmail=/usr/sbin/sendmail
biabam=/usr/bin/biabam
TUNBR=tunbr... | Shell |
#!/bin/sh -x
# Run the zuma/dapper/i386 image using -snapshot to verify that it works.
# The template should be left unmodified.
# Any parameters are copied to the destination instance and executed as root
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
SSH='ssh... | Shell |
#!/bin/sh -x
#
# $Id$
#
#
# continuously run an svn update on a zumastor repository with the cbtb/tests
# Whenever the last successful test revision differs from the last successful
# install revision, fire off a new round of tests.
top="${PWD}"
branch=`cat $top/zumastor/Version`
installrev=''
if [ -f ${top}/zumastor... | Shell |
#!/bin/sh -x
#
# Build an image with current or provided zumastor debs installed, booted,
# and ready to immediately run single-node tests.
# Inherits from the generic dapper template.
#
# $Id: zuma-dapper-i386.sh 839 2007-11-05 20:09:37Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@googl... | Shell |
#!/bin/sh -x
#
# $Id: continuous-install.sh 1028 2007-12-02 06:56:54Z drake.diedrich $
#
# Continuously check whether a new build has completed, and install
# the new debs into a new image to use for testing. Create a symlink to
# the new image for the continuous-test script to notice and launch tests
# against.
rep... | Shell |
#!/bin/sh -x
#
# $Id: continuous-test.sh 1022 2007-12-02 02:18:42Z drake.diedrich $
#
#
# continuously run an svn update on a zumastor repository with the cbtb/tests
# Whenever the last successful test revision differs from the last successful
# install revision, fire off a new round of tests.
top="${PWD}"
branch=`cat... | Shell |
#!/bin/sh -x
#
# $Id: continuous-build.sh 1022 2007-12-02 02:18:42Z drake.diedrich $
#
#
# Continuously svn update, run the encapsulated build
# Create symlinks to the new debs each time a new build is successful,
# so other continuous-* scripts can tell at a glance that a new one
# has arrived.
mailto=/usr/bin/mailto... | Shell |
#!/bin/sh -x
#
# $Id: replication-zumastor.sh 795 2007-10-17 19:17:48Z drake.diedrich $
#
# Set up sysvg with origin and snapshot store on master and secondary machine.
# Begin replication cycle between machines
# and wait until it arrives and can be verified.
# Modify the origin and verify that the modification also a... | Shell |
#!/bin/sh -x
#
# $Id: nfs-test.sh 766 2007-10-02 23:57:21Z drake.diedrich $
#
# Export zumastor over NFS to a slave and then perform some filesystem
# actions. Verify that the filesystem actions arrive in the snapshot store.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
... | Shell |
#!/bin/sh -x
#
# $Id: replication-ddsnap.sh 1026 2007-12-02 04:25:18Z drake.diedrich $
#
# Use ddsnap directly to create a snapshot, modify the origin, and create
# another snapshot. Verify that checksums change and remain correct.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@googl... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Use ddsnap directly to create a snapshot, modify the origin, and create
# another snapshot. Verify that checksums change and remain correct.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
rc=0
# Terminate test in 20 minutes. Read by ... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Export zumastor over CIFS to a slave and then perform some filesystem
# actions. Verify that the filesystem actions arrive in the snapshot store.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Mark Roach (mrroach@google.com)
# Original Author: Drake Diedrich (dld@google.com)
... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Export zumastor over NFS to a slave and then perform some filesystem
# actions. Verify that the filesystem actions arrive in the snapshot store.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
rc=0
# Terminate test in 20 minutes. Read ... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Set up sysvg with origin and snapshot store on master and secondary machine.
# Begin replication cycle between machines
# and wait until it arrives and can be verified.
# Modify the origin and verify that the modification also arrives at the
# backup.
#
# Requires that the launch environment (... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Export zumastor over CIFS to a slave and then perform some filesystem
# actions. Verify that the filesystem actions arrive in the snapshot store.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Mark Roach (mrroach@google.com)
# Original Author: Drake Diedrich (dld@google.com)
... | Shell |
#!/bin/sh -x
# $Id$
# simple paramter script for zuma-test-dapper-i386.sh script
# will wait until return is pressed
set -e
env
hostname
ifconfig eth0 || true
ifconfig eth1 || true
echo "slogin root@ the IP address above to work interactively"
echo "Press return to end the session"
read ret
| Shell |
#!/bin/sh -x
# $Id: wait.sh 632 2007-08-30 01:36:33Z drake.diedrich $
# simple paramter script for zuma-test-dapper-i386.sh script
# will wait until return is pressed
set -e
env
hostname
ifconfig eth0 || true
ifconfig eth1 || true
echo "slogin root@ the IP address above to work interactively"
echo "Press return to... | Shell |
#!/bin/sh -x
#
# $Id: boot-order.sh 741 2007-09-26 14:48:31Z drake.diedrich $
#
# Boot and install insserv, and make sure zumastor doesn't show up
# in its list of warnings.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
TIMEOUT=1200
echo "1..2"
rc=0
aptitude i... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor.sh 786 2007-10-11 03:41:54Z drake.diedrich $
#
# Set up sysvg with origin and snapshot store, iterate through a few
# snapshots to verify that each is unique and stable when taken.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-ddsnap.sh 789 2007-10-11 11:53:50Z drake.diedrich $
#
# Use ddsnap directly to create a snapshot, modify the origin, and create
# another snapshot. Verify that checksums change and remain correct.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.co... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Boot and install insserv, and make sure zumastor doesn't show up
# in its list of warnings.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
TIMEOUT=1200
echo "1..2"
rc=0
aptitude install -y insserv nfs-kernel-server
echo "ok 1 - insserv... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Use ddsnap directly to create a snapshot, modify the origin, and create
# another snapshot. Verify that checksums change and remain correct.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
rc=0
# Terminate test in 10 minutes. Read by ... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Set up sysvg with origin and snapshot store, iterate through a few
# snapshots to verify that each is unique and stable when taken.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
# Terminate test in 10 minutes. Read by test harness.
TIM... | Shell |
#!/bin/sh
#
# $Id: tunbr-config 673 2007-09-10 20:59:52Z chklin $
#
# Source /etc/default/testenv for the VIRT* variables, and output
# appropriate compiler flags to build a locally customized tunbr
# for the network and interface bridge specified.
if [ -x /etc/default/testenv ]
then
. /etc/default/testenv
fi
if [ ... | Shell |
#!/bin/sh
#
# $Id$
#
# Source /etc/default/testenv for the VIRT* variables, and output
# appropriate compiler flags to build a locally customized tunbr
# for the network and interface bridge specified.
if [ -x /etc/default/testenv ]
then
. /etc/default/testenv
fi
if [ "x$VIRTNET" != "x" ]
then
echo $VIRTNET | \
... | Shell |
#!/bin/bash
for vol in $(ls /var/run/zumastor/cron) ; do
zumastor snapshot $vol daily
done
| Shell |
#!/bin/bash
for vol in $(ls /var/run/zumastor/cron) ; do
zumastor snapshot $vol daily
done
| Shell |
#!/bin/bash
for vol in $(ls /var/run/zumastor/cron) ; do
zumastor snapshot $vol hourly
done
| Shell |
#!/bin/bash
for vol in $(ls /var/run/zumastor/cron) ; do
zumastor snapshot $vol hourly
done
| Shell |
#!/bin/bash
for vol in $(ls /var/run/zumastor/cron) ; do
zumastor snapshot $vol weekly
done
| Shell |
#!/bin/bash
for vol in $(ls /var/run/zumastor/cron) ; do
zumastor snapshot $vol weekly
done
| Shell |
#!/bin/bash
# Zumastor Linux Storage Server
# Copyright (c) 2006 Google Inc.
# Author: Daniel Phillips <phillips@google.com>
# Licensed under the GNU GPL version 2
### BEGIN INIT INFO
# Provides: zumastor
# Required-Start: $network
# Required-Stop: $network
# Should-Start: lvm $named
# should-Sto... | Shell |
#!/bin/bash
# Zumastor Linux Storage Server
# Copyright (c) 2006 Google Inc.
# Author: Daniel Phillips <phillips@google.com>
# Licensed under the GNU GPL version 2
### BEGIN INIT INFO
# Provides: zumastor
# Required-Start: $network
# Required-Stop: $network
# Should-Start: lvm $named
# should-Sto... | Shell |
#!/bin/sh
rm /bin/zumastor
rm -r /lib/zumastor
rm -r /var/lib/zumastor
rm -r /var/run/zumastor
rm -r /var/log/zumastor
rm /etc/cron.hourly/zumastor
rm /etc/cron.daily/zumastor
rm /etc/cron.weekly/zumastor
rm /etc/init.d/zumastor
rm -r /etc/zumastor
| Shell |
#!/bin/sh
[ -z "$DESTDIR" ] && DESTDIR=/
rm ${DESTDIR}/lib/zumastor >/dev/null 2>&1 # in case of symlink
rm ${DESTDIR}/var/lib/zumastor >/dev/null 2>&1 # in case of symlink
rm ${DESTDIR}/var/run/zumastor >/dev/null 2>&1 # in case of symlink
rm ${DESTDIR}/etc/zumastor >/dev/null 2>&1 # in case of symlink
echo ${DESTD... | Shell |
#!/bin/bash
. /lib/zumastor/common
clear
while true; do
clear
for vol in $(ls $VOLUMES 2>/dev/null); do
echo Volume $vol:
sock=$SERVERS/$vol
size=$(ddsnap status $sock --size) || exit 1
size=$(($size*512))
for host in $(ls $VOLUMES/$vol/targets 2>/dev/null); do
echo " Target: $host"
sendfile=$VOLUMES/$vol/t... | Shell |
#!/bin/sh
rm /bin/zumastor
rm -r /lib/zumastor
rm -r /var/lib/zumastor
rm -r /var/run/zumastor
rm -r /var/log/zumastor
rm /etc/cron.hourly/zumastor
rm /etc/cron.daily/zumastor
rm /etc/cron.weekly/zumastor
rm /etc/init.d/zumastor
rm -r /etc/zumastor
| Shell |
#!/bin/sh
ln -s $(pwd)/bin/zumastor /bin/zumastor
ln -s $(pwd)/lib/zumastor /lib/zumastor
ln -s $(pwd)/var/lib/zumastor /var/lib/zumastor
ln -s $(pwd)/var/run/zumastor /var/run/zumastor
ln -s $(pwd)/var/log/zumastor /var/log/zumastor
ln -s $(pwd)/etc/cron.hourly/zumastor /etc/cron.hourly/zumastor
ln -s $(pwd)/etc/cro... | Shell |
#!/bin/sh
[ -z "$DESTDIR" ] && DESTDIR=/
rm ${DESTDIR}/lib/zumastor >/dev/null 2>&1 # in case of symlink
rm ${DESTDIR}/var/lib/zumastor >/dev/null 2>&1 # in case of symlink
rm ${DESTDIR}/var/run/zumastor >/dev/null 2>&1 # in case of symlink
rm ${DESTDIR}/etc/zumastor >/dev/null 2>&1 # in case of symlink
echo ${DESTD... | Shell |
#!/bin/bash
. /lib/zumastor/common
clear
while true; do
clear
for vol in $(ls $VOLUMES 2>/dev/null); do
echo Volume $vol:
sock=$SERVERS/$vol
size=$(ddsnap status $sock --size) || exit 1
size=$(($size*512))
for host in $(ls $VOLUMES/$vol/targets 2>/dev/null); do
echo " Target: $host"
sendfile=$VOLUMES/$vol/t... | Shell |
#!/bin/sh
ln -s $(pwd)/bin/zumastor /bin/zumastor
ln -s $(pwd)/lib/zumastor /lib/zumastor
ln -s $(pwd)/var/lib/zumastor /var/lib/zumastor
ln -s $(pwd)/var/run/zumastor /var/run/zumastor
ln -s $(pwd)/var/log/zumastor /var/log/zumastor
ln -s $(pwd)/etc/cron.hourly/zumastor /etc/cron.hourly/zumastor
ln -s $(pwd)/etc/cro... | Shell |
#!/bin/bash
# Zumastor Linux Storage Server
# Copyright (c) 2006 Google Inc.
# Author: Daniel Phillips <phillips@google.com>
# Licensed under the GNU GPL version 2
### BEGIN INIT INFO
# Provides: zumastor
# Required-Start: $network
# Required-Stop: $network
# Should-Start: lvm $named
# should-Sto... | Shell |
#!/bin/sh
if [ "$1" = "purge" ] ; then
rm -rf /var/lib/zumastor
fi
| Shell |
#!/bin/sh
if [ "$1" = "purge" ] ; then
rm -rf /var/lib/zumastor
fi
| Shell |
#!/bin/bash
# Zumastor Linux Storage Server
# Copyright (c) 2006 Google Inc.
# Author: Daniel Phillips <phillips@google.com>
# Licensed under the GNU GPL version 2
declare -r VOLUMES=/var/lib/zumastor/volumes
declare -r RUNPATH=/var/run/zumastor
declare -r LOGS=/var/log/zumastor
declare -r RUNFILE=$RUNPATH/running
dec... | Shell |
#!/bin/bash
# Zumastor Linux Storage Server
# Copyright (c) 2006 Google Inc.
# Author: Daniel Phillips <phillips@google.com>
# Licensed under the GNU GPL version 2
declare -r VOLUMES=/var/lib/zumastor/volumes
declare -r RUNPATH=/var/run/zumastor
declare -r LOGS=/var/log/zumastor
declare -r RUNFILE=$RUNPATH/running
dec... | Shell |
#!/bin/sh
echo set title \"Time to untar a kernel source tree vs Number of Snapshots\"
echo set xlabel \"Number of Snapshots\"
echo set ylabel \"Real time \(s\) to untar kernel and sync\"
echo set key $X_COORD_PLOT_KEY, 100
echo set terminal jpeg
echo set output \"all_tests.jpg\"
echo -n "plot "
count=0
for testfile i... | Shell |
#!/bin/sh
set -u # let make sure we use initialized variable
AGENT_LOG=/tmp/agent.log
SERVER_LOG=/tmp/server.log
AGENT_PIPE=/tmp/control
SERVER_PIPE=/tmp/server
. config.sh
TEST_ROOT_DIR=~/zumastor/zumastor/test/nsnaps
X_COORD_PLOT_KEY=0
global_test_num=0
function setup_tar() {
mkfs.ext3 $TAR_DEV || { echo "un... | Shell |
#!/bin/sh
set -u # let make sure we use initialized variable
AGENT_LOG=/tmp/agent.log
SERVER_LOG=/tmp/server.log
AGENT_PIPE=/tmp/control
SERVER_PIPE=/tmp/server
. config.sh
TEST_ROOT_DIR=~/zumastor/zumastor/test/nsnaps
X_COORD_PLOT_KEY=0
global_test_num=0
function setup_tar() {
mkfs.ext3 $TAR_DEV || { echo "un... | Shell |
#!/bin/sh
set -u # let make sure we use initialized variable
#setting up system parameters for nsnaps script
#Example:
#VOLUME_NAME= volume you are replicating
#ORIGIN_MOUNT= location of the volume's mount point
#TAR_DEV= tar device
#TAR_MNT= location of where TAR_DEV is mounted
#SOURCE_TAR= kernel source tree
#KERN... | Shell |
#!/bin/sh
echo set title \"Time to untar a kernel source tree vs Number of Snapshots\"
echo set xlabel \"Number of Snapshots\"
echo set ylabel \"Real time \(s\) to untar kernel and sync\"
echo set key $X_COORD_PLOT_KEY, 100
echo set terminal jpeg
echo set output \"all_tests.jpg\"
echo -n "plot "
count=0
for testfile i... | Shell |
#!/bin/sh
set -u # let make sure we use initialized variable
#setting up system parameters for nsnaps script
#Example:
#VOLUME_NAME= volume you are replicating
#ORIGIN_MOUNT= location of the volume's mount point
#TAR_DEV= tar device
#TAR_MNT= location of where TAR_DEV is mounted
#SOURCE_TAR= kernel source tree
#KERN... | Shell |
#!/bin/bash -x
#
# $Id$
#
# based on build_packages.sh
# builds whatever is in current working directory,
# does not pull any external source
# may be run inside an isolated virtual machine for safe automatic builds
#
# Copyright 2007 Google Inc. All rights reserved.
# Author: Drake Diedrich (dld@google.com)
KERNEL_V... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Install build dependencies if they are missing on the qemu build machine
apt-get update
# I wish these worked
pushd zumastor
apt-get build-dep zumastor
popd
pushd ddsnap
apt-get build-dep ddsnap
popd
# manually install all build dependencies, including kernel build
aptitude -y install \
... | Shell |
#!/bin/bash
# zumastor automated build script
# Shapor Naghibzadeh <shapor@google.com>
KERNEL_VERSION=2.6.21.1
BUILD_DIR=build # relative to current directory
LOG=/dev/null
TIME=`date +%s`
[[ -e $1 ]] || { echo "Usage: $0 <path_to_kernel_config> [revision]"; exit 1; }
[[ $# -eq 2 ]] && REV="-r $2"
mkdir $BUILD_DIR ... | Shell |
#!/bin/bash
tmp=/tmp/$$
ver=$1
kpath=$2
[[ -z $ver ]] && { echo "usage: $0 <kernelversion> <pathintree>"; exit 1; }
[[ -d kernel ]] || { echo "no kernel dir"; exit 1; }
[[ -d patches/$ver ]] || { echo "no patches/$ver dir"; exit 1; }
mkdir $tmp || { echo "tmpdir $tmp already exists"; exit 1; }
mkdir $tmp/linux-$ver.or... | Shell |
#!/bin/bash
pushd patches >/dev/null
vers=$(echo *)
popd >/dev/null
for ver in $vers
do
./scripts/genpatch.sh $ver drivers/md > patches/$ver/00_dm-ddsnap.AUTO
done
| Shell |
#!/bin/bash
tmp=/tmp/$$
ver=$1
kpath=$2
[[ -z $ver ]] && { echo "usage: $0 <kernelversion> <pathintree>"; exit 1; }
[[ -d kernel ]] || { echo "no kernel dir"; exit 1; }
[[ -d patches/$ver ]] || { echo "no patches/$ver dir"; exit 1; }
mkdir $tmp || { echo "tmpdir $tmp already exists"; exit 1; }
mkdir $tmp/linux-$ver.or... | Shell |
#!/bin/bash
pushd patches >/dev/null
vers=$(echo *)
popd >/dev/null
for ver in $vers
do
./scripts/genpatch.sh $ver drivers/md > patches/$ver/00_dm-ddsnap.AUTO
done
| Shell |
#!/bin/bash
# zumastor automated build script
# Shapor Naghibzadeh <shapor@google.com>
KERNEL_VERSION=2.6.21.1
BUILD_DIR=build # relative to current directory
LOG=/dev/null
TIME=`date +%s`
[[ -e $1 ]] || { echo "Usage: $0 <path_to_kernel_config> [revision]"; exit 1; }
[[ $# -eq 2 ]] && REV="-r $2"
mkdir $BUILD_DIR ... | Shell |
#!/bin/sh -x
#
# $Id: builddepends.sh 798 2007-10-18 21:23:46Z drake.diedrich $
#
# Install build dependencies if they are missing on the qemu build machine
apt-get update
# I wish these worked
pushd zumastor
apt-get build-dep zumastor
popd
pushd ddsnap
apt-get build-dep ddsnap
popd
# manually install all build dep... | Shell |
#!/bin/sh
set -x
#
# We don't expect or want any arguments.
#
if [ $# -ge 1 ]; then
usage
fi
#
# Add the tet user if it doesn't already exist.
#
grep tet /etc/passwd
if [ $? -ne 0 ]; then
adduser --system tet
fi
#
# Extract the tarfiles into the tet home directory.
#
cd /home/tet
mkdir TET
cd TET
tar xf /tmp/tet.ta... | Shell |
#!/bin/sh
set -x
# Name of the Zumastor volume.
TESTVOL=testvol
usage()
{
echo "Usage: $0 [-v <test volume>]" 1>&2
echo "Where <test volume> is the name of the volume that will be used for testing."
exit 1
}
while getopts "v:" option ; do
case "$option" in
v) TESTVOL="$OPTARG";;
*) usage;;
esac
done
shift $(... | Shell |
#!/bin/sh
#set -x
# Name of the volume group that has the origin and snap store volumes.
VGNAME=sysvg
# Name and size in megabytes of the origin volume.
ORIGNAME=ztestorig
ORIGSIZE=4096
# Name and size in megabytes of the snap store volume.
SNAPNAME=ztestsnap
SNAPSIZE=2048
# Name of the Zumastor volume.
TESTVOL=testv... | Shell |
#!/bin/sh
#set -x
#
# Potentially modifiable parameters.
#
# Number of virtual images to create.
NUMIMAGES=1
# The number to start with.
STARTNUM=1
# Working directory, where images and ancillary files live.
WORKDIR=~/local
# The CD image to install.
CDIMAGE=~/cd/test.iso
# Suffix of disk image names.
IMGSUFFIX=.img
... | Shell |
#!/bin/sh
#set -x
# Default name if we create a new volume group
VGNAME=sysvg
# Name and size in megabytes of volume to be used for origin.
ORIGVOLNAME=ztestorig
ORIGVOLSIZE=2048
# Name and size in megabytes of volume to be used for snap store.
SNAPVOLNAME=ztestsnap
SNAPVOLSIZE=8192
usage()
{
echo "Usage: $0 [-n <v... | Shell |
#!/bin/sh
#set -x
#
# Potentially modifiable parameters.
#
# Number of virtual images to create.
NUMIMAGES=1
# The number to start with.
STARTNUM=1
# Working directory, where images and ancillary files live.
WORKDIR=~/local
# The CD image to install.
CDIMAGE=~/cd/test.iso
# Suffix of disk image names.
IMGSUFFIX=.img
... | Shell |
#!/bin/sh
#set -x
#
# Potentially modifiable parameters.
#
# Working directory, where images and ancillary files live.
WORKDIR=~/local
# Where the svn output goes.
BUILDLOG=build.log
# Name of target Zumastor support directory. This must match the name in the
# preseed file! Note: No leading "/"!
ZUMADIR=zinst
# W... | Shell |
#!/bin/sh
set -x
# Name of the Zumastor volume.
TESTVOL=testvol
usage()
{
echo "Usage: $0 [-v <test volume>]" 1>&2
echo "Where <test volume> is the name of the volume that will be used for testing."
exit 1
}
while getopts "v:" option ; do
case "$option" in
v) TESTVOL="$OPTARG";;
*) usage;;
esac
done
shift $(... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.