Bug#594472: grub-pc: scary messages and very long boot time after upgrade

Toni Mueller support at oeko.net
Thu Aug 26 09:07:17 UTC 2010


Package: grub-pc
Version: 1.98+20100804-2
Severity: important


Hi,

my machine is a standard PC with two SATA disks, bundled as md0 and md1,
with /boot on md0, and everything else in a LUKS encrypted container on
md1 with LVM inside. So, booting normally works by fetching the kernel
and initrd from /boot, then asking for a passphrase to unlock the
container, then proceed with the boot process.

Yesterday, I upgraded to all the latest and greatest in Testing, which
included both new versions of grub-pc and
linux-image--2.6.32-5-686-bigmem (I have 8GB RAM in my machine) and
grub-pc presented me with a statement like "your UUIDs are garbled. I
need to regenerate them, or you'll be unable to boot.", with my two
disks selected as the default devices to regenerate UUIDs for. I
accepted, understanding that grub-pc wanted to write new MBRs to the
disks, then shut down the machine after the upgrade finished. Today, the
machine booted to the point where it would normally ask for the
passphrase, but instead, it said:

  Volume group "ev0" not found
  Skipping volume group ev0
Unable to find LVM volume ev0/root
  Volume group "ev0" not found
  Skipping volume group ev0
Unable to find LVM volume ev0/swap

After several (5?) minutes where the machine didn't do anything I was
able to see, the screen was suddenly flushed with a large number of
messages like:

  /sys/devices/virtual/block/md0 (10715)
  /sys/devices/virtual/block/md1 (10716)
  /sys/devices/virtual/block/md0 (10717)
  /sys/devices/virtual/block/md1 (10718)
  /sys/devices/virtual/block/md0 (10719)
  /sys/devices/virtual/block/md1 (10720)
  /sys/devices/virtual/block/md0 (10721)
Unlocking the disk /dev/md1 (md1_crypt)
Enter the passphrase:

After entering the passphrase, the machine used several more minutes
while the cpu cooler went into high pitch, then it emitted the following
message:

  10 logical volume(s) in volume group "ev0" now active
cryptsetup: md1_crypt set up successfully

Then it took some more time, after which it emitted a flurry of
messages, ending with this:


  /sys/devices/virtual/block/md0 (25598)
  /sys/devices/virtual/block/md1 (25599)
  /sys/devices/virtual/block/md0 (25600)
  /sys/devices/virtual/block/md1 (25601)
  /sys/devices/virtual/block/md0 (25602)
done.


After that, booting continued normally.


This was a scary event, all in all, and I'd also like to have the
machine boot in 3 minutes, instead of some 15, again.

If you think that this problem should be assigned to a different package
(eg. linux-image-...), please feel free to re-assign, as well as up- or
downgrading the severity.

I think that the problem justifies marking it as 'important', but
hesitated to mark it 'grave' because the machine eventually booted.


