Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / test_missing_unfound.sh
1 #!/bin/sh
2
3 CEPH_NUM_OSD=3 ./vstart.sh -d -n -x -o 'osd recovery max active = 1'
4
5 TEST_POOL=rbd
6
7 ./ceph -c ./ceph.conf osd pool set $TEST_POOL size 3
8
9 sleep 20
10
11 ./init-ceph stop osd.1
12 ./ceph osd down 1   # faster
13
14 for f in `seq 1 100`
15 do
16     ./rados -c ./ceph.conf -p $TEST_POOL put test_$f /etc/passwd
17 done
18
19 # zap some objects on both replicas
20 #rm dev/osd[02]/current/*/test_40*
21
22 # some on only one
23 rm dev/osd0/current/*/test_*
24 #rm dev/osd2/current/*/test_6*
25
26 # ...and see how we fare!
27 ./init-ceph start osd.1
28
29