linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: linux-raid@vger.kernel.org
Subject: Re: Multiple arrays out of devices belonging to single array
Date: Fri, 5 Dec 2014 22:17:38 +1100	[thread overview]
Message-ID: <20141205221738.79d2f8d6@notabene.brown> (raw)
In-Reply-To: <54817A83.6020000@msgid.tls.msk.ru>

[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]

On Fri, 05 Dec 2014 12:27:31 +0300 Michael Tokarev <mjt@tls.msk.ru> wrote:

> Hello.
> 
> We in Debian have 2 rather similar bugreports which are somewhat old:
>  http://bugs.debian.org/599352
>  http://bugs.debian.org/694513
> Last bugreport is against mdadm-3.2.5, so not THAT old.
> 
> Basically, it smells like there's a possibility for mdadm to assemble
> more than one (degraded) array out of components of the same array.
> 
> So I wonder if mdadm or kernel have some protection of this situation
> from happening.  Something like looking at already active/assembled
> devices to see if the same UUID is already used before trying to
> assemble another array.
> 
> It might be better done in kernel because this way the process might
> be freee from races when two mdadm instances tries to do the work in
> parallel.
> 
> Are these bugs for real?

Certainly are.
Fix in 3.3 I think.

commit 0431869cec4c673309d9aa30a2df4b778bc0bd24
Author: NeilBrown <neilb@suse.de>
Date:   Wed Oct 10 18:27:32 2012 +1100

    Fix up interactions between --assemble and --incremental

is one part of the fix.  I cannot quickly find another patch which obviously
relates to the symptoms described, but my vague memories suggest there was
more than one patch.

NeilBrown

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

      reply	other threads:[~2014-12-05 11:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-05  9:27 Multiple arrays out of devices belonging to single array Michael Tokarev
2014-12-05 11:17 ` NeilBrown [this message]

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=20141205221738.79d2f8d6@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=mjt@tls.msk.ru \
    /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).