summaryrefslogtreecommitdiffstats
path: root/dvm/765293/testcase
diff options
context:
space:
mode:
Diffstat (limited to 'dvm/765293/testcase')
-rwxr-xr-xdvm/765293/testcase19
1 files changed, 19 insertions, 0 deletions
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 $?