From 558bf78567de4faf28e4aa0859386859278cdd3c Mon Sep 17 00:00:00 2001 From: tbrehm Date: Mon, 2 Sep 2013 13:43:02 +0000 Subject: [PATCH] Fixed a issue in raid monitoring. Failed harddrives in software raid5 are not detected correctly. --- server/lib/classes/cron.d/100-monitor_raid.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/classes/cron.d/100-monitor_raid.inc.php b/server/lib/classes/cron.d/100-monitor_raid.inc.php index 969ff2464..d49540e82 100644 --- a/server/lib/classes/cron.d/100-monitor_raid.inc.php +++ b/server/lib/classes/cron.d/100-monitor_raid.inc.php @@ -88,7 +88,7 @@ class cronjob_monitor_raid extends cronjob { /* fetch the next line */ $line = $tmp[$i]; - if ((strpos($line, '[U_]') !== false) || (strpos($line, '[_U]') !== false)) { + if ((strpos($line, 'U_]') !== false) || (strpos($line, '[_U') !== false) || (strpos($line, 'U_U') !== false)) { /* One Disk is not working. * if the next line starts with "[>" or "[=" then * recovery (resync) is in state and the state is -- GitLab