[Bug 1171945] Re: Nested RAID levels aren't started after reboot

RoyK roy at karlsbakk.net
Thu May 30 12:35:07 UTC 2013


Just tried to reproduce bug on Debian Wheezy, and couldn't. Wheezy
assembles the nested raid without issues. Talked to xnox on #ubuntu-
bugs, and he told me to look into mdadm's udev rules. I did, and
compared it with the one in Wheezy, and the difference is pasted below.
If I change the first line (both in /lib/udev/rules.d and in the initrd)
from Wheezy, it works as before (ok with normal raids, not nested raids)
- if I replace the whole file with the one from Wheezy or just add the
GOTO below, it fails to assemble all raids.

Anyone that can help out here? I'm lost after a lot of digging…

thanks

roy

--- /lib/udev/rules.d/64-md-raid.rules	2013-05-30 14:28:58.966754000 +0200
+++ 64-md-raid.rules-debian	2013-05-30 14:13:41.850203999 +0200
@@ -3,11 +3,15 @@
 SUBSYSTEM!="block", GOTO="md_end"
 
 # handle potential components of arrays (the ones supported by md)
-ENV{ID_FS_TYPE}=="linux_raid_member", GOTO="md_inc"
+ENV{ID_FS_TYPE}=="ddf_raid_member|isw_raid_member|linux_raid_member", GOTO="md_inc"
 GOTO="md_inc_skip"
 
 LABEL="md_inc"
 
+## DISABLED: Incremental udev assembly disabled
+## ** this is a Debian-specific change **
+GOTO="md_inc_skip"
+
 # remember you can limit what gets auto/incrementally assembled by
 # mdadm.conf(5)'s 'AUTO' and selectively whitelist using 'ARRAY'
 ACTION=="add", RUN+="/sbin/mdadm --incremental $tempnode"
root at raidtest:~#

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mdadm in Ubuntu.
https://bugs.launchpad.net/bugs/1171945

Title:
  Nested RAID levels aren't started after reboot

Status in “mdadm” package in Ubuntu:
  Confirmed

Bug description:
  If creating a RAID5+0 or similar, the lower RAID-5s are started, but
  not the RAID-0 on top of them. I've tested this with Lucid (works),
  Precise (does not work) and Raring (does not work). A successive mdadm
  --assemble --scan finds the new RAID-0 and allows it to be mounted. On
  Lucid, however, this is found automatically. Something funky with
  udev?

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: mdadm 3.2.5-1ubuntu0.2
  ProcVersionSignature: Ubuntu 3.2.0-40.64-generic-pae 3.2.40
  Uname: Linux 3.2.0-40-generic-pae i686
  ApportVersion: 2.0.1-0ubuntu17.2
  Architecture: i386
  CurrentDmesg: [   17.144075] eth0: no IPv6 routers present
  Date: Tue Apr 23 19:28:48 2013
  InstallationMedia: Ubuntu-Server 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
  Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: Bochs Bochs
  MarkForUpload: True
  ProcEnviron:
   LANGUAGE=en_US:en
   TERM=xterm-color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.2.0-40-generic-pae root=/dev/mapper/hostname-root ro
  SourcePackage: mdadm
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 01/01/2007
  dmi.bios.vendor: Bochs
  dmi.bios.version: Bochs
  dmi.chassis.type: 1
  dmi.chassis.vendor: Bochs
  dmi.modalias: dmi:bvnBochs:bvrBochs:bd01/01/2007:svnBochs:pnBochs:pvr:cvnBochs:ct1:cvr:
  dmi.product.name: Bochs
  dmi.sys.vendor: Bochs
  etc.blkid.tab: Error: [Errno 2] No such file or directory: '/etc/blkid.tab'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1171945/+subscriptions




More information about the foundations-bugs mailing list