From: NeilBrown <neilb@suse.de>
To: Chris Murphy <lists@colorremedies.com>
Cc: "linux-raid@vger.kernel.org List" <linux-raid@vger.kernel.org>
Subject: Re: no automatic resync after device disconnect then reconnect
Date: Thu, 10 Jul 2014 08:58:40 +1000 [thread overview]
Message-ID: <20140710085840.78a65722@notabene.brown> (raw)
In-Reply-To: <883F6A2C-C8F6-4A27-B7BF-2FB98F395592@colorremedies.com>
[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]
On Wed, 9 Jul 2014 16:44:27 -0600 Chris Murphy <lists@colorremedies.com>
wrote:
> This is in a VM, no data at risk.
>
> Two problems:
>
> 1. I intentionally removed one of two md raid1 member devices, boot degraded succeeds, clean power off, reconnect the removed md member device, boot succeeds but an automatic resync does not occur for the previously disconnect md members. Maybe this is expected, I'm not sure, but I'd think a better user experience would be autoresync perhaps with a notification?
Do you? Maybe the device was removed from the array because it is faulty.
Do you *really* want a faulty device automatically added back into your array?
It is quite possible to set up udev rules and configure mdadm policy to do
this. I just don't think it is a sensible default.
>
> 2. For the raid set with a bitmap, this command succeeds
> # mdadm --manage /dev/md126 --re-add /dev/sdb3
Good to know.
>
> However, for the raid set without bitmap (seems the same otherwise, same metadata version), it fails:
> # mdadm --manage /dev/md127 --re-add /dev/sdb2
> mdadm: --re-add for /dev/sdb2 to /dev/md127 is not possible
You need a bitmap to --re-add.
Without a bit map, you are just adding an unused device to an array and
"--add" is the command to use.
If you set up the mdadm policy (in mdadm.conf) suitably then
mdadm -I /dev/sdb2
would find the add and --add it for you (I think).
NeilBrown
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2014-07-09 22:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-09 22:44 no automatic resync after device disconnect then reconnect Chris Murphy
2014-07-09 22:55 ` Chris Murphy
2014-07-09 22:58 ` NeilBrown [this message]
2014-07-09 23:57 ` Chris Murphy
2014-07-10 0:36 ` NeilBrown
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=20140710085840.78a65722@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=lists@colorremedies.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 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).