Kind regards,
--Toni++


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/ev0-root / ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/md0 /boot ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/ev0-home /home ext3 rw,errors=continue,data=ordered 0 0
/dev/mapper/ev0-vmachines /mounts ext3 rw,errors=continue,data=ordered 0 0
/dev/mapper/ev0-srv /srv ext3 rw,errors=continue,data=ordered 0 0
/dev/mapper/ev0-usr /usr ext3 rw,errors=continue,data=ordered 0 0
/dev/mapper/ev0-var /var ext3 rw,errors=continue,data=ordered 0 0
/dev/mapper/ev0-var--log /var/log ext3 rw,errors=continue,data=ordered 0 0
/dev/mapper/ev0-qmail /var/qmail ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/ev0-qmail--queue /var/qmail/queue ext3 rw,relatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-ST31000528AS_9VP25GY3
(hd1)	/dev/disk/by-id/ata-ST31000528AS_9VP23A8N
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
if loadfont /grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
insmod png
if background_image /grub/moreblue-orbit-grub.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-686' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-5-xen-686 ...'
	linux	/vmlinuz-2.6.32-5-xen-686 root=/dev/mapper/ev0-root ro root=/dev/mapper/ev0-root ro 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.32-5-xen-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-5-xen-686 ...'
	linux	/vmlinuz-2.6.32-5-xen-686 root=/dev/mapper/ev0-root ro single root=/dev/mapper/ev0-root ro
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.32-5-xen-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686-bigmem' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-5-686-bigmem ...'
	linux	/vmlinuz-2.6.32-5-686-bigmem root=/dev/mapper/ev0-root ro root=/dev/mapper/ev0-root ro 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.32-5-686-bigmem
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686-bigmem (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-5-686-bigmem ...'
	linux	/vmlinuz-2.6.32-5-686-bigmem root=/dev/mapper/ev0-root ro single root=/dev/mapper/ev0-root ro
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.32-5-686-bigmem
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-4-xen-686' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-4-xen-686 ...'
	linux	/vmlinuz-2.6.32-4-xen-686 root=/dev/mapper/ev0-root ro root=/dev/mapper/ev0-root ro 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.32-4-xen-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-4-xen-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-4-xen-686 ...'
	linux	/vmlinuz-2.6.32-4-xen-686 root=/dev/mapper/ev0-root ro single root=/dev/mapper/ev0-root ro
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.32-4-xen-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-4-686-bigmem' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-4-686-bigmem ...'
	linux	/vmlinuz-2.6.32-4-686-bigmem root=/dev/mapper/ev0-root ro root=/dev/mapper/ev0-root ro 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.32-4-686-bigmem
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-4-686-bigmem (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-4-686-bigmem ...'
	linux	/vmlinuz-2.6.32-4-686-bigmem root=/dev/mapper/ev0-root ro single root=/dev/mapper/ev0-root ro
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.32-4-686-bigmem
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-686 and XEN 3.4-amd64' --class debian --class gnu-linux --class gnu --class os --class xen {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-5-xen-686 ...'
	multiboot	/xen-3.4-amd64.gz placeholder  
	module	/vmlinuz-2.6.32-5-xen-686 placeholder root=/dev/mapper/ev0-root ro root=/dev/mapper/ev0-root ro 
	echo	'Loading initial ramdisk ...'
	module	/initrd.img-2.6.32-5-xen-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-686 and XEN 3.4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-5-xen-686 ...'
	multiboot	/xen-3.4-amd64.gz placeholder 
	module	/vmlinuz-2.6.32-5-xen-686 placeholder root=/dev/mapper/ev0-root ro single root=/dev/mapper/ev0-root ro
	echo	'Loading initial ramdisk ...'
	module	/initrd.img-2.6.32-5-xen-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-4-xen-686 and XEN 3.4-amd64' --class debian --class gnu-linux --class gnu --class os --class xen {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-4-xen-686 ...'
	multiboot	/xen-3.4-amd64.gz placeholder  
	module	/vmlinuz-2.6.32-4-xen-686 placeholder root=/dev/mapper/ev0-root ro root=/dev/mapper/ev0-root ro 
	echo	'Loading initial ramdisk ...'
	module	/initrd.img-2.6.32-4-xen-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-4-xen-686 and XEN 3.4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-4-xen-686 ...'
	multiboot	/xen-3.4-amd64.gz placeholder 
	module	/vmlinuz-2.6.32-4-xen-686 placeholder root=/dev/mapper/ev0-root ro single root=/dev/mapper/ev0-root ro
	echo	'Loading initial ramdisk ...'
	module	/initrd.img-2.6.32-4-xen-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-686 and XEN 3.2-1-i386' --class debian --class gnu-linux --class gnu --class os --class xen {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-5-xen-686 ...'
	multiboot	/xen-3.2-1-i386.gz placeholder  
	module	/vmlinuz-2.6.32-5-xen-686 placeholder root=/dev/mapper/ev0-root ro root=/dev/mapper/ev0-root ro 
	echo	'Loading initial ramdisk ...'
	module	/initrd.img-2.6.32-5-xen-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-686 and XEN 3.2-1-i386 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-5-xen-686 ...'
	multiboot	/xen-3.2-1-i386.gz placeholder 
	module	/vmlinuz-2.6.32-5-xen-686 placeholder root=/dev/mapper/ev0-root ro single root=/dev/mapper/ev0-root ro
	echo	'Loading initial ramdisk ...'
	module	/initrd.img-2.6.32-5-xen-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-4-xen-686 and XEN 3.2-1-i386' --class debian --class gnu-linux --class gnu --class os --class xen {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-4-xen-686 ...'
	multiboot	/xen-3.2-1-i386.gz placeholder  
	module	/vmlinuz-2.6.32-4-xen-686 placeholder root=/dev/mapper/ev0-root ro root=/dev/mapper/ev0-root ro 
	echo	'Loading initial ramdisk ...'
	module	/initrd.img-2.6.32-4-xen-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-4-xen-686 and XEN 3.2-1-i386 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	echo	'Loading Linux 2.6.32-4-xen-686 ...'
	multiboot	/xen-3.2-1-i386.gz placeholder 
	module	/vmlinuz-2.6.32-4-xen-686 placeholder root=/dev/mapper/ev0-root ro single root=/dev/mapper/ev0-root ro
	echo	'Loading initial ramdisk ...'
	module	/initrd.img-2.6.32-4-xen-686
}
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	linux16	/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	linux16	/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	multiboot	/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod raid
	insmod mdraid
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set dd88a909-503e-4bba-82fb-6c8a6293a842
	multiboot	/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (250, 'unstable'), (50, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.35          Debian configuration management sy
ii  grub-common              1.98+20100804-2 GRand Unified Bootloader, version 
ii  libc6                    2.11.2-2        Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1       2:1.02.48-3     The Linux Kernel Device Mapper use
ii  ucf                      3.0025          Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.6      common files for the Debian Deskto

-- debconf information:
  grub2/kfreebsd_cmdline:
* grub2/device_map_regenerated:
* grub2/linux_cmdline: root=/dev/mapper/ev0-root ro
  grub-pc/install_devices_failed: false
* grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: true
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/disk_description:
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default:
  grub-pc/install_devices_empty: false
* grub-pc/install_devices: /dev/disk/by-id/ata-ST31000528AS_9VP25GY3, /dev/disk/by-id/ata-ST31000528AS_9VP23A8N
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/partition_description:
* grub-pc/install_devices_disks_changed: /dev/disk/by-id/ata-ST31000528AS_9VP25GY3, /dev/disk/by-id/ata-ST31000528AS_9VP23A8N
* grub-pc/mixed_legacy_and_grub2: true





More information about the Pkg-grub-devel mailing list