Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / script / crash_bdev.sh
1 #!/bin/bash -ex
2
3 while true; do
4     ./ceph daemon osd.0 config set bdev_inject_crash 2
5     sleep 5
6     tail -n 1000 out/osd.0.log | grep bdev_inject_crash || exit 1
7     ./init-ceph start osd.0
8     sleep 20
9 done