update-initramfs not finding UUID-less raid arrays in mdadm.conf

Bug #1316989 reported by dw1
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mdadm (Ubuntu)
New
Undecided
Unassigned

Bug Description

I found this in an unattended-upgrades notification email after a kernel upgrade:

update-initramfs: Generating /boot/initrd.img-3.13.0-24-generic
W: mdadm: the array /dev/md1 with UUID 69643aeb:2c2b10a0:1f51fb89:78ee93fe
W: mdadm: is currently active, but it is not listed in mdadm.conf. if
W: mdadm: it is needed for boot, then YOUR SYSTEM IS NOW UNBOOTABLE!
W: mdadm: please inspect the output of /usr/share/mdadm/mkconf, compare
W: mdadm: it to /etc/mdadm/mdadm.conf, and make the necessary changes.
W: mdadm: the array /dev/md3 with UUID 5254924c:1190c837:1f51fb89:78ee93fe
W: mdadm: is currently active, but it is not listed in mdadm.conf. if
W: mdadm: it is needed for boot, then YOUR SYSTEM IS NOW UNBOOTABLE!
W: mdadm: please inspect the output of /usr/share/mdadm/mkconf, compare
W: mdadm: it to /etc/mdadm/mdadm.conf, and make the necessary changes.

The messages are reproducable by running update-initramfs -u

/etc/mdadm/mdadm.conf contains raid arrays defined without UUID, as configured by server provider on setup:

# This file was auto-generated on Tue, 04 Mar 2014 11:35:34 +0100
# by mkconf $Id$
ARRAY /dev/md1 level=raid1 num-devices=2 devices=/dev/sda1,/dev/sdb1
ARRAY /dev/md3 level=raid1 num-devices=2 devices=/dev/sda3,/dev/sdb3

/usr/share/mdadm/mkconf returns raid arrays with UUID:

# definitions of existing MD arrays
ARRAY /dev/md1 UUID=69643aeb:2c2b10a0:1f51fb89:78ee93fe
ARRAY /dev/md3 UUID=5254924c:1190c837:1f51fb89:78ee93fe

Reboot worked fine with no changes to mdadm.conf

Replacing mdadm.conf with output of mkconf or adding UUID parameter after the others stops the warning.

mdadm version is 3.2.5-5ubuntu4

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: initramfs-tools 0.103ubuntu4
ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
Date: Wed May 7 08:58:01 2014
PackageArchitecture: all
SourcePackage: initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
dw1 (dw1) wrote :
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

mdadm hook, is in fact shipped in the mdadm package not in the initramfs-tools itself.

affects: initramfs-tools (Ubuntu) → mdadm (Ubuntu)
dw1 (dw1)
description: updated
description: updated
description: updated
dw1 (dw1)
description: updated
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.