Bug#599821: mdadm: mismatch_cnt is not well checked or reported
NeilBrown
neilb at suse.de
Tue Dec 6 21:43:05 UTC 2011
On Tue, 6 Dec 2011 23:19:21 +0400 Sergey Kirpichev <skirpichev at gmail.com>
wrote:
> Hello,
>
> As a variant to fix this issue, please consider using
> attached patch. Hope, it's simple enough to be
> accepted upstream.
Upstream has just applied it.
http://neil.brown.name/git?p=mdadm;a=commitdiff;h=d97a5e60506343bd8cb2b75d5003b2a49cbc8566
Thanks,
NeilBrown
>
> 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: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20111207/8568e8e8/attachment.pgp>
More information about the pkg-mdadm-devel
mailing list