~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to src/test/test_missing_unfound.sh

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-07-16 09:56:24 UTC
  • mfrom: (0.3.11)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120716095624-azr2w4hbhei1rxmx
Tags: upstream-0.48
ImportĀ upstreamĀ versionĀ 0.48

Show diffs side-by-side

added added

removed removed

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