Monitor software RAIDs for verify/rebuilds

Bug #1280507 reported by Christopher B
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
powernap
New
Undecided
Unassigned

Bug Description

Servers with software RAIDs (using mdadm) will occasionally check the RAID for integrity, which may take multiple hours. It would be good if powernap could be configured to not send the server sleeping while an integrity check or a rebuild of an array is in progress.

Status of arrays can be read from /proc/mdstat (and maybe other ways)

Revision history for this message
Christopher B (s-spam) wrote :

After further research, all that needs to be done is to read '/sys/block/$ARRAY/md/sync_action'. If you find anything else than "idle" in there, the array is doing maintenance tasks.

See: https://www.kernel.org/doc/Documentation/md.txt

Revision history for this message
Christopher B (s-spam) wrote :

Helped myself.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.