MD_AUTODETECT=y kernel option is obsolete (boot delay and udev/mdadm (raid) disturbance)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
mdadm (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Ubuntu still uses the kernel option
CONFIG_
thus enables the kernel's RAID autodetection during boot.
However, aside from causing a delay for everyone, this often also disturbs the udev/mdadm setup when raid devices are present in the system.
(i.e. devices are partly busy/set up by the kernel, without an entry in the mapfile used by mdadm --incremental)
Here is what README.initrams from mdadm tarball says about the kernel's raid autodetection features:
"while useful, [they] do not provide complete functionality
and are unlikely to be extended. The preferred way to assemble md
arrays at boot time is using 'mdadm' "
Ubuntu does assemble arrays using udev rules that run mdadm. (In initramfs as well as later on.)
The kernel's raid autodetection can and should therefore be disabled in ubuntu kernels.
description: | updated |
summary: |
- enabled kernel raid autodetection disturbs initramfs + enabled kernel raid autodetection disturbs udev/mdadm (initramfs & + later) |
tags: | added: kernel-series-unknown |
description: | updated |
summary: |
- enabled kernel raid autodetection disturbs udev/mdadm (initramfs & - later) + boot delay and udev/mdadm disturbance (obsolete kernel raid + autodetection) |
Changed in mdadm (Ubuntu): | |
status: | New → Confirmed |
summary: |
- boot delay and udev/mdadm disturbance (obsolete kernel raid - autodetection) + boot delay and udev/mdadm (raid) disturbance (obsolete MD_AUTODETECT=y) |
To disable raid assembly by the kernel (before it is disabled in the kernel config) add the boot option "raid=noautodet ect".