Skip to content

Commit 558bf78

Browse files
committed
Fixed a issue in raid monitoring. Failed harddrives in software raid5 are not detected correctly.
1 parent 10ec1b9 commit 558bf78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cron.d/100-monitor_raid.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function onRunJob() {
8888
/* fetch the next line */
8989
$line = $tmp[$i];
9090

91-
if ((strpos($line, '[U_]') !== false) || (strpos($line, '[_U]') !== false)) {
91+
if ((strpos($line, 'U_]') !== false) || (strpos($line, '[_U') !== false) || (strpos($line, 'U_U') !== false)) {
9292
/* One Disk is not working.
9393
* if the next line starts with "[>" or "[=" then
9494
* recovery (resync) is in state and the state is

0 commit comments

Comments
 (0)