Comment 28 for bug 990913

Revision history for this message
Tom Mercelis (tom-mercelis) wrote :

What is the status of this bug supposed to be in Ubuntu 12.04 with kernel 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64?

I updated to this version (coming from 11.10) last weekend, and now my "nested" raid always starts in degraded mode.

What I can reproduce every time:
Power up system, it shows a message saying the device md5 is starting in degraded mode. I can log into Gnome (so I'm not stopped by any busybox).

I have three soft RAID devices reported by /proc/mdstat
md3 : active raid1 sdd1[0] sdc1[1]
      521984 blocks [2/2] [UU]

md5 : active raid5 sdc3[2] sdd3[1]
      3859889152 blocks level 5, 64k chunk, algorithm 2 [3/2] [_UU]

md4 : active raid0 sdb1[0] sda1[1]
      1931640448 blocks super 1.0 64k chunks

As you can see, md5 claims to missing a device. This is not true; the device it's missing is md4.
I can add this device:
mdadm --add /dev/md5 /dev/md4
mdadm: added /dev/md4

Which results in this in /proc/mdstat:

Personalities : [raid0] [raid6] [raid5] [raid4] [raid1] [linear] [multipath] [raid10]
md3 : active raid1 sdd1[0] sdc1[1]
      521984 blocks [2/2] [UU]

md5 : active raid5 md4[3] sdc3[2] sdd3[1]
      3859889152 blocks level 5, 64k chunk, algorithm 2 [3/2] [_UU]
      [>....................] recovery = 0.0% (1840384/1929944576) finish=568.6min speed=56515K/sec

md4 : active raid0 sdb1[0] sda1[1]
      1931640448 blocks super 1.0 64k chunks

unused devices: <none>

after about 10 hours of syncing, the system is running fine.

But when I reboot; md5 seems to be started without md4.

The mdadm.conf file hasn't changed since my 11.10 installation, it is in my initrd.img. (see attachment)