All of lore.kernel.org
 help / color / mirror / Atom feed
* turn off auto assembly
@ 2010-12-02 19:28 Stefan /*St0fF*/ Hübner
  2010-12-02 21:16 ` Mario 'BitKoenig' Holbe
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan /*St0fF*/ Hübner @ 2010-12-02 19:28 UTC (permalink / raw)
  To: Linux RAID

Hi List,

i have multiple technicians computers where I need the md-modules f.e.
for recoveries and such.  But these computers are also used to just
diagnose failing drives.

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.

Is there any way to turn it off - i.e. that I need to explicitly issue
mdadm commands to bind any drive to any array?

Cheers,
Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: turn off auto assembly
  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
  0 siblings, 2 replies; 5+ messages in thread
From: Mario 'BitKoenig' Holbe @ 2010-12-02 21:16 UTC (permalink / raw)
  To: linux-raid

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?


regards
   Mario
-- 
Programmieren in C++ haelt die grauen Zellen am Leben. Es schaerft
alle fuenf Sinne: den Schwachsinn, den Bloedsinn, den Wahnsinn, den
Unsinn und den Stumpfsinn.
                                 [Holger Veit in doc]

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: turn off auto assembly
  2010-12-02 21:16 ` Mario 'BitKoenig' Holbe
@ 2010-12-03  1:24   ` Stefan Hübner
  2010-12-03  1:30   ` Neil Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Stefan Hübner @ 2010-12-03  1:24 UTC (permalink / raw)
  To: Mario 'BitKoenig' Holbe; +Cc: linux-raid

Am 02.12.2010 22:16, schrieb Mario 'BitKoenig' Holbe:
> 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?
>
>
> regards
>    Mario
Hi Mario,

thanks for the hint, I'll check the rules files then ...

Greetings from nebenan sozusagen,
Stefan
--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: turn off auto assembly
  2010-12-02 21:16 ` Mario 'BitKoenig' Holbe
  2010-12-03  1:24   ` Stefan Hübner
@ 2010-12-03  1:30   ` Neil Brown
  2010-12-06 21:52     ` Stefan Hübner
  1 sibling, 1 reply; 5+ messages in thread
From: Neil Brown @ 2010-12-03  1:30 UTC (permalink / raw)
  To: Mario 'BitKoenig' Holbe; +Cc: linux-raid

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: turn off auto assembly
  2010-12-03  1:30   ` Neil Brown
@ 2010-12-06 21:52     ` Stefan Hübner
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Hübner @ 2010-12-06 21:52 UTC (permalink / raw)
  To: Neil Brown; +Cc: Mario 'BitKoenig' Holbe, linux-raid

Thanks for all the hints.

There were no udev-rules on the computers, so I fixed the problem using
Neil's hints: 'echo "AUTO -all" >> /etc/mdadm.conf'.

Cheers,
Stefan

P.S.: as the "auto assemble everything with 0xfd partition type" may
become destructive at times (I have to deal a lot with damaged arrays),
I'd suggest not to make it the default setting.  But the other side is:
most people who set up a RAID would want to have it this way, so I guess
it's my duty to make sure no autoassembly on my technicians' computers
happens, unless I tell mdadm to do so...

P.P.S.: The behaviour might very well have come with the update to
mdadm-3.1.4, which may well have come nearly in parallel with me
updating the kernels... (as Gentoo stable jumped from 3.0 to 3.1.4 in
late October, at the beginning of November I updated the kernels...)

Am 03.12.2010 02:30, schrieb Neil Brown:
> 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

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-12-06 21:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2010-12-06 21:52     ` Stefan Hübner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.