From: Gavin McCullagh <gmccullagh@gmail.com>
To: martin f krafft <madduck@madduck.net>
Cc: linux-raid mailing list <linux-raid@vger.kernel.org>
Subject: Re: what does md do if it finds an inconsistency?
Date: Sun, 6 May 2007 16:59:54 +0100 [thread overview]
Message-ID: <20070506155954.GB27948@gmail.com> (raw)
In-Reply-To: <3655.195.137.231.42.1178458574.squirrel@albatross.madduck.net>
On Sun, 06 May 2007, martin f krafft wrote:
> Maybe the ideal way would be to have mdadm --monitor send an email on
> mismatch_count>0 or a cronjob that regularly sends reminders, until the
> admin logs in and runs e.g. /usr/share/mdadm/repairarray.
>
> Also, if a mismatch is found on a RAID1, how does md decide which copy is
> mismatched and which is correct? What about RAID 5/6/10?
I think it just picks one at random. After all, how could you reliably
know which is right in a raid1 array? With raid5, I understand it just
updates the parity.
I had an idea to write an interactive userspace program which ran through
each block on each disk device to figure out which ones didn't match up and
then figure out whether it's within allocated filesystem space and if so,
which file or filesystem data was affected. This would hopefully enable a
user to figure out which block is wrong and correct things.
Gavin
next prev parent reply other threads:[~2007-05-06 15:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-06 0:45 what does md do if it finds an inconsistency? martin f krafft
2007-05-06 9:06 ` martin f krafft
2007-05-06 11:07 ` Eyal Lebedinsky
2007-05-06 13:36 ` martin f krafft
2007-05-06 15:59 ` Gavin McCullagh [this message]
2007-05-07 4:08 ` Neil Brown
2007-05-08 13:27 ` Bill Davidsen
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=20070506155954.GB27948@gmail.com \
--to=gmccullagh@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=madduck@madduck.net \
/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).