blob: 8d56203ec0c80537cd682a495694179094ff526a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
function _init ()
{
source $cwd/regression_helpers;
}
function glusterd_stripe_add ()
{
$GLUSTERFSDIR/gluster volume create --mode=script $global_bug_id stripe 2 $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 &>/dev/null;
$GLUSTERFSDIR/gluster volume add-brick $global_bug_id stripe 3 $(hostname):$EXPORT_DIR/$global_bug_id/export3 &>/dev/null;
pgrep glusterd &>/dev/null;
if [ $? -ne 0 ]; then
return 1;
fi
}
_init ; glusterd_stripe_add
|