[script]Update pg_repair for error message

This commit is contained in:
kjg 2019-12-27 11:08:24 +01:00
parent 1d88aac14e
commit 693b1bed00

View file

@ -6,9 +6,9 @@ echo ${pglist_arr[*]}
for ((i=0; i<${#pglist_arr[@]}; i++)) do for ((i=0; i<${#pglist_arr[@]}; i++)) do
if [ 1 -eq $(ceph pg repair ${pglist_arr[$i]} | grep repair | grep instructing | wc -l) ]; then if [ 1 -eq $(ceph pg repair ${pglist_arr[$i]} | grep repair | grep instructing | wc -l) ]; then
echo repair error echo repair script error
break break
fi fi
echo ${pglist_arr[$i]} repair ok echo ${pglist_arr[$i]} repair script done
sleep 10 sleep 10
done done