„runchecks.yml“ ändern
This commit is contained in:
parent
3802383ffb
commit
67ffdfa7a1
@ -131,9 +131,9 @@
|
||||
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 $"
|
||||
if ! cat $g_tmp/raiddetails | egrep "^ +State : " | egrep -q "^ +State : clean $|^ +State : active $"
|
||||
then
|
||||
g_echo_error "RAID $array state not clean - mdadm -D $array: $(cat $g_tmp/raiddetails)"
|
||||
g_echo_error "RAID $array state unhealthy - mdadm -D $array: $(cat $g_tmp/raiddetails)"
|
||||
fi
|
||||
done
|
||||
validate: /bin/bash -n %s
|
||||
|
Loading…
Reference in New Issue
Block a user