summaryrefslogtreecommitdiffstats
path: root/dvm/764030/testcase
blob: 6db9acaeaf15a61e28138464c3f0d29774db1995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

source $cwd/regression_helpers


$GLUSTERFSDIR/gluster volume create $global_bug_id\
                                $(hostname):$EXPORT_DIR/$global_bug_id/brick1 \
                                $(hostname):$EXPORT_DIR/$global_bug_id/brick2 2>/dev/null 1>/dev/null

$GLUSTERFSDIR/gluster --mode=script volume remove-brick $global_bug_id\
                    $(hostname):$EXPORT_DIR/$global_bug_id/brick1 \
                    $(hostname):$EXPORT_DIR/$global_bug_id/brick2 \
                    | grep 'Deleting all the bricks of the volume is not allowed' 1>/dev/null

exit $?