From 4ec7688091f9d6ee2a6886d53055b94f284c1f7a Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Fri, 1 Oct 2010 01:35:22 +0000 Subject: changes for the gluster sanity script Signed-off-by: Raghavendra Bhat Signed-off-by: Vijay Bellur BUG: 1436 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1436 --- extras/test/gluster_commands.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/test/gluster_commands.sh b/extras/test/gluster_commands.sh index 8db4de9c1..ea42a577d 100755 --- a/extras/test/gluster_commands.sh +++ b/extras/test/gluster_commands.sh @@ -52,6 +52,7 @@ echo "adding-brick......." gluster volume add-brick vol `hostname`:/exports/exp2 gluster volume info sleep 1 +umount /mnt/client mount -t glusterfs `hostname`:vol /mnt/client df -h sleep 1 @@ -60,8 +61,21 @@ echo "replacing brick......" 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 abort +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 status gluster volume replace-brick vol `hostname`:/exports/exp1 `hostname`:/exports/exp3 commit + + +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 info sleep 1 df -h -- cgit