From e6067513d0a40a4d540c4a5b8eff4af8cabbd4c7 Mon Sep 17 00:00:00 2001 From: shylesh Date: Wed, 1 Feb 2012 11:50:55 +0530 Subject: BUG:765293-Rebalance shouldn't start for non-distribute Change-Id: I915aeb645ee5dfe89656508589b5c8200603a8aa BUG: 765293 Signed-off-by: shylesh --- dvm/765293/testcase | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 dvm/765293/testcase diff --git a/dvm/765293/testcase b/dvm/765293/testcase new file mode 100755 index 0000000..d1ccb5c --- /dev/null +++ b/dvm/765293/testcase @@ -0,0 +1,19 @@ +#!/bin/bash + +source $cwd/regression_helpers + +$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/brick1 2>/dev/null 1>/dev/null +ret=$? + +if [ $ret -ne 0 ]; then + exit 1 +fi + +$GLUSTERFSDIR/gluster volume start $global_bug_id 2>/dev/null 1>/dev/null +sleep 5 + +$GLUSTERFSDIR/gluster volume rebalance $global_bug_id start |tr '\n' ' ' \ +|grep 'Volume '"$global_bug_id"' is not a distribute volume + or contains only 1 brick. Not performing rebalance'2>/dev/null 1>/dev/null + +exit $? -- cgit