[script]Update pg_repair for error message
This commit is contained in:
parent
1d88aac14e
commit
693b1bed00
1 changed files with 2 additions and 2 deletions
|
@ -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
|
Loading…
Reference in a new issue