From: "George Spelvin" <linux@horizon.com>
To: linux@horizon.com, Simetrical+list@gmail.com
Cc: linux-raid@vger.kernel.org
Subject: Re: 3-way mirrors
Date: 7 Sep 2010 15:02:55 -0400 [thread overview]
Message-ID: <20100907190255.15094.qmail@science.horizon.com> (raw)
In-Reply-To: <AANLkTikUt3wrpqxOX+j+3-KRKLhk4YGLvCrKxo3MAeRM@mail.gmail.com>
> This might be useful reading:
>
> http://neil.brown.name/blog/20100211050355
An interesting point of view, BUT...
If I am seeing repeated unexplained mismatches (despite being on a good
UPS and having no unclean shutdowns), then some part of my hardware is
failing, and I'd like to know *what part*.
Even if it doesn't halp me get the current data sector back, if I see
that drive #2 keeps having one opinion on the contents of a block while
drives #1 and #3 have a different opinion, then it's a useful piece of
diagnostic information.
It certainly is true that, if my file system doesn't change too fast, I
can pull the mismatching sector out of the logs and do a manual compare
using dd. But it's a lot nicer to avoid race conditions by placing the
code inside md.
As for an option to read the whole stripe and check it, actually you
only need to read 2 copies. If they agree, all is well. If they don't,
recovery is required.
The arguments about blocks magically changing under the file system
don't really hold water as long as RAID-1 distributes reads across the
component drives. As long as that is the case, a mismatch can result in
a silent change. A true fix (in the absence of a higher-level checksum
to validate the data) requires multiple reads.
As for unclean shutdowns, I expect that the RAID code holds off barriers
until all copies are written, so I still expect that a majority vote
will produce a consistent file system.
Thank you for the pointer!
next prev parent reply other threads:[~2010-09-07 19:02 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-07 14:19 3-way mirrors George Spelvin
2010-09-07 16:07 ` Iordan Iordanov
2010-09-07 18:49 ` George Spelvin
2010-09-07 19:55 ` Keld Jørn Simonsen
2010-09-07 18:31 ` Aryeh Gregor
2010-09-07 19:02 ` George Spelvin [this message]
2010-09-08 22:28 ` Bill Davidsen
2010-09-07 22:01 ` Neil Brown
2010-09-08 1:33 ` Neil Brown
2010-09-08 14:52 ` George Spelvin
2010-09-08 23:04 ` Neil Brown
2010-09-08 9:40 ` RAID mismatches (and reporting thereof) Tim Small
2010-09-08 12:35 ` George Spelvin
2010-09-28 16:42 ` 3-way mirrors Tim Small
-- strict thread matches above, loose matches on Subject: below --
2010-09-08 3:58 Michael Sallaway
2010-09-08 4:16 ` Neil Brown
2010-09-08 5:45 Michael Sallaway
2010-09-08 6:02 ` Neil Brown
2010-09-08 6:16 Michael Sallaway
2010-09-08 6:40 ` Neil Brown
2010-09-08 9:06 ` Tim Small
2010-09-08 7:01 Michael Sallaway
2010-09-08 9:11 ` Tim Small
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=20100907190255.15094.qmail@science.horizon.com \
--to=linux@horizon.com \
--cc=Simetrical+list@gmail.com \
--cc=linux-raid@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.