Browse Source

Fix MD Raid state detection

Emmanuel Bouthenot 4 years ago
parent
commit
ed472ac101
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/client/raid/scripts/raid

+ 1 - 1
plugins/client/raid/scripts/raid

@@ -123,7 +123,7 @@ result=0
 case "${TYPE}" in
     mdraid)
         status="$(mdadm --detail "${DEVICE}" 2>/dev/null | sed -r -n 's/^\s+State\s*:\s*([^ ]+)\s*$/\1/p')"
-        if [ "${status}" != 'clean' ]; then
+        if [ "${status}" != 'clean' ]  && [ "${status}" != 'active' ]; then
             result=1
         fi
         ;;