Bug#701487: grub-pc: Grub-pc fails to boot from mdraid level 5 with 6 disks

Maria Klonner kyrandesa at gmail.com
Sat Feb 23 18:10:26 UTC 2013


Package: grub-pc
Version: 2.00-13
Severity: important
Tags: d-i


Dear Maintainer,

   * What led up to the situation? Adding a 6th disc via mdadm to a mdraid level 5 array led to the system not booting any more
   * What exactly did you do (or not do) that was effective (or
     ineffective)? In wheezy, grub didn't manage to load anything; after changing grub to grub from the experimental repo, it found the array but not anything on it. Before adding the 6th disk, booting worked ok.
   * What was the outcome of this action? System doesn't boot
   * What outcome did you expect instead? grub still finds the array, can build it and boots.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sr0 /cdrom iso9660 ro,relatime 0 0
/dev/array/root / ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-VBOX_HARDDISK_VB76ebdbb4-fa8c8b44
(hd1)	/dev/disk/by-id/ata-VBOX_HARDDISK_VB67633fab-dbab8d1d
(hd2)	/dev/disk/by-id/ata-VBOX_HARDDISK_VB5398e0f8-2c1889a2
(hd3)	/dev/disk/by-id/ata-VBOX_HARDDISK_VB729a50ad-d37add94
(hd4)	/dev/disk/by-id/ata-VBOX_HARDDISK_VBac43e7f8-c1c9e5ff
(hd5)	/dev/disk/by-id/ata-VBOX_HARDDISK_VB17ad5b4a-b5d9cf00
*********************** 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 [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod part_gpt
insmod part_gpt
insmod part_gpt
insmod part_gpt
insmod part_gpt
insmod diskfilter
insmod mdraid1x
insmod raid5rec
insmod lvm
insmod ext2
set root='lvm/array-root'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvm/array-root'  045f24a5-90f4-4644-b7e6-ae86e78d4833
else
  search --no-floppy --fs-uuid --set=root 045f24a5-90f4-4644-b7e6-ae86e78d4833
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=C
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-045f24a5-90f4-4644-b7e6-ae86e78d4833' {
	load_video
	insmod gzio
	insmod part_gpt
	insmod part_gpt
	insmod part_gpt
	insmod part_gpt
	insmod part_gpt
	insmod part_gpt
	insmod diskfilter
	insmod mdraid1x
	insmod raid5rec
	insmod lvm
	insmod ext2
	set root='lvm/array-root'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvm/array-root'  045f24a5-90f4-4644-b7e6-ae86e78d4833
	else
	  search --no-floppy --fs-uuid --set=root 045f24a5-90f4-4644-b7e6-ae86e78d4833
	fi
	echo	'Loading Linux 3.2.0-4-amd64 ...'
	linux	/boot/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/array-root ro  init=/lib/systemd/systemd
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.2.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-045f24a5-90f4-4644-b7e6-ae86e78d4833' {
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-amd64-advanced-045f24a5-90f4-4644-b7e6-ae86e78d4833' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod raid5rec
		insmod lvm
		insmod ext2
		set root='lvm/array-root'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvm/array-root'  045f24a5-90f4-4644-b7e6-ae86e78d4833
		else
		  search --no-floppy --fs-uuid --set=root 045f24a5-90f4-4644-b7e6-ae86e78d4833
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/array-root ro  init=/lib/systemd/systemd
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-amd64-recovery-045f24a5-90f4-4644-b7e6-ae86e78d4833' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod raid5rec
		insmod lvm
		insmod ext2
		set root='lvm/array-root'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvm/array-root'  045f24a5-90f4-4644-b7e6-ae86e78d4833
		else
		  search --no-floppy --fs-uuid --set=root 045f24a5-90f4-4644-b7e6-ae86e78d4833
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/array-root ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.2.0-4-amd64
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

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

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] 
md0 : active raid5 sda2[0] sdf2[5] sde2[4] sdd2[3] sdc2[2] sdb2[1]
      41912000 blocks super 1.2 level 5, 64k chunk, algorithm 2 [6/6] [UUUUUU]
      
unused devices: <none>
*********************** END /proc/mdstat

*********************** BEGIN LVM
  --- Volume group ---
  VG Name               array
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  12
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               39.97 GiB
  PE Size               4.00 MiB
  Total PE              10232
  Alloc PE / Size       10232 / 39.97 GiB
  Free  PE / Size       0 / 0   
  VG UUID               UUg22N-K1w4-5Rdq-XUZD-h4Rv-vA7y-yK1ySJ
   
  --- Physical volume ---
  PV Name               /dev/md0
  VG Name               array
  PV Size               39.97 GiB / not usable 320.00 KiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              10232
  Free PE               0
  Allocated PE          10232
  PV UUID               vFrC5i-ggAq-5bgQ-i8g0-HjTa-3TfN-FgEZET
   
  --- Logical volume ---
  LV Path                /dev/array/swap
  LV Name                swap
  VG Name                array
  LV UUID                AO0F4k-16RF-pZID-qS6B-XyDd-JReH-3IRVmD
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2013-02-23 15:02:49 +0200
  LV Status              available
  # open                 2
  LV Size                2.00 GiB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     1280
  Block device           253:0
   
  --- Logical volume ---
  LV Path                /dev/array/root
  LV Name                root
  VG Name                array
  LV UUID                IQf2Dv-ZIMF-5UhS-2jot-Quea-TvKg-YWSfGf
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2013-02-23 15:03:40 +0200
  LV Status              available
  # open                 1
  LV Size                37.97 GiB
  Current LE             9720
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     1280
  Block device           253:1
   
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Feb 23 19:36 ata-VBOX_CD-ROM_VB2-01700376 -> ../../sr0
lrwxrwxrwx 1 root root  9 Feb 23 19:36 ata-VBOX_HARDDISK_VB17ad5b4a-b5d9cf00 -> ../../sdf
lrwxrwxrwx 1 root root 10 Feb 23 19:36 ata-VBOX_HARDDISK_VB17ad5b4a-b5d9cf00-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Feb 23 19:36 ata-VBOX_HARDDISK_VB17ad5b4a-b5d9cf00-part2 -> ../../sdf2
lrwxrwxrwx 1 root root  9 Feb 23 19:36 ata-VBOX_HARDDISK_VB5398e0f8-2c1889a2 -> ../../sdc
lrwxrwxrwx 1 root root 10 Feb 23 19:36 ata-VBOX_HARDDISK_VB5398e0f8-2c1889a2-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Feb 23 19:36 ata-VBOX_HARDDISK_VB5398e0f8-2c1889a2-part2 -> ../../sdc2
lrwxrwxrwx 1 root root  9 Feb 23 19:36 ata-VBOX_HARDDISK_VB67633fab-dbab8d1d -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb 23 19:36 ata-VBOX_HARDDISK_VB67633fab-dbab8d1d-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Feb 23 19:36 ata-VBOX_HARDDISK_VB67633fab-dbab8d1d-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Feb 23 19:36 ata-VBOX_HARDDISK_VB729a50ad-d37add94 -> ../../sdd
lrwxrwxrwx 1 root root 10 Feb 23 19:36 ata-VBOX_HARDDISK_VB729a50ad-d37add94-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Feb 23 19:36 ata-VBOX_HARDDISK_VB729a50ad-d37add94-part2 -> ../../sdd2
lrwxrwxrwx 1 root root  9 Feb 23 19:36 ata-VBOX_HARDDISK_VB76ebdbb4-fa8c8b44 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 23 19:36 ata-VBOX_HARDDISK_VB76ebdbb4-fa8c8b44-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 23 19:36 ata-VBOX_HARDDISK_VB76ebdbb4-fa8c8b44-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Feb 23 19:36 ata-VBOX_HARDDISK_VBac43e7f8-c1c9e5ff -> ../../sde
lrwxrwxrwx 1 root root 10 Feb 23 19:36 ata-VBOX_HARDDISK_VBac43e7f8-c1c9e5ff-part1 -> ../../sde1
lrwxrwxrwx 1 root root 10 Feb 23 19:36 ata-VBOX_HARDDISK_VBac43e7f8-c1c9e5ff-part2 -> ../../sde2
lrwxrwxrwx 1 root root  9 Feb 23 19:36 md-name-ubuntu:0 -> ../../md0
lrwxrwxrwx 1 root root  9 Feb 23 19:36 md-uuid-d7bba540:7d711d2f:ea24b411:f56f8d33 -> ../../md0
lrwxrwxrwx 1 root root  9 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB17ad5b4a-b5d9cf00 -> ../../sdf
lrwxrwxrwx 1 root root 10 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB17ad5b4a-b5d9cf00-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB17ad5b4a-b5d9cf00-part2 -> ../../sdf2
lrwxrwxrwx 1 root root  9 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB5398e0f8-2c1889a2 -> ../../sdc
lrwxrwxrwx 1 root root 10 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB5398e0f8-2c1889a2-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB5398e0f8-2c1889a2-part2 -> ../../sdc2
lrwxrwxrwx 1 root root  9 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB67633fab-dbab8d1d -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB67633fab-dbab8d1d-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB67633fab-dbab8d1d-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB729a50ad-d37add94 -> ../../sdd
lrwxrwxrwx 1 root root 10 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB729a50ad-d37add94-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB729a50ad-d37add94-part2 -> ../../sdd2
lrwxrwxrwx 1 root root  9 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB76ebdbb4-fa8c8b44 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB76ebdbb4-fa8c8b44-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VB76ebdbb4-fa8c8b44-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VBac43e7f8-c1c9e5ff -> ../../sde
lrwxrwxrwx 1 root root 10 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VBac43e7f8-c1c9e5ff-part1 -> ../../sde1
lrwxrwxrwx 1 root root 10 Feb 23 19:36 scsi-SATA_VBOX_HARDDISK_VBac43e7f8-c1c9e5ff-part2 -> ../../sde2
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
ls: cannot access /dev/disk/by-uuid: No such file or directory
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.49
ii  grub-common            2.00-13
ii  grub-pc-bin            2.00-13
ii  grub2-common           2.00-13
ii  ucf                    3.0025+nmu3

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information:
  grub-pc/kopt_extracted: false
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
* grub-pc/install_devices: /dev/disk/by-id/ata-VBOX_HARDDISK_VB76ebdbb4-fa8c8b44, /dev/disk/by-id/ata-VBOX_HARDDISK_VB67633fab-dbab8d1d, /dev/disk/by-id/ata-VBOX_HARDDISK_VB5398e0f8-2c1889a2, /dev/disk/by-id/ata-VBOX_HARDDISK_VB729a50ad-d37add94, /dev/disk/by-id/ata-VBOX_HARDDISK_VBac43e7f8-c1c9e5ff, /dev/disk/by-id/ata-VBOX_HARDDISK_VB17ad5b4a-b5d9cf00
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/disk_description:
* grub2/linux_cmdline:
  grub-pc/install_devices_empty: false
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/partition_description:
  grub-pc/install_devices_failed: false
  grub-pc/install_devices_disks_changed:
* grub2/linux_cmdline_default: init=/lib/systemd/systemd
  grub-pc/chainload_from_menu.lst: true
  grub-pc/mixed_legacy_and_grub2: true



More information about the Pkg-grub-devel mailing list