From 558bf78567de4faf28e4aa0859386859278cdd3c Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Mon, 02 Sep 2013 09:43:02 -0400 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 files changed, 1 insertions(+), 1 deletions(-) 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 969ff24..d49540e 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 @@ /* 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 -- Gitblit v1.9.1