]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/test_missing_unfound.sh
bump version to 12.2.4-pve1
[ceph.git] / ceph / src / test / test_missing_unfound.sh
CommitLineData
7c673cae
FG
1#!/bin/sh
2
3CEPH_NUM_OSD=3 ./vstart.sh -d -n -x -o 'osd recovery max active = 1'
4
5TEST_POOL=rbd
6
7./ceph -c ./ceph.conf osd pool set $TEST_POOL size 3
8
9sleep 20
10
11./init-ceph stop osd.1
12./ceph osd down 1 # faster
13
14for f in `seq 1 100`
15do
16 ./rados -c ./ceph.conf -p $TEST_POOL put test_$f /etc/passwd
17done
18
19# zap some objects on both replicas
20#rm dev/osd[02]/current/*/test_40*
21
22# some on only one
23rm 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