Bug#583917: initramfs-tools: long delay (6–10 minutes) during boot (root device detection) after upgrade on RAID/LVM/LUKS setup
Subject: initramfs-tools: long delay during boot after upgrade
Package: initramfs-tools
Version: 0.95.1
Severity: normal
Tags: sid
*** Please type your report below this line ***
Dear Debian folks,
yesterday I upgrade my Debian Sid/unstable system after over a week. Several core packages were upgraded by doing this as lvm2, mdadm, initscripts, initramfs-tools. I have a standard md RAID1 setup with LVM over it. Furthermore there is a partition for `/boot` and a LUKS encrypted `/`.
Now I am seeing the following behavior. After GRUB2 started (`linux /vmlinuz-2.6.32-5-amd64 root=/dev/mapper/lvm-root …`) I first get to see a lot of lines
sys/devices/virtual/block (some incremented number in 80??)
(this is from memory). Afterward I am asked for the LUKS passphrase. After that nothing happens. Just a lot of – according to my Web research unrelated –udev-work messages about `NAME` and `SYMLINK` stuff and nothing happens. Then after six to ten minutes booting finally continues.
$ dmesg
[…]
[ 1.588141] usbcore: registered new interface driver usbhid
[ 1.588144] usbhid: v2.6:USB HID core driver
[ 1.676754] md: raid1 personality registered for level 1
[ 1.689704] md: md0 stopped.
[ 1.690573] md: bind<sda1>
[ 1.692913] raid1: raid set md0 active with 1 out of 2 mirrors
[ 1.692944] md0: detected capacity change from 0 to 509804544
[ 1.694098] md0: unknown partition table
[ 1.701276] md: md1 stopped.
[ 1.703642] md: bind<sda2>
[ 1.706108] raid1: raid set md1 active with 1 out of 2 mirrors
[ 1.706140] md1: detected capacity change from 0 to 499595214848
[ 1.707746] md1:
[ 1.715665] device-mapper: uevent: version 1.0.3
[ 1.715825] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[ 1.745488] unknown partition table
[ 1144.682200] PM: Starting manual resume from disk
[ 1144.682205] PM: Resume from partition 253:2
[ 1144.682207] PM: Checking hibernation image.
[ 1144.693923] PM: Error -22 checking image file
[ 1144.693927] PM: Resume from disk failed.
[…]
Is that related to the `root` argument passed in GRUB to `linux`. In [1] the solution is to use a UUID instead of the path. Though I did not find how I can find out the correct value for my RAID device or LVM partition.
Sorry if I filed this against the wrong package. Any hints are welcome. Please ask for additional information if needed.
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages initramfs-tools depends on:
ii cpio 2.11-4 GNU cpio -- a program to manage ar
ii findutils 4.4.2-1 utilities for finding files--find,
ii klibc-utils 1.5.18-1 small utilities built with klibc f
ii module-init-tools 3.12~pre2-3 tools for managing Linux kernel mo
ii udev 154-1 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.15.3-1 Tiny utilities for small and embed
initramfs-tools suggests no packages.
-- no debconf information
05-31-2010, 08:29 PM
Michael Prokop
Bug#583917: initramfs-tools: long delay (6–10 minutes) during boot (root device detection) after upgrade on RAID/LVM/LUKS setup
* Paul Menzel <pm.debian@googlemail.com> [Mon May 31, 2010 at 06:41:45PM +0200]:
> yesterday I upgrade my Debian Sid/unstable system after over a
> week. Several core packages were upgraded by doing this as lvm2,
> mdadm, initscripts, initramfs-tools. I have a standard md RAID1
> setup with LVM over it. Furthermore there is a partition for
> `/boot` and a LUKS encrypted `/`.
> Now I am seeing the following behavior. After GRUB2 started
> (`linux /vmlinuz-2.6.32-5-amd64 root=/dev/mapper/lvm-root …`) I
> first get to see a lot of lines
> sys/devices/virtual/block (some incremented number in 80??)
> (this is from memory). Afterward I am asked for the LUKS
> passphrase. After that nothing happens. Just a lot of – according
> to my Web research unrelated –udev-work messages about `NAME` and
> `SYMLINK` stuff and nothing happens. Then after six to ten minutes
> booting finally continues.
[...]
> Is that related to the `root` argument passed in GRUB to `linux`.
> In [1] the solution is to use a UUID instead of the path. Though I
> did not find how I can find out the correct value for my RAID
> device or LVM partition.
Executing 'blkid /dev/mapper/lvm-root' should provide you the UUID
of the LVM partiton for use as root=UUID=... argument.
regards,
-mika-
05-31-2010, 10:59 PM
Paul Menzel
Bug#583917: initramfs-tools: long delay (6–10 minutes) during boot (root device detection) after upgrade on RAID/LVM/LUKS setup
Am Montag, den 31.05.2010, 22:29 +0200 schrieb Michael Prokop:
> * Paul Menzel <pm.debian@googlemail.com> [Mon May 31, 2010 at 06:41:45PM +0200]:
>
> > yesterday I upgrade my Debian Sid/unstable system after over a
> > week. Several core packages were upgraded by doing this as lvm2,
> > mdadm, initscripts, initramfs-tools. I have a standard md RAID1
> > setup with LVM over it. Furthermore there is a partition for
> > `/boot` and a LUKS encrypted `/`.
>
> > Now I am seeing the following behavior. After GRUB2 started
> > (`linux /vmlinuz-2.6.32-5-amd64 root=/dev/mapper/lvm-root …`) I
> > first get to see a lot of lines
>
> > sys/devices/virtual/block (some incremented number in 80??)
>
> > (this is from memory). Afterward I am asked for the LUKS
> > passphrase. After that nothing happens. Just a lot of – according
> > to my Web research unrelated –udev-work messages about `NAME` and
> > `SYMLINK` stuff and nothing happens. Then after six to ten minutes
> > booting finally continues.
>
> [...]
>
> > Is that related to the `root` argument passed in GRUB to `linux`.
> > In [1] the solution is to use a UUID instead of the path. Though I
> > did not find how I can find out the correct value for my RAID
> > device or LVM partition.
>
> Executing 'blkid /dev/mapper/lvm-root' should provide you the UUID
> of the LVM partiton for use as root=UUID=... argument.
Thank you. While waiting during the now four hour long boot I found that
too over the comment about `vol_id` in `/etc/fstab`. ;-) Adding
`root=UUID=…` to `/boot/grub/grub.cfg` fixed the long boot for me. There
are still the following issues.
1. What upgrade introduced this behavior?
2. According to `/etc/default/grub` the `root=` entry should be set to
the UUID.
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
Somehow that does not work on my system.
3. The comment in `/etc/fstab` should be updated to use `blkid` instead
of `vol_id`.
4. I still see those `sys/devices/virtual/block/md{0,1} (number)`
running by. Once before entering the LUKS passphrase dialog and after
it. Each time this seems to cause a delay of several seconds to the boot
process. I guess that is debpkg:mdadm related.