More distinct events for mdadm - check vs. error case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everybody,

I have a design/usability question regarding the events generated for mdadm.
When my Debian box runs the monthly array checks every first Sunday of a
month, I can observe the following in my logs:

Nov  3 00:57:01 kvmbox kernel: [115379.938671] md: data-check of RAID
array md0
Nov  3 00:57:01 kvmbox kernel: [115379.938675] md: minimum _guaranteed_
 speed: 1000 KB/sec/disk.
Nov  3 00:57:01 kvmbox kernel: [115379.938677] md: using maximum
available idle IO bandwidth (but not more than 200000 KB/sec) for
data-check.
Nov  3 00:57:01 kvmbox kernel: [115379.938679] md: using 128k window,
over a total of 976759672k.
Nov  3 00:57:01 kvmbox mdadm[2628]: RebuildStarted event detected on md
device /dev/md/0
Nov  3 01:30:21 kvmbox mdadm[2628]: Rebuild20 event detected on md
device /dev/md/0
Nov  3 02:20:21 kvmbox mdadm[2628]: Rebuild48 event detected on md
device /dev/md/0
Nov  3 02:53:41 kvmbox mdadm[2628]: Rebuild65 event detected on md
device /dev/md/0
Nov  3 03:27:02 kvmbox mdadm[2628]: Rebuild80 event detected on md
device /dev/md/0
Nov  3 04:19:54 kvmbox kernel: [127553.046807] md: md0: data-check done.
Nov  3 04:19:54 kvmbox mdadm[2628]: RebuildFinished event detected on md
device /dev/md/0

I know this is harmless and that the operation would switch from 'check'
to 'repair' if anything were wrong on the discs. But from a user/system
administrator standpoint I would really appreciate it if there would be
CheckStarted and corresponding CheckXX progress events so that my
management scripts could distinguish the 'check' rebuild from a rebuild
that was caused by an error (and not trigger the acoustic alarm on my
server every 1st Sunday each month).

Or should I ignore all the rebuild events? Can I rely on other events
being passed to my scripts before a rebuild will happen in case of an
actual error? What is the best practice here?

Best wishes

Karsten Hohmeier
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux