added new RAID OK status

^ +State : active, checking $|^ +State : clean, checking $
This commit is contained in:
olli 2022-11-06 09:54:27 +01:00
parent 3d0cd899c6
commit e49c94ef21

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 $|^ +State : active, checking $"
if ! cat $g_tmp/raiddetails | egrep "^ +State : " | egrep -q "^ +State : clean $|^ +State : active $|^ +State : active, checking $|^ +State : clean, checking $"
then
g_echo_error "RAID $array state unhealthy - mdadm -D $array: $(cat $g_tmp/raiddetails)"
fi