summaryrefslogtreecommitdiffstats
path: root/tests/bugs/glusterd/bug-1499509-disconnect-in-brick-mux.t
blob: 3c5bebee0c7deea98ccf77c51a14a7ff5845d656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

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

cleanup

TEST glusterd
TEST pidof glusterd

## Enable brick multiplexing
TEST $CLI volume set all cluster.brick-multiplex on

## creating 1x3 replicated volumes
TEST $CLI volume create $V0 replica 3 $H0:$B0/${V0}_{1..3}
TEST $CLI volume create $V1 replica 3 $H0:$B1/${V1}_{1..3}

## Start the volume
TEST $CLI volume start $V0
TEST $CLI volume start $V1

kill -9 $(pgrep glusterfsd)

EXPECT 0 online_brick_count

cleanup