udev not recognizing mdraid partitions

Bug #700854 reported by linas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: udev

Current udev rules mdraid disks seem not to find raid devices, thus leading to a boot failure (boot drops into busybox).

As far as I can tell, what is happening is that new kernels use a modified /dev naming convention for raid devices, while the udev scripts are expecting the old convention. Thus, for example:

-- create a new md device, for example "mdadm -C /dev/md1 -a md1 -l1 -n2 /dev/sda1 /dev/sdb1"
--,reboot
-- after the reboot, the raid device will show up as /dev/md_d125 (for example) instead of the expected /dev/md1 This is annoying, perhaps, but not (yet) fatal.
-- udev runs automatically, uses the rules in /lib/udev/rules.d/65-mdadm-blkid.rules These are looking for devices using rules such as: KERNEL!="md[0-9]*", GOTO="mdadm_end" This regex clearly fails if the device is named md_d125
-- as a result, no links are created in /dev/disk/by-uuid or /dev/disk/by-label, etc.
-- as a result, entries in /etc/fstab and/or grub/menu.cfg can fail, if the disk was specified by label or by uuid.

The overall result is confusing/painful to work-around/fix esp if one is trying to make /boot or / into a raid device :-(

Note that there is an interaction with the /etc/mdadm/mdadm.conf file, which may or may not be stale. Even if it is not stale, it may still have data incompatible with udev. So, for example, using /usr/share/mdadm/mkconf >/etc/mdadm/mdadm.conf to create a config file, one might end up with entries such as "/dev/md/some_label_blah" which udev will not recognize ...

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: udev 151-12.3
ProcVersionSignature: Ubuntu 2.6.32-27.49-generic 2.6.32.26+drm33.12
Uname: Linux 2.6.32-27-generic x86_64
Architecture: amd64
CustomUdevRuleFiles: 10-vboxdrv.rules 50-virtualbox-ose.rules
Date: Sun Jan 9 18:12:53 2011
MachineType: Dell Inc. Dell DM061
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.32-27-generic root=/dev/md6 ro
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: udev
dmi.bios.date: 03/30/2007
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 2.3.2
dmi.board.name: 0WG864
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 6
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr2.3.2:bd03/30/2007:svnDellInc.:pnDellDM061:pvr:rvnDellInc.:rn0WG864:rvr:cvnDellInc.:ct6:cvr:
dmi.product.name: Dell DM061
dmi.sys.vendor: Dell Inc.

Revision history for this message
linas (linasvepstas) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.