ClearFoundation Tracker - ClearOS
View Issue Details
0000455ClearOSsystem-base - Base Systempublic2012-03-05 04:552013-02-01 15:03
devferret 
 
normalminoralways
closedsuspended 
5.2-SP1 
 
0000455: /etc/cron.daily/99-raid-check never checks arrays with active I/O
The RAID scrubbing script doesn't check "active" arrays, ie. any array with pending I/O. This is completely wrong, arrays need to be scrubbed regardless of whether they have active I/O.

From my interpretation of the comments in the original script, the author appears to have had some confusion between an array being "active" (ie. having pending I/O) and having some sync action in progress. Then, based on this mistake, there's additional logic to delay the start of the sync for the case where there's more than one array on a set of physical disks... completely unnecessary.
The problem is also reported at https://bugzilla.redhat.com/show_bug.cgi?id=679843 [^]

The problem is present in CentOS 5.7 (mdadm-2.6.9-3.el5.x86_64.rpm)
This problem is fixed in CentOS 6.2 (mdadm-3.2.2-9.el6.x86_64.rpm)

Please consider patching this for ClearOS 5.2... because of the way the polling/email notification works, it is easy to be under the impression that all arrays are being scrubbed, when in fact some arrays on a disk are not.
No tags attached.
patch 99-raid-check.patch (1,631) 2012-03-05 04:55
https://tracker.clearos.com/file_download.php?file_id=17&type=bug
Issue History
2012-03-05 04:55devferretNew Issue
2012-03-05 04:55devferretFile Added: 99-raid-check.patch
2012-03-05 04:58devferretNote Added: 0000417
2012-03-05 05:54user2Statusnew => confirmed
2013-02-01 15:03user2Note Added: 0000665
2013-02-01 15:03user2Statusconfirmed => resolved
2013-02-01 15:03user2Resolutionopen => suspended
2013-02-01 15:03user2Assigned To => user2
2013-02-01 15:03user2Statusresolved => closed
2013-02-01 15:03user2Assigned Touser2 =>
2018-03-30 11:36user2Categoryclearos-base - Base System => system-base - Base System

Notes
(0000417)
devferret   
2012-03-05 04:58   
The attached patch is for the ClearOS 5 version of /etc/cron.daily/99-raid-check.

I've had it running since December.
(0000665)
user2   
2013-02-01 15:03   
Not enough resources to fork upstream for version 5... sorry. Fixed in version 6.