#!/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 $?