summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-953887.t
blob: d926473efc43d00c263b1dd079213853ce6d6ea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

. $(dirname $0)/../include.rc
. $(dirname $0)/../volume.rc
. $(dirname $0)/../fileio.rc

cleanup;

TEST glusterd
TEST pidof glusterd
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1}
TEST $CLI volume start $V0
TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0
TEST touch $M0/10
TEST fd=`fd_available`
TEST fd_open $fd 'w' $M0/10
TEST gluster volume add-brick $V0 $H0:$B0/${V0}{2,3}
TEST gluster volume rebalance $V0 start
EXPECT_WITHIN 15 "completed" rebalance_status_field $V0
TEST cat $M0/10
TEST fd_write $fd "abc"
EXPECT "abc" echo "$(cat $M0/10)"
cleanup