#!/bin/bash source $cwd/regression_helpers mkdir -p /tmp/$global_bug_id &> /dev/null #create,start and mount $GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 &>/dev/null ; $GLUSTERFSDIR/gluster volume start $global_bug_id &>/dev/null; mount_glusterfs $global_bug_id #start gsyncd first $GLUSTERFSDIR/gluster volume geo-replication $global_bug_id /tmp/$global_bug_id start &> /dev/null; sleep 10; #stop gsyncd $GLUSTERFSDIR/gluster volume geo-replication $global_bug_id /tmp/$global_bug_id stop &> /dev/null; sleep 10; ps aux| grep gsyncd.py | grep monitor &> /dev/null if [ $? -ne 0 ]; then rm -rf /tmp/$global_bug_id &> /dev/null exit 0; else rm -rf /tmp/$global_bug_id &> /dev/null exit 255; fi