diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-10-06 07:32:07 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-06 11:02:35 -0700 |
commit | 7c7cf68b798ac6ff1d4727c288cdcba15589e456 (patch) | |
tree | df4bad50d200c1bb05b03a8aee5382aae5110892 /extras/test | |
parent | 4880761284daf6da623322e1d3f7152486c5770f (diff) |
changes for the sanity script
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1436 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1436
Diffstat (limited to 'extras/test')
-rwxr-xr-x | extras/test/gluster_commands.sh | 62 |
1 files changed, 48 insertions, 14 deletions
diff --git a/extras/test/gluster_commands.sh b/extras/test/gluster_commands.sh index ea42a577d..5e7aea6fb 100755 --- a/extras/test/gluster_commands.sh +++ b/extras/test/gluster_commands.sh @@ -68,12 +68,12 @@ gluster volume replace-brick vol `hostname`:/exports/exp1 `hostname`:/exports/ex echo "replcing brick for abort operation" -gluster volume replace-brick vol `hostname`:/exports/exp1 `hostname`:/exports/exp3 start -gluster volume replace-brick vol `hostname`:/exports/exp1 `hostname`:/exports/exp3 status -gluster volume replace-brick vol `hostname`:/exports/exp1 `hostname`:/exports/exp3 pause -gluster volume replace-brick vol `hostname`:/exports/exp1 `hostname`:/exports/exp3 status -gluster volume replace-brick vol `hostname`:/exports/exp1 `hostname`:/exports/exp3 start -gluster volume replace-brick vol `hostname`:/exports/exp1 `hostname`:/exports/exp3 abort +gluster volume replace-brick vol `hostname`:/exports/exp3 `hostname`:/exports/exp1 start +gluster volume replace-brick vol `hostname`:/exports/exp3 `hostname`:/exports/exp1 status +gluster volume replace-brick vol `hostname`:/exports/exp3 `hostname`:/exports/exp1 pause +gluster volume replace-brick vol `hostname`:/exports/exp3 `hostname`:/exports/exp1 status +gluster volume replace-brick vol `hostname`:/exports/exp3 `hostname`:/exports/exp1 start +gluster volume replace-brick vol `hostname`:/exports/exp3 `hostname`:/exports/exp1 abort gluster volume info @@ -82,14 +82,14 @@ df -h sleep 1 echo "removing brick......." -gluster volume remove-brick vol `hostname`:/exports/exp2 +gluster --mode=script volume remove-brick vol `hostname`:/exports/exp2 gluster volume info sleep 1 df -h sleep 1 echo "stopping distribute volume......" -gluster volume stop vol +gluster --mode=script volume stop vol gluster volume info sleep 1 umount /mnt/client @@ -126,22 +126,38 @@ echo "replacing-brick....." gluster volume replace-brick mirror `hostname`:/exports/exp1 `hostname`:/exports/exp5 start gluster volume replace-brick mirror `hostname`:/exports/exp1 `hostname`:/exports/exp5 status gluster volume replace-brick mirror `hostname`:/exports/exp1 `hostname`:/exports/exp5 pause -gluster volume replace-brick mirror `hostname`:/exports/exp1 `hostname`:/exports/exp5 abort +gluster volume replace-brick mirror `hostname`:/exports/exp1 `hostname`:/exports/exp5 status +gluster volume replace-brick mirror `hostname`:/exports/exp1 `hostname`:/exports/exp5 start +gluster volume replace-brick mirror `hostname`:/exports/exp1 `hostname`:/exports/exp5 status gluster volume replace-brick mirror `hostname`:/exports/exp1 `hostname`:/exports/exp5 commit gluster volume info sleep 1 df -h sleep 1 +echo "replacing vrick for abort operation" +gluster volume replace-brick mirror `hostname`:/exports/exp5 `hostname`:/exports/exp1 start +gluster volume replace-brick mirror `hostname`:/exports/exp5 `hostname`:/exports/exp1 status +gluster volume replace-brick mirror `hostname`:/exports/exp5 `hostname`:/exports/exp1 pause +gluster volume replace-brick mirror `hostname`:/exports/exp5 `hostname`:/exports/exp1 status +gluster volume replace-brick mirror `hostname`:/exports/exp5 `hostname`:/exports/exp1 start +gluster volume replace-brick mirror `hostname`:/exports/exp5 `hostname`:/exports/exp1 status +gluster volume replace-brick mirror `hostname`:/exports/exp5 `hostname`:/exports/exp5 abort + +gluster volume info +sleep 1 +df -h +sleep 1 + echo "removeing-brick....." -gluster volume remove-brick mirror replica 2 `hostname`:/exports/exp3 `hostname`:/exports/exp4 +gluster --mode=script volume remove-brick mirror replica 2 `hostname`:/exports/exp3 `hostname`:/exports/exp4 gluster volume info sleep 1 df -h sleep 1 echo "stopping replicate volume....." -gluster volume stop mirror +gluster --mode=script volume stop mirror gluster volume info sleep 1 umount /mnt/client @@ -179,21 +195,39 @@ echo "replacing brick....." gluster volume replace-brick str `hostname`:/exports/exp1 `hostname`:/exports/exp5 start gluster volume replace-brick str `hostname`:/exports/exp1 `hostname`:/exports/exp5 status gluster volume replace-brick str `hostname`:/exports/exp1 `hostname`:/exports/exp5 pause -gluster volume replace-brick str `hostname`:/exports/exp1 `hostname`:/exports/exp5 abort +gluster volume replace-brick str `hostname`:/exports/exp1 `hostname`:/exports/exp5 status +gluster volume replace-brick str `hostname`:/exports/exp1 `hostname`:/exports/exp5 start +gluster volume replace-brick str `hostname`:/exports/exp1 `hostname`:/exports/exp5 status gluster volume replace-brick str `hostname`:/exports/exp1 `hostname`:/exports/exp5 commit + +gluster volume info +sleep 1 +df -h +sleep 1 + +echo "replacing brick for abort operation" +gluster volume replace-brick str `hostname`:/exports/exp5 `hostname`:/exports/exp1 start +gluster volume replace-brick str `hostname`:/exports/exp5 `hostname`:/exports/exp1 status +gluster volume replace-brick str `hostname`:/exports/exp5 `hostname`:/exports/exp1 pause +gluster volume replace-brick str `hostname`:/exports/exp5 `hostname`:/exports/exp1 status +gluster volume replace-brick str `hostname`:/exports/exp5 `hostname`:/exports/exp1 start +gluster volume replace-brick str `hostname`:/exports/exp5 `hostname`:/exports/exp1 status +gluster volume replace-brick str `hostname`:/exports/exp5 `hostname`:/exports/exp1 abort + gluster volume info sleep 1 df -h +sleep 1 echo "removing-brick....." -gluster volume remove-brick str stripe 2 `hostname`:/exports/exp3 `hostname`:/exports/exp4 +gluster --mode=script volume remove-brick str stripe 2 `hostname`:/exports/exp3 `hostname`:/exports/exp4 gluster volume info sleep 1 df -h sleep 1 echo "stopping stripe volume....." -gluster volume stop str +gluster --mode=script volume stop str gluster volume info sleep 1 umount /mnt/client |