„runchecks.yml“ ändern
This commit is contained in:
parent
074a9d61c6
commit
3d0cd899c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user