linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Mario 'BitKoenig' Holbe <Mario.Holbe@TU-Ilmenau.DE>
Cc: linux-raid@vger.kernel.org
Subject: Re: turn off auto assembly
Date: Fri, 3 Dec 2010 12:30:09 +1100	[thread overview]
Message-ID: <20101203123009.0aa23102@notabene.brown> (raw)
In-Reply-To: <slrnifg359.9qh.Mario.Holbe@darkside.dyn.samba-tng.org>

On Thu, 2 Dec 2010 22:16:25 +0100 Mario 'BitKoenig' Holbe
<Mario.Holbe@TU-Ilmenau.DE> wrote:

> Stefan /*St0fF*/ Hübner <stefan.huebner@stud.tu-ilmenau.de> wrote:
> > Now I have the effect that upon plugging in drives that formerly were
> > part of an array, the md_mod modules gets loaded and tries to
> > auto-assemble arrays.  This disturbs the diagnosis.
> > I've tried raid=noautodetect as kernel commandline, and I grepped the
> > source for the MODULE_PARM_DESC macro, which yielded no (useful) result.
> >  This "automagic" behaviour happens since 2.6.36.
> 
> Are you sure this autodetection is triggered by the module?
> And are you sure this behaviour is bound to this specific kernel
> version?
> 
> In-Kernel auto-assembly is usually not active when md is compiled as
> module. Probably in your case this is some udev-triggered assembly?

s/usually not/never/

With a sufficiently recent mdadm, you can put
   AUTO -all

in mdadm.conf to disable auto-assembly.

Alternately, find the udev rule (/lib/udev/rules.d/64-md-something) and 
comment out the bit where it runs "mdadm -I" or "mdadm --incremental".

NeilBrown


--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2010-12-03  1:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-02 19:28 turn off auto assembly Stefan /*St0fF*/ Hübner
2010-12-02 21:16 ` Mario 'BitKoenig' Holbe
2010-12-03  1:24   ` Stefan Hübner
2010-12-03  1:30   ` Neil Brown [this message]
2010-12-06 21:52     ` Stefan Hübner

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=20101203123009.0aa23102@notabene.brown \
    --to=neilb@suse.de \
    --cc=Mario.Holbe@TU-Ilmenau.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 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).