„runchecks.yml“ ändern
This commit is contained in:
parent
e1fdb3ac6e
commit
3802383ffb
@ -131,7 +131,7 @@
|
|||||||
mdadm -D --scan | egrep "^ARRAY" | cut -d" " -f2 | while read array
|
mdadm -D --scan | egrep "^ARRAY" | cut -d" " -f2 | while read array
|
||||||
do
|
do
|
||||||
mdadm -D $array >$g_tmp/raiddetails
|
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 $"
|
||||||
then
|
then
|
||||||
g_echo_error "RAID $array state not clean - mdadm -D $array: $(cat $g_tmp/raiddetails)"
|
g_echo_error "RAID $array state not clean - mdadm -D $array: $(cat $g_tmp/raiddetails)"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user