From: Wols Lists <antlists@youngman.org.uk>
To: Matthias Walther <matthias@walther.xyz>, linux-raid@vger.kernel.org
Subject: Re: Unexpected mdadm behavior with old replugged disc
Date: Sat, 18 Nov 2017 14:58:49 +0000 [thread overview]
Message-ID: <5A104AA9.6000603@youngman.org.uk> (raw)
In-Reply-To: <239f7f18-00d3-254a-e460-24b40e9db5e1@walther.xyz>
On 18/11/17 14:35, Matthias Walther wrote:
> Hello,
>
> I just signed up for this mailing list to discuss the following,
> unexpected behavior:
>
> Situation: Raid6 with 6 discs. For some reasons, which are unimportant,
> I had replaced a disc before, which was fully functional. This disc was
> never changed or written to in between.
>
> Today I replugged this particular disc additionally as 7th disc to the
> server (cold plug, server was switched off).
>
> Unexpectedly mdadm broke up my fully synced raid6 and now syncs back to
> this old disc dropping one of the newer discs from the raid.
>
> This might be because it has its uuid still stored with higher rank than
> the newer disc or because the old disc got a lower sdX slot. I don't
> know that in detail.
>
> Anyway, I wouldn't expect mdadm to act like this. It might use the old,
> now plugged in again disc as hot spare or ignore it at all. But it
> shouldn't break a fully synced raid. I have reduced redundancy for about
> 24 hours now - without any rational reason.
Just a guess? "mdadm --assemble --incremental"?
What I *suspect* happened is that, as the system booted, mdadm scanned
the drives as they came available, and because this drive became
available before some of the others, it got included in the array.
I can't, off the top of my head, think of any way to stop this
happening, other than to prevent raid assembling during boot, or having
an *accurate* mdadm.conf from which mdadm could realise this drive
wasn't meant to be included.
Did you update mdadm.conf after you removed this drive? Do you even have
an mdadm.conf?
The only good point here, is that if you had three such drives, mdadm
would almost certainly have failed the array as it booted, and left you
in an (easily) recoverable situation. I don't really see what else it
could have done?
Cheers,
Wol
next prev parent reply other threads:[~2017-11-18 14:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-18 14:35 Unexpected mdadm behavior with old replugged disc Matthias Walther
2017-11-18 14:58 ` Wols Lists [this message]
2017-11-18 15:06 ` Matthias Walther
2017-11-18 18:04 ` Wols Lists
2017-11-20 2:08 ` Phil Turmel
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=5A104AA9.6000603@youngman.org.uk \
--to=antlists@youngman.org.uk \
--cc=linux-raid@vger.kernel.org \
--cc=matthias@walther.xyz \
/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