public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Kerin Millar <kerframil@fastmail.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Software RAID-1
Date: Mon, 25 Aug 2014 13:35:11 +0100	[thread overview]
Message-ID: <53FB2D7F.6090400@fastmail.co.uk> (raw)
In-Reply-To: <3397936.PRVjbTIAHa@wstn>

On 25/08/2014 12:17, Peter Humphrey wrote:

<snip>

> Well, it was simple. I just said "rc-update del mdraid boot" and all is now
> well. I'd better revisit the docs to see if they still give the same advice.
>
> -- Regards Peter

Very interesting indeed. I now wonder if this is a race condition 
between the init script running `mdadm -As` and the fact that the mdadm 
package installs udev rules that allow for automatic incremental 
assembly? Refer to /lib/udev/rules.d/64-md-raid.rules and you'll see 
that it calls `mdadm --incremental` for newly added devices.

With that in mind, here's something else for you to try. Doing this will 
render these udev rules null and void:

# touch /etc/udev/rules.d/64-md-raid.rules

Thereafter, the mdraid script will be the only agent trying to assemble 
the 1.x metadata arrays so make sure that it is re-enabled.

I'm not actually sure that there is any point in calling mdadm -As where 
the udev rules are present. I would expect it to be one approach or the 
other, but not both at the same time.

Incidentally, the udev rules were a source of controversy in the 
following bug. Not everyone appreciates that they are installed by default.

https://bugs.gentoo.org/show_bug.cgi?id=401707

--Kerin


  reply	other threads:[~2014-08-25 12:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-24 13:51 [gentoo-user] Software RAID-1 Peter Humphrey
2014-08-24 16:06 ` Mick
2014-08-24 18:22 ` Kerin Millar
2014-08-25  9:22   ` Peter Humphrey
2014-08-25 11:17     ` Peter Humphrey
2014-08-25 12:35       ` Kerin Millar [this message]
2014-08-25 16:51         ` Peter Humphrey
2014-08-25 17:46           ` Kerin Millar
2014-08-26  9:38             ` Peter Humphrey
2014-08-26 13:21               ` Kerin Millar
2014-08-26 14:54                 ` Peter Humphrey
2014-08-26 16:00                   ` Kerin Millar
2014-08-26 16:49                     ` [gentoo-user] Software RAID-1 - FIXED Peter Humphrey
2014-08-26 17:25                       ` Kerin Millar
2014-08-27  9:43                         ` Peter Humphrey
2014-08-25 12:18     ` [gentoo-user] Software RAID-1 Kerin Millar
2014-08-25 12:24       ` Kerin Millar

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=53FB2D7F.6090400@fastmail.co.uk \
    --to=kerframil@fastmail.co.uk \
    --cc=gentoo-user@lists.gentoo.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