linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Bug#737951: mdadm: udev rules files ignores raid=noautodetect kernel parameter
       [not found] <2014-02-07T08-14-24@devnull.michael-prokop.at>
@ 2014-02-07  7:36 ` Michael Tokarev
  2014-02-10 15:53   ` Michael Prokop
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tokarev @ 2014-02-07  7:36 UTC (permalink / raw)
  To: Michael Prokop, 737951; +Cc: linux-raid

Control: tag -1 + moreinfo
Control: severity -1 wishlist

07.02.2014 11:21, Michael Prokop wrote:
> Package: mdadm
> Version: 3.3-2
> Severity: normal
> 
> Quoting from kernel's Documentation/md.txt:
> 
> ,---- [ https://www.kernel.org/doc/Documentation/md.txt ]
> | Boot time autodetection of RAID arrays
> | --------------------------------------
> |
> | When md is compiled into the kernel (not as module), partitions of
> | type 0xfd are scanned and automatically assembled into RAID arrays.
> | This autodetection may be suppressed with the kernel parameter
> | "raid=noautodetect".  As of kernel 2.6.9, only drives with a type 0
> | superblock can be autodetected and run at boot time.
> `----
> 
> The udev rules file /lib/udev/rules.d/64-md-raid-assembly.rules
> shipped by mdadm ignores that kernel parameter and tries to assemble
> mdadm RAIDs without honoring the raid=noautodetect setting.
> 
> It would be nice if there would be some way (maybe just checking for
> raid=noautodetect in /proc/cmdline?) to disable auto assembly
> without having to manually delete/override the udev file.

I don't think that using raid=noautodetect is a good way of doing
this.  It is for the really obsolete in-kernel array assembly, and
it is described as such in the documentation you quoted above.

In debian we have another parameter in initrd, --

  mdassemble=all|none|list

which is copied from a debconf question.  Maybe this one is better
suited for this need, at least it is more flexible.  It is sort
of trivial to get this parameter from kernel command line in the
initrd script.

But.

It is all about early-boot environment.

None of these parameters, at my point of view, should be considered
after pre-boot is done and we're in the main system.  If you're
talking about main udev rules of mdadm, I disagree, there should
be entirely separate option, if at all.

What is your usage case?  What are you trying to achieve?

Note that we're moving (very slow) towards assembling everything
using those rules, including your boot arrays, so if you disable
those, your system wont boot anymore.

Adding linux-raid list to Cc.  Please describe your situation
in more detail, and maybe together we will be able to come to
some solution.

Marking your bugreport as a wishlist for now in debian.

Thanks,

/mjt

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

* Bug#737951: mdadm: udev rules files ignores raid=noautodetect kernel parameter
  2014-02-07  7:36 ` Bug#737951: mdadm: udev rules files ignores raid=noautodetect kernel parameter Michael Tokarev
@ 2014-02-10 15:53   ` Michael Prokop
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Prokop @ 2014-02-10 15:53 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: 737951, linux-raid

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

Hi,

thanks for the fast reply, Michael

* Michael Tokarev [Fri Feb 07, 2014 at 11:36:46AM +0400]:
> 07.02.2014 11:21, Michael Prokop wrote:

> > It would be nice if there would be some way (maybe just checking for
> > raid=noautodetect in /proc/cmdline?) to disable auto assembly
> > without having to manually delete/override the udev file.

> I don't think that using raid=noautodetect is a good way of doing
> this.  It is for the really obsolete in-kernel array assembly, and
> it is described as such in the documentation you quoted above.

Right

[...]
> None of these parameters, at my point of view, should be considered
> after pre-boot is done and we're in the main system.  If you're
> talking about main udev rules of mdadm, I disagree, there should
> be entirely separate option, if at all.

> What is your usage case?  What are you trying to achieve?
[...]

My goal is to support booting a live system (like http://grml.org/)
in a way which *prevents* auto assembling under all circumstances.
This is relevant e.g. for data rescue and forensics tasks.

regards,
-mika-

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2014-02-10 15:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <2014-02-07T08-14-24@devnull.michael-prokop.at>
2014-02-07  7:36 ` Bug#737951: mdadm: udev rules files ignores raid=noautodetect kernel parameter Michael Tokarev
2014-02-10 15:53   ` Michael Prokop

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