diff options
author | shylesh <shmohan@redhat.com> | 2012-01-07 16:34:23 +0530 |
---|---|---|
committer | shylesh <shmohan@redhat.com> | 2012-01-07 16:39:41 +0530 |
commit | cd54672fb6c7b1e3dab5027c5e5fb1731e1cfdcf (patch) | |
tree | ae41a6696f67c6ee3f8de5944ae1f878eb2a8b8c /dvm/765362/testcase | |
parent | 93b51950c5e0e1bbc5064a4f83779ec4ef19fde8 (diff) |
BUG-765362: Add brick fails for pure distribute volumes
Change-Id: I18e1eec9a5da09299e26eada19a698aa54678381
BUG: 765362
Signed-off-by: shylesh <shmohan@redhat.com>
Diffstat (limited to 'dvm/765362/testcase')
-rwxr-xr-x | dvm/765362/testcase | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dvm/765362/testcase b/dvm/765362/testcase new file mode 100755 index 0000000..0dd0f67 --- /dev/null +++ b/dvm/765362/testcase @@ -0,0 +1,24 @@ +#!/bin/bash + +# Bug 765362- Add brick fails for pure distribute volumes + +source $cwd/regression_helpers + +$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/brick1 2>/dev/null 1>/dev/null + +$GLUSTERFSDIR/gluster volume start $global_bug_id 2>/dev/null 1>/dev/null +sleep 5 + +# Add another brick to the volume +$GLUSTERFSDIR/gluster volume add-brick $global_bug_id \ + $(hostname):$EXPORT_DIR/$global_bug_id/brick2 | grep 'Add Brick successful' 1>/dev/null 2>/dev/null + +ret=$? + +if [ $ret -ne 0 ]; then + exit 1 +else + exit 0 +fi + + |