From: Phil Turmel <philip@turmel.org>
To: Mark Knecht <markknecht@gmail.com>
Cc: Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: High mismatch count on root device - how to best handle?
Date: Tue, 26 Apr 2011 15:38:38 -0400 [thread overview]
Message-ID: <4DB71F3E.3040003@turmel.org> (raw)
In-Reply-To: <BANLkTinS9=v+qHAyewRu19HgGr4iriwjkw@mail.gmail.com>
Hi Mark,
On 04/26/2011 01:22 PM, Mark Knecht wrote:
> On Mon, Apr 25, 2011 at 6:30 PM, Mark Knecht <markknecht@gmail.com> wrote:
[trim /]
> OK, I don't know exactly what I'm looking for a problem here. I ran
> the repair, then rebooted. Mismatch count was zero. It seemed the
> repair had worked.
>
> I then used the system for about 4 hours. After 4 hours I did another
> check and found the mismatch count had increased.
>
> What I need to get a handle on is:
>
> 1) Is this serious? (I assume yes)
Maybe. Are you using a file in this filesystem as swap in lieu of a dedicated swap partition?
I vaguely recall reading that certain code paths in the swap logic can abandon queued writes (due to the data no longer being needed by the VM), such that one or more raid members are left inconsistent. Supposedly only affecting mirrored raid, and only for swap files/partitions.
I don't know if this was ever fixed. or even if anyone tried to fix it.
> 2) How do I figure out which drive(s) of the 3 is having trouble?
Don't know. Failing drives usually give themselves away with warnings in dmesg, and/or ejection from the array. There's nothing in the kernel or mdadm that'll help here. You'd have to do three-way voting comparison of all blocks on the member partitions.
> 3) If there is a specific drive, what is the process to swap it out?
mdadm /dev/mdX --fail /dev/sdXY
mdadm /dev/mdX --remove /dev/sdXY
(swap drives)
mdadm /dev/mdX --add /dev/sdZY
HTH,
Phil
next prev parent reply other threads:[~2011-04-26 19:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-25 22:32 High mismatch count on root device - how to best handle? Mark Knecht
2011-04-26 1:30 ` Mark Knecht
2011-04-26 17:22 ` Mark Knecht
2011-04-26 19:38 ` Phil Turmel [this message]
2011-04-28 0:38 ` Mark Knecht
2011-04-28 1:12 ` Phil Turmel
2011-04-28 5:31 ` Wolfgang Denk
2011-04-30 22:51 ` Mark Knecht
2011-05-01 14:50 ` Brad Campbell
2011-05-01 17:13 ` Mark Knecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DB71F3E.3040003@turmel.org \
--to=philip@turmel.org \
--cc=linux-raid@vger.kernel.org \
--cc=markknecht@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).