#!/bin/bash

ceph -v 
ceph -s

echo "Starting scrub test $(date)"

for i in 307 210 273 191 132 450 ; do  
ceph tell osd.$i injectargs  '--debug-osd 20 --debug-filestore 20 --debug-ms 1' 
done 


ceph pg 70.459 query > pg70.459queryStart 2>&1

ceph pg deep-scrub 70.459

sleep 7200

ceph -s 

ceph pg 70.459 query > pg70.459queryEnd1 2>&1


ceph pg deep-scrub 70.459

ceph pg 70.459 query > pg70.459queryEnd2 2>&1

for i in 307 210 273 191 132 450 ; do  
ceph tell osd.$i injectargs  '--debug-osd 0 --debug-filestore 0 --debug-ms 0' 
done 

echo "Ending scrub test $(date)"

