From: Neil Brown <neilb@suse.de>
To: Aryeh Gregor <Simetrical+list@gmail.com>
Cc: Keld Simonsen <keld@keldix.com>, linux-raid@vger.kernel.org
Subject: Re: layout of far blocks in raid10
Date: Wed, 12 May 2010 08:54:14 +1000 [thread overview]
Message-ID: <20100512085414.3b137bfc@notabene.brown> (raw)
In-Reply-To: <AANLkTikJte4n45uDZfKCXF1z-uuVmBhpN3qHPJz19pvV@mail.gmail.com>
On Tue, 11 May 2010 18:22:58 -0400
Aryeh Gregor <Simetrical+list@gmail.com> wrote:
> On Tue, May 11, 2010 at 5:56 PM, Neil Brown <neilb@suse.de> wrote:
> > I'm not quite sure how to respond to this... As a mathematician I would
> > expect you to understand the important of precision in choosing words, yet
> > you use the word "know" for something that is exactly wrong. Either you mean
> > "guess" or you have been seriously misinformed. If it is the latter, then
> > please let me know where this misinformation came from so I can see about
> > getting it corrected.
> >
> > md/raid10 uses a simple cyclic layout in all cases. It does so because this
> > layout is completely general and works for all numbers of devices and copies.
> >
> > So you can only survive multiple device failures where are most N-1 are
> > adjacent where N is the number of copies, and the first and last devices are
> > treated as adjacent.
>
> Mathematicians are sometimes wrong too, sadly. :) (And I'm only a
> grad student!) I believe this is where I got my info:
A grad student! You must be over educated:
http://www.maa.org/devlin/devlin_02_10.html
:-)
>
> http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=blob_plain;f=debian/FAQ;hb=HEAD
Thanks... I guess I should read through that and report errors...
>
> The answer to question 20 of that suggests that if you have four
> disks, 0 1 2 3, then 0 and 1 form one pair and 2 and 3 form the other.
> If 2 fails, then 0 or 1 could still fail without data loss, but a
> failure of 3 will cause data loss. Obviously, you know what you're
> talking about better than a Debian FAQ, so unless I'm misunderstanding
> the FAQ or you or both, maybe you should talk to the author of that.
The conclusion stated in question 20 is correct if you are considering the
'near' layout, though the reasoning is foggy and doesn't generalise to the
'far' or 'offset' layout.
With a 'near 2' layout on 4 drives, the blocks are:
0 0 1 1
2 2 3 3
which looks like striping across mirrored pairs, but that is really just a
coincidence.
On 5 drives it would look like:
0 0 1 1 2
2 3 3 4 4
The rule "OK as long as no two adjacent devices fail" still holds, though
there are some cases where it is OK even if two adjacent devices fail, for
the even-number-of-devices case.
NeilBrown
>
> Testing with loopback files does seem to show that failing the second
> and third drives in a four-drive RAID will cause the RAID to fail, as
> I would predict from what you say and contrary to what I interpreted
> that FAQ to mean, so hopefully now I understand correctly.
>
> Thanks for the correction. Next time I'll be more cautious.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-05-11 22:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-11 15:12 layout of far blocks in raid10 Keld Simonsen
2010-05-11 17:13 ` Aryeh Gregor
2010-05-11 21:56 ` Neil Brown
2010-05-11 22:22 ` Aryeh Gregor
2010-05-11 22:54 ` Neil Brown [this message]
2010-05-11 22:35 ` Keld Simonsen
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=20100512085414.3b137bfc@notabene.brown \
--to=neilb@suse.de \
--cc=Simetrical+list@gmail.com \
--cc=keld@keldix.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.