2012-06-26 08:38:34 |
Dimitri John Ledkov |
description |
Partitionable raid1 arrays following the /dev/md_d[0-9]* naming convention are ignored by default udev settings.
They seem to work just fine with the following change:
$ diff -u /lib/udev/rules.d/65-mdadm-blkid.rules /etc/udev/rules.d/
--- /lib/udev/rules.d/65-mdadm-blkid.rules 2012-02-10 05:04:54.000000000 +0200
+++ /etc/udev/rules.d/65-mdadm-blkid.rules 2012-03-29 08:28:50.153162304 +0300
@@ -4,7 +4,9 @@
# Based on Suse's udev rule file for md
SUBSYSTEM!="block", GOTO="mdadm_end"
+KERNEL=="md_d[0-9]*", GOTO="md_partitionable"
KERNEL!="md[0-9]*", GOTO="mdadm_end"
+LABEL="md_partitionable"
ACTION!="add|change", GOTO="mdadm_end"
# container devices have a metadata version of e.g. 'external:ddf' and
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: mdadm 3.2.3-2ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-20.33-generic 3.2.12
Uname: Linux 3.2.0-20-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.95-0ubuntu1
Architecture: amd64
Date: Thu Mar 29 11:48:27 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120112)
MDadmExamine.dev.sda: Error: command ['/sbin/mdadm', '-E', '/dev/sda'] failed with exit code 1: mdadm: cannot open /dev/sda: Permission denied
MDadmExamine.dev.sda1: Error: command ['/sbin/mdadm', '-E', '/dev/sda1'] failed with exit code 1: mdadm: cannot open /dev/sda1: Permission denied
MDadmExamine.dev.sda2: Error: command ['/sbin/mdadm', '-E', '/dev/sda2'] failed with exit code 1: mdadm: cannot open /dev/sda2: Permission denied
MDadmExamine.dev.sda3: Error: command ['/sbin/mdadm', '-E', '/dev/sda3'] failed with exit code 1: mdadm: cannot open /dev/sda3: Permission denied
MDadmExamine.dev.sda4: Error: command ['/sbin/mdadm', '-E', '/dev/sda4'] failed with exit code 1: mdadm: cannot open /dev/sda4: Permission denied
MDadmExamine.dev.sda5: Error: command ['/sbin/mdadm', '-E', '/dev/sda5'] failed with exit code 1: mdadm: cannot open /dev/sda5: Permission denied
MDadmExamine.dev.sda6: Error: command ['/sbin/mdadm', '-E', '/dev/sda6'] failed with exit code 1: mdadm: cannot open /dev/sda6: Permission denied
MDadmExamine.dev.sda7: Error: command ['/sbin/mdadm', '-E', '/dev/sda7'] failed with exit code 1: mdadm: cannot open /dev/sda7: Permission denied
MDadmExamine.dev.sda8: Error: command ['/sbin/mdadm', '-E', '/dev/sda8'] failed with exit code 1: mdadm: cannot open /dev/sda8: Permission denied
MDadmExamine.dev.sda9: Error: command ['/sbin/mdadm', '-E', '/dev/sda9'] failed with exit code 1: mdadm: cannot open /dev/sda9: Permission denied
MDadmExamine.dev.sdb: Error: command ['/sbin/mdadm', '-E', '/dev/sdb'] failed with exit code 1: mdadm: cannot open /dev/sdb: Permission denied
MDadmExamine.dev.sdb1: Error: command ['/sbin/mdadm', '-E', '/dev/sdb1'] failed with exit code 1: mdadm: cannot open /dev/sdb1: Permission denied
MDadmExamine.dev.sdb10: Error: command ['/sbin/mdadm', '-E', '/dev/sdb10'] failed with exit code 1: mdadm: cannot open /dev/sdb10: Permission denied
MDadmExamine.dev.sdb2: Error: command ['/sbin/mdadm', '-E', '/dev/sdb2'] failed with exit code 1: mdadm: cannot open /dev/sdb2: Permission denied
MDadmExamine.dev.sdb3: Error: command ['/sbin/mdadm', '-E', '/dev/sdb3'] failed with exit code 1: mdadm: cannot open /dev/sdb3: Permission denied
MDadmExamine.dev.sdb4: Error: command ['/sbin/mdadm', '-E', '/dev/sdb4'] failed with exit code 1: mdadm: cannot open /dev/sdb4: Permission denied
MDadmExamine.dev.sdb5: Error: command ['/sbin/mdadm', '-E', '/dev/sdb5'] failed with exit code 1: mdadm: cannot open /dev/sdb5: Permission denied
MDadmExamine.dev.sdb6: Error: command ['/sbin/mdadm', '-E', '/dev/sdb6'] failed with exit code 1: mdadm: cannot open /dev/sdb6: Permission denied
MDadmExamine.dev.sdb7: Error: command ['/sbin/mdadm', '-E', '/dev/sdb7'] failed with exit code 1: mdadm: cannot open /dev/sdb7: Permission denied
MDadmExamine.dev.sdb8: Error: command ['/sbin/mdadm', '-E', '/dev/sdb8'] failed with exit code 1: mdadm: cannot open /dev/sdb8: Permission denied
MDadmExamine.dev.sdb9: Error: command ['/sbin/mdadm', '-E', '/dev/sdb9'] failed with exit code 1: mdadm: cannot open /dev/sdb9: Permission denied
MDadmExamine.dev.sdc: Error: command ['/sbin/mdadm', '-E', '/dev/sdc'] failed with exit code 1: mdadm: cannot open /dev/sdc: Permission denied
MDadmExamine.dev.sdc1: Error: command ['/sbin/mdadm', '-E', '/dev/sdc1'] failed with exit code 1: mdadm: cannot open /dev/sdc1: Permission denied
MDadmExamine.dev.sdc2: Error: command ['/sbin/mdadm', '-E', '/dev/sdc2'] failed with exit code 1: mdadm: cannot open /dev/sdc2: Permission denied
MDadmExamine.dev.sdc3: Error: command ['/sbin/mdadm', '-E', '/dev/sdc3'] failed with exit code 1: mdadm: cannot open /dev/sdc3: Permission denied
MDadmExamine.dev.sdc4: Error: command ['/sbin/mdadm', '-E', '/dev/sdc4'] failed with exit code 1: mdadm: cannot open /dev/sdc4: Permission denied
MDadmExamine.dev.sdc5: Error: command ['/sbin/mdadm', '-E', '/dev/sdc5'] failed with exit code 1: mdadm: cannot open /dev/sdc5: Permission denied
MDadmExamine.dev.sdc6: Error: command ['/sbin/mdadm', '-E', '/dev/sdc6'] failed with exit code 1: mdadm: cannot open /dev/sdc6: Permission denied
MDadmExamine.dev.sdc7: Error: command ['/sbin/mdadm', '-E', '/dev/sdc7'] failed with exit code 1: mdadm: cannot open /dev/sdc7: Permission denied
MDadmExamine.dev.sdc8: Error: command ['/sbin/mdadm', '-E', '/dev/sdc8'] failed with exit code 1: mdadm: cannot open /dev/sdc8: Permission denied
MDadmExamine.dev.sdc9: Error: command ['/sbin/mdadm', '-E', '/dev/sdc9'] failed with exit code 1: mdadm: cannot open /dev/sdc9: Permission denied
MDadmExamine.dev.sdd: Error: command ['/sbin/mdadm', '-E', '/dev/sdd'] failed with exit code 1: mdadm: cannot open /dev/sdd: Permission denied
MDadmExamine.dev.sdd1: Error: command ['/sbin/mdadm', '-E', '/dev/sdd1'] failed with exit code 1: mdadm: cannot open /dev/sdd1: Permission denied
MDadmExamine.dev.sdd2: Error: command ['/sbin/mdadm', '-E', '/dev/sdd2'] failed with exit code 1: mdadm: cannot open /dev/sdd2: Permission denied
MDadmExamine.dev.sdd3: Error: command ['/sbin/mdadm', '-E', '/dev/sdd3'] failed with exit code 1: mdadm: cannot open /dev/sdd3: Permission denied
MDadmExamine.dev.sdd4: Error: command ['/sbin/mdadm', '-E', '/dev/sdd4'] failed with exit code 1: mdadm: cannot open /dev/sdd4: Permission denied
MDadmExamine.dev.sdd5: Error: command ['/sbin/mdadm', '-E', '/dev/sdd5'] failed with exit code 1: mdadm: cannot open /dev/sdd5: Permission denied
MDadmExamine.dev.sdd6: Error: command ['/sbin/mdadm', '-E', '/dev/sdd6'] failed with exit code 1: mdadm: cannot open /dev/sdd6: Permission denied
MDadmExamine.dev.sdd7: Error: command ['/sbin/mdadm', '-E', '/dev/sdd7'] failed with exit code 1: mdadm: cannot open /dev/sdd7: Permission denied
MDadmExamine.dev.sde: Error: command ['/sbin/mdadm', '-E', '/dev/sde'] failed with exit code 1: mdadm: cannot open /dev/sde: Permission denied
MDadmExamine.dev.sdf: Error: command ['/sbin/mdadm', '-E', '/dev/sdf'] failed with exit code 1: mdadm: cannot open /dev/sdf: Permission denied
MDadmExamine.dev.sdg: Error: command ['/sbin/mdadm', '-E', '/dev/sdg'] failed with exit code 1: mdadm: cannot open /dev/sdg: Permission denied
MDadmExamine.dev.sdh: Error: command ['/sbin/mdadm', '-E', '/dev/sdh'] failed with exit code 1: mdadm: cannot open /dev/sdh: Permission denied
MDadmExamine.dev.sdi: Error: command ['/sbin/mdadm', '-E', '/dev/sdi'] failed with exit code 1: mdadm: cannot open /dev/sdi: Permission denied
MDadmExamine.dev.sdi1: Error: command ['/sbin/mdadm', '-E', '/dev/sdi1'] failed with exit code 1: mdadm: cannot open /dev/sdi1: Permission denied
MDadmExamine.dev.sdi2: Error: command ['/sbin/mdadm', '-E', '/dev/sdi2'] failed with exit code 1: mdadm: cannot open /dev/sdi2: Permission denied
MDadmExamine.dev.sdi3: Error: command ['/sbin/mdadm', '-E', '/dev/sdi3'] failed with exit code 1: mdadm: cannot open /dev/sdi3: Permission denied
MDadmExamine.dev.sdi4: Error: command ['/sbin/mdadm', '-E', '/dev/sdi4'] failed with exit code 1: mdadm: cannot open /dev/sdi4: Permission denied
MDadmExamine.dev.sdi5: Error: command ['/sbin/mdadm', '-E', '/dev/sdi5'] failed with exit code 1: mdadm: cannot open /dev/sdi5: Permission denied
MDadmExamine.dev.sdi6: Error: command ['/sbin/mdadm', '-E', '/dev/sdi6'] failed with exit code 1: mdadm: cannot open /dev/sdi6: Permission denied
MDadmExamine.dev.sdi7: Error: command ['/sbin/mdadm', '-E', '/dev/sdi7'] failed with exit code 1: mdadm: cannot open /dev/sdi7: Permission denied
MDadmExamine.dev.sdj: Error: command ['/sbin/mdadm', '-E', '/dev/sdj'] failed with exit code 1: mdadm: cannot open /dev/sdj: Permission denied
MDadmExamine.dev.sdj1: Error: command ['/sbin/mdadm', '-E', '/dev/sdj1'] failed with exit code 1: mdadm: cannot open /dev/sdj1: Permission denied
MDadmExamine.dev.sdj2: Error: command ['/sbin/mdadm', '-E', '/dev/sdj2'] failed with exit code 1: mdadm: cannot open /dev/sdj2: Permission denied
MDadmExamine.dev.sdj3: Error: command ['/sbin/mdadm', '-E', '/dev/sdj3'] failed with exit code 1: mdadm: cannot open /dev/sdj3: Permission denied
MDadmExamine.dev.sdj4: Error: command ['/sbin/mdadm', '-E', '/dev/sdj4'] failed with exit code 1: mdadm: cannot open /dev/sdj4: Permission denied
MDadmExamine.dev.sdj5: Error: command ['/sbin/mdadm', '-E', '/dev/sdj5'] failed with exit code 1: mdadm: cannot open /dev/sdj5: Permission denied
MDadmExamine.dev.sdj6: Error: command ['/sbin/mdadm', '-E', '/dev/sdj6'] failed with exit code 1: mdadm: cannot open /dev/sdj6: Permission denied
MDadmExamine.dev.sdj7: Error: command ['/sbin/mdadm', '-E', '/dev/sdj7'] failed with exit code 1: mdadm: cannot open /dev/sdj7: Permission denied
MDadmExamine.dev.sdk: Error: command ['/sbin/mdadm', '-E', '/dev/sdk'] failed with exit code 1: mdadm: cannot open /dev/sdk: Permission denied
MDadmExamine.dev.sdk1: Error: command ['/sbin/mdadm', '-E', '/dev/sdk1'] failed with exit code 1: mdadm: cannot open /dev/sdk1: Permission denied
MDadmExamine.dev.sdk2: Error: command ['/sbin/mdadm', '-E', '/dev/sdk2'] failed with exit code 1: mdadm: cannot open /dev/sdk2: Permission denied
MDadmExamine.dev.sdk3: Error: command ['/sbin/mdadm', '-E', '/dev/sdk3'] failed with exit code 1: mdadm: cannot open /dev/sdk3: Permission denied
MDadmExamine.dev.sdk4: Error: command ['/sbin/mdadm', '-E', '/dev/sdk4'] failed with exit code 1: mdadm: cannot open /dev/sdk4: Permission denied
MDadmExamine.dev.sdk5: Error: command ['/sbin/mdadm', '-E', '/dev/sdk5'] failed with exit code 1: mdadm: cannot open /dev/sdk5: Permission denied
MDadmExamine.dev.sdk6: Error: command ['/sbin/mdadm', '-E', '/dev/sdk6'] failed with exit code 1: mdadm: cannot open /dev/sdk6: Permission denied
MDadmExamine.dev.sdk7: Error: command ['/sbin/mdadm', '-E', '/dev/sdk7'] failed with exit code 1: mdadm: cannot open /dev/sdk7: Permission denied
MDadmExamine.dev.sdk8: Error: command ['/sbin/mdadm', '-E', '/dev/sdk8'] failed with exit code 1: mdadm: cannot open /dev/sdk8: Permission denied
MDadmExamine.dev.sdk9: Error: command ['/sbin/mdadm', '-E', '/dev/sdk9'] failed with exit code 1: mdadm: cannot open /dev/sdk9: Permission denied
MDadmExamine.dev.sdl: Error: command ['/sbin/mdadm', '-E', '/dev/sdl'] failed with exit code 1: mdadm: cannot open /dev/sdl: Permission denied
MachineType: System manufacturer System Product Name
ProcEnviron:
LANGUAGE=en_IE:en
TERM=xterm
LANG=en_IE.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.2.0-20-generic root=/dev/mapper/pre-pp_root ro quiet splash vt.handoff=7
SourcePackage: mdadm
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/25/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0704
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: P8B WS
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0704:bd07/25/2011:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP8BWS:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer
lilo.conf: Error: [Errno 13] Permission denied: '/etc/lilo.conf' |
[IMPACT]
* Partitionable raid1 arrays following the /dev/md_d[0-9]* naming convention were ignored by the default udev settings.
* Thus it prevents booting, if rootfs is on the partitioned RAID array, since that would never be assembled by udev rules
* This is fixed by switching from dated Ubuntu udev rules, to the now shipped in the upstream udev rules
[TESTCASE]
* Add partitioned RAID1 to the system
* Notice that it doesn't get assembled
* Upgrade the package
* Re-add partitioned RAID1 to the system
* Notice that it does get assembled
[Regression Potential]
* The default udev rule has changed. Users who relied on the previous, incomplete/broken, behaviour may be pleasantly surprised or annoyed that by-hand assembly of partitioned RAID arrays is not longer required. |
|