„runchecks.yml“ ändern

This commit is contained in:
olli 2022-11-06 09:12:26 +01:00
parent 074a9d61c6
commit 3d0cd899c6

View File

@ -131,7 +131,7 @@
mdadm -D --scan | egrep "^ARRAY" | cut -d" " -f2 | while read array
do
mdadm -D $array >$g_tmp/raiddetails
if ! cat $g_tmp/raiddetails | egrep "^ +State : " | egrep -q "^ +State : clean $|^ +State : active $"
if ! cat $g_tmp/raiddetails | egrep "^ +State : " | egrep -q "^ +State : clean $|^ +State : active $|^ +State : active, checking $"
then
g_echo_error "RAID $array state unhealthy - mdadm -D $array: $(cat $g_tmp/raiddetails)"
fi