added new RAID OK status
^ +State : active, checking $|^ +State : clean, checking $
This commit is contained in:
parent
3d0cd899c6
commit
e49c94ef21
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user