Bug#599821: mdadm: mismatch_cnt is not well checked or reported

Sergey Kirpichev skirpichev at gmail.com
Tue Dec 6 19:19:21 UTC 2011


Hello,

As a variant to fix this issue, please consider using
attached patch.  Hope, it's simple enough to be
accepted upstream.

On nonzero mismatch_cnt it makes log entry like this:
-->8---
Dec  6 22:52:42 squeeze mdadm[2376]: RebuildFinished event detected on md device /dev/md0, component device  mismatches found: 128 (on raid level 1)
---->8--

Thus, you can filter this out in logcheck rules _only_ for raid1/raid10:
----->8----
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ mdadm(\[[[:digit:]]+\])?: Rebuild((Start|Finish)ed|[[:digit:]]+) event detected on md device /dev/[-_./[:alnum:]]+, component device  mismatches found: [0-9]+ \(on raid level (1|10)\)$
---->8---

This patch also can be useful for #588516.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: report-level-on-rebuildfinished.diff
Type: application/octet-stream
Size: 765 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20111206/79a0dcd6/attachment.obj>


More information about the pkg-mdadm-devel mailing list