diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/test/test_missing_unfound.sh | |
parent | Initial commit. (diff) | |
download | ceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/test_missing_unfound.sh')
-rwxr-xr-x | src/test/test_missing_unfound.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/test/test_missing_unfound.sh b/src/test/test_missing_unfound.sh new file mode 100755 index 000000000..d5db1e42d --- /dev/null +++ b/src/test/test_missing_unfound.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +CEPH_NUM_OSD=3 ./vstart.sh -d -n -x -o 'osd recovery max active = 1' + +TEST_POOL=rbd + +./ceph -c ./ceph.conf osd pool set $TEST_POOL size 3 + +sleep 20 + +./init-ceph stop osd.1 +./ceph osd down 1 # faster + +for f in `seq 1 100` +do + ./rados -c ./ceph.conf -p $TEST_POOL put test_$f /etc/passwd +done + +# zap some objects on both replicas +#rm dev/osd[02]/current/*/test_40* + +# some on only one +rm dev/osd0/current/*/test_* +#rm dev/osd2/current/*/test_6* + +# ...and see how we fare! +./init-ceph start osd.1 + + |