summaryrefslogtreecommitdiffstats
path: root/dvm/764797/testcase
blob: 0e01a4aeefc29ea48bf631d06a2fc0377e628418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash -x

source $cwd/regression_helpers

VOLNAME=$global_bug_id
VOLNAME2=vol$global_bug_id

$GLUSTERFSDIR/gluster volume create $VOLNAME $(hostname):$EXPORT_DIR/$global_bug_id/export1 \
                        $(hostname):$EXPORT_DIR/$global_bug_id/export2 2>/dev/null 1>/dev/null

$GLUSTERFSDIR/gluster volume start $VOLNAME  2>/dev/null 1>/dev/null
$GLUSTERFSDIR/gluster --mode=script volume stop $VOLNAME 2>/dev/null 1>/dev/null
$GLUSTERFSDIR/gluster --mode=script volume delete $VOLNAME 2>/dev/null 1>/dev/null

$GLUSTERFSDIR/gluster volume create $VOLNAME2 $(hostname):$EXPORT_DIR/$global_bug_id/export1 \
                                            | grep 'has been part of a deleted volume with id'


exit $?