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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#!/bin/bash
# Test vdi create operation during node changes
. ./common
if [[ "$DRIVER" == zoo* ]];then
DRIVER=${DRIVER/1000/5000}
fi
for i in `seq 0 15`; do
_start_sheep $i
done
_wait_for_sheep 16
_cluster_format
# create new vdis
(
for i in `seq 0 40`;do
_vdi_create test$i 4M
done
) &
# kill nodes and join them back
for i in 1 2; do _kill_sheep $i;done
_wait_for_sheep 14
_wait_for_sheep_recovery 0
for i in 3 4; do _kill_sheep $i;done
_wait_for_sheep 12
_wait_for_sheep_recovery 0
for i in 5; do _kill_sheep $i;done
_wait_for_sheep 11
_wait_for_sheep_recovery 0
for i in `seq 1 5`; do _start_sheep $i;done
_wait_for_sheep 16
# wait for dog to finish
wait
echo `$DOG vdi list | wc -l`
|