From: NeilBrown <neilb@suse.de>
To: Chris <email.bug@arcor.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: re-add POLICY
Date: Mon, 16 Feb 2015 14:28:45 +1100 [thread overview]
Message-ID: <20150216142845.0d50207c@notabene.brown> (raw)
In-Reply-To: <loom.20150214T222329-324@post.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1626 bytes --]
On Sat, 14 Feb 2015 21:59:34 +0000 (UTC) Chris <email.bug@arcor.de> wrote:
>
> Hi all,
>
> I'd like mdadm to automatically attempt to re-sync raid members after they
> where temporarily removed from the system.
>
> I would have thought "POLICY domain=default action=re-add" should allow this,
> and found a prior post that also seemed to want/test that behaviour.
> But as I understand the answer given there
> http://permalink.gmane.org/gmane.linux.raid/47516
> mdadm is expected to exit with an error (not re-add) upon plugging the
> device back in?
>
> with:
> mdadm: can only add /dev/loop2 to /dev/md0 as a spare, and force-spare is
> not set.
> mdadm: failed to add /dev/loop2 to existing array /dev/md0: Invalid argument.
>
> For one, I don't understand what the error messages is trying to tell me, about
> an invalid argument that was never supplied to --incremental?
>
> But more importantly, how can priorly diconnected devices (marked failed
> with non-future event count) get re-synced automatically when they are
> plugged in again?
> (avoiding manual mdadm /dev/mdX --add /dev/sdYZ hassle)
>
Does your array have a write-intent bitmap configured?
If it does, then "POLICY action=re-add" really should work.
If it doesn't, then maybe you need "POLICY action=spare".
This isn't the default, because depending on exactly how/why the device
failed, it may not be safe to treat it as a spare.
If the above does not help, please report:
- kernel version
- mdadm version
- "mdadm --examine" output of at least one good drive and one failed drive.
NeilBrown
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
next prev parent reply other threads:[~2015-02-16 3:28 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-14 21:59 re-add POLICY Chris
2015-02-15 19:03 ` re-add POLICY: conflict detection? Chris
2015-02-16 3:28 ` NeilBrown [this message]
2015-02-16 12:23 ` re-add POLICY Chris
2015-02-16 13:17 ` Phil Turmel
2015-02-16 16:15 ` desktop disk's error recovery timouts (was: re-add POLICY) Chris
2015-02-16 17:19 ` desktop disk's error recovery timouts Phil Turmel
2015-02-16 17:48 ` What are mdadm maintainers to do? (was: desktop disk's error recovery timeouts) Chris
2015-02-16 19:44 ` What are mdadm maintainers to do? Phil Turmel
2015-02-16 23:49 ` What are mdadm maintainers to do? (was: desktop disk's error recovery timeouts) NeilBrown
2015-02-17 7:52 ` What are mdadm maintainers to do? (error recovery redundancy/data loss) Chris
2015-02-17 8:48 ` Mikael Abrahamsson
2015-02-17 10:37 ` Chris
2015-02-17 19:33 ` Chris Murphy
2015-02-17 22:47 ` Adam Goryachev
2015-02-18 1:02 ` Chris Murphy
2015-02-18 11:04 ` Chris
2015-02-19 6:12 ` Chris Murphy
2015-02-20 5:12 ` Roger Heflin
2015-02-17 23:33 ` Chris
2015-02-18 15:04 ` help with the little script (erc timout fix) Chris
2015-02-18 21:25 ` NeilBrown
2015-02-17 15:09 ` re-add POLICY Chris
2015-02-22 13:23 ` Chris
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=20150216142845.0d50207c@notabene.brown \
--to=neilb@suse.de \
--cc=email.bug@arcor.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 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.