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
|
#!/bin/bash
# Test restart with missing object in stale directory
. ./common
MD=false
for i in 0 1; do
_start_sheep $i
done
_wait_for_sheep 2
_cluster_format -c 1
_start_sheep 2
_wait_for_sheep 3
$DOG vdi create test 8M -P
_kill_all_sheeps
mv $STORE/0/obj/007c2b2500000001 $STORE/0/obj/.stale/007c2b2500000001.1
mv $STORE/1/obj/007c2b2500000000 $STORE/1/obj/.stale/007c2b2500000000.1
for i in 0 1 2; do
_start_sheep $i
done
_wait_for_sheep 3
_wait_for_sheep_recovery 0
for i in 0 1 2; do
_vdi_list -p $((7000+$i))
done
$DOG vdi check test
|