From: Phillip Susi <psusi@cfl.rr.com>
To: Christian Gatzemeier <c.gatzemeier@tu-bs.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: "failed" vs "removed" or "locked-out" state and --incremental auto-re-adding
Date: Fri, 23 Apr 2010 10:46:22 -0400 [thread overview]
Message-ID: <4BD1B2BE.3020306@cfl.rr.com> (raw)
In-Reply-To: <loom.20100423T140059-877@post.gmane.org>
On 4/23/2010 8:20 AM, Christian Gatzemeier wrote:
> It seems we don't have an obvious way to manually
> remove a member from an array so that it does not get auto-assembled
> later on (i.e. by udev/--incremental) without completely zeroing the
> superblock or moving it into an own array. Maybe a --lock-out
mdadm --fail followed by mdadm --remove seems to be what you are looking
for. mdadm --incremental will not use a removed drive.
Actually though, it looks like mdadm does not update the metadata on the
disk when you --fail and --remove it, so it still thinks it is part of
an array. This appears to be a bug.
Even though the second disk says it is still part of the array, mdadm
--incremental tries to add it to the array, the state of the first disk
takes over and the second disk remains removed.
> Another thing is that trying to --remove without prior --failing gives a rather
> unintuitive "device busy":
> Is there a reason that --remove (and --lock-out)
> shouldn't just automatically "fail" a device?
> Or the other way around when would one want to
> manually --fail a member without subsequently --removing it?
Might be a nice feature though the man page is rather clear that you
have to fail first, then remove. You might want to fail it and not
remove it so that you can remove the drive for now, and plug it back in
later.
next prev parent reply other threads:[~2010-04-23 14:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-23 12:20 "failed" vs "removed" or "locked-out" state and --incremental auto-re-adding Christian Gatzemeier
2010-04-23 14:46 ` Phillip Susi [this message]
2010-04-26 22:28 ` "failed" vs "removed" or "locked-out" " Christian Gatzemeier
2010-04-26 23:15 ` Doug Ledford
2010-04-27 10:13 ` "failed" vs "released" and "locked-out" " Christian Gatzemeier
2010-04-27 15:45 ` Doug Ledford
2010-04-27 19:39 ` Christian Gatzemeier
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=4BD1B2BE.3020306@cfl.rr.com \
--to=psusi@cfl.rr.com \
--cc=c.gatzemeier@tu-bs.de \
--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 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).