[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#814036: initramfs-tools: mdadm doesn't assemble disk



Package: initramfs-tools
Version: 0.120
Severity: important

Hello,

Our server failed to reboot this afternoon. initrd was stuck trying to
get the root device, running local-block in a loop before starting an
emergency shell.  There, running mdam -A --scan discovered everything
and exitting the shell allowed the boot to proceed.  There was no
previous mention in the boot about being running mdadm.

My guess (we can't really afford retrying etc. as it's a production
system) is that AIUI mdadm is called just once from local-top, but
that's perhaps too early, the disks are not yet discovered because the
controller is slow. local-block is then run repeatedly to try to get the
block devices, but mdadm from local-top should be called repeatedly too
to try to assemble the md too?

Samuel
# mdadm Debian configuration
#
# You can run 'dpkg-reconfigure mdadm' to modify the values in this file, if
# you want. You can also change the values here and changes will be preserved.
# Do note that only the values are preserved; the rest of the file is
# rewritten.
#

# INITRDSTART:
#   list of arrays (or 'all') to start automatically when the initial ramdisk
#   loads. This list *must* include the array holding your root filesystem. Use
#   'none' to prevent any array from being started from the initial ramdisk.
INITRDSTART='all'

# AUTOCHECK:
#   should mdadm run periodic redundancy checks over your arrays? See
#   /etc/cron.d/mdadm.
AUTOCHECK=true

# START_DAEMON:
#   should mdadm start the MD monitoring daemon during boot?
START_DAEMON=true

# DAEMON_OPTIONS:
#   additional options to pass to the daemon.
DAEMON_OPTIONS="--syslog"

# VERBOSE:
#   if this variable is set to true, mdadm will be a little more verbose e.g.
#   when creating the initramfs.
VERBOSE=false
ARRAY /dev/md/0 metadata=1.2 name=apollon:0 UUID=0251c1f9:87d10ee8:f35106f1:fc2c1ce0
ARRAY /dev/md/1 metadata=1.2 name=apollon:1 UUID=de5c51dd:dc646570:a791dde2:76b95a00
ARRAY /dev/md/2 metadata=1.2 name=apollon:2 UUID=b07a6bab:d8d016a7:0203809b:8313199b
ARRAY /dev/md/3 metadata=1.2 name=apollon:3 UUID=b8fe6506:06f4d3b1:cbbcb08c:73a2a178
ARRAY /dev/md/4 metadata=1.2 name=apollon:4 UUID=7d928fd5:e3f0d6ec:b81cd933:f056df30
ARRAY /dev/md10 metadata=1.2 name=apollon:10 UUID=b3f44d83:70a26fe7:8e43d4aa:3242f60c
MAILADDR root

Reply to: