From: Neil Brown <neilb@suse.de>
To: George Spelvin <linux@horizon.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: 3-way mirrors
Date: Wed, 8 Sep 2010 11:33:23 +1000 [thread overview]
Message-ID: <20100908113323.1b25b2c9@notabene> (raw)
In-Reply-To: <20100908080155.2ed9300e@notabene>
On Wed, 8 Sep 2010 08:01:55 +1000 Neil Brown <neilb@suse.de> wrote:
> On 7 Sep 2010 10:19:04 -0400 "George Spelvin" <linux@horizon.com> wrote:
> >
> > I'm worried that someone not paying attention will --add rather than
> > --re-add the off-site backup drives and create mirrors 4 and 5 of
> > the first stripe half, thus producing an incomplete backup.
>
> It is already on my to-do list for mdadm-3.2 to reject a --add that looks
> like it should be a --re-add. You will need --force to make it a spare, or
> --zero it first.
>
I just realised I had this slightly wrong.
mdadm will already perform a --re-add if asked to --add a device that can be
re-added. So you should be safe from people accidentally using --add when
they should have used --re-add.
The change on my to-do list is that if it looks like a re-add might be
possible but the re-add fails, then don't do a normal --add without extra
encouragement.
The case where this is interesting is if you have a doubly-degraded RAID5 and
the devices just had a temporary failure.
It would seem logical to just add the disks back. The --re-add attempt will
fail of course, so mdadm will currently make the devices spares which isn't
what is wanted. Rather mdadm should fail and suggest a 'stop' followed by
'--assemble --force'.
For raid1 my planned change won't make any difference - you should be safe as
you are.
NeilBrown
>
> >
> > Any suggestions on how to mitigate this risk? And if it happens,
> > how do I recover? Is there a way to force a drive to be added
> > as 9/10, even if 5/10 is currently empty?
>
> 1/ hack at mdadm or wait for mdadm-3.2, or feed people more coffee:-)
> 2/ You probably cannot recover with any amount of certainty.
> 3/ That is entirely a kernel decision - 'fix' the kernel.
>
> NeilBrown
>
>
> >
> >
> > Thank you very much!
> > --
> > 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-09-08 1:33 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
2010-09-08 22:28 ` Bill Davidsen
2010-09-07 22:01 ` Neil Brown
2010-09-08 1:33 ` Neil Brown [this message]
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=20100908113323.1b25b2c9@notabene \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=linux@horizon.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 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.