Bug#679214: grub-pc: Grub2 fails to boot from a degraded mdraid RAID6

Joni Orponen joni.orponen at gmail.com
Thu Feb 7 12:57:34 UTC 2013


Package: grub-pc
Version: 2.00-13
Followup-For: Bug #679214

This bug still exists in grub 2.00 on Debian.

The trigger cause seems to be 'extra' devices in mdraid arrays.

RAID1 > 2
RAID5 > 3
RAID6 > 4

Can anyone else reproduce this with a 6 disk array and / on LVM?

-- Package-specific info:

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

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-VBOX_HARDDISK_VB9e4c9476-26d9eb65
(hd1)	/dev/disk/by-id/ata-VBOX_HARDDISK_VB28ec1605-6c9ea282
(hd2)	/dev/disk/by-id/ata-VBOX_HARDDISK_VB7a7f5ef7-5322a996
(hd3)	/dev/disk/by-id/ata-VBOX_HARDDISK_VBfedcbcc6-834bf48c
(hd4)	/dev/disk/by-id/ata-VBOX_HARDDISK_VB7c34e4d8-4fada505
(hd5)	/dev/disk/by-id/ata-VBOX_HARDDISK_VB0c575cba-2bb136b3
*********************** 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_msdos
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod part_msdos
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'  b382c897-f9ce-4eea-b075-3546c5d4fe19
else
  search --no-floppy --fs-uuid --set=root b382c897-f9ce-4eea-b075-3546c5d4fe19
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-b382c897-f9ce-4eea-b075-3546c5d4fe19' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	insmod part_msdos
	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'  b382c897-f9ce-4eea-b075-3546c5d4fe19
	else
	  search --no-floppy --fs-uuid --set=root b382c897-f9ce-4eea-b075-3546c5d4fe19
	fi
	echo	'Loading Linux 3.2.0-4-amd64 ...'
	linux	/boot/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/array-root ro  
	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-b382c897-f9ce-4eea-b075-3546c5d4fe19' {
	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-b382c897-f9ce-4eea-b075-3546c5d4fe19' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod part_msdos
		insmod part_msdos
		insmod part_msdos
		insmod part_msdos
		insmod part_msdos
		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'  b382c897-f9ce-4eea-b075-3546c5d4fe19
		else
		  search --no-floppy --fs-uuid --set=root b382c897-f9ce-4eea-b075-3546c5d4fe19
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/array-root ro  
		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-b382c897-f9ce-4eea-b075-3546c5d4fe19' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod part_msdos
		insmod part_msdos
		insmod part_msdos
		insmod part_msdos
		insmod part_msdos
		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'  b382c897-f9ce-4eea-b075-3546c5d4fe19
		else
		  search --no-floppy --fs-uuid --set=root b382c897-f9ce-4eea-b075-3546c5d4fe19
		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 sda1[0] sde1[4] sdf1[5] sdd1[3] sdc1[2] sdb1[1]
      52375040 blocks super 1.2 level 5, 512k 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  5
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               49.95 GiB
  PE Size               4.00 MiB
  Total PE              12786
  Alloc PE / Size       12786 / 49.95 GiB
  Free  PE / Size       0 / 0   
  VG UUID               ltm0rh-wAAI-8GoX-aDCG-S1FL-8PjP-96mhKC
   
  --- Physical volume ---
  PV Name               /dev/md0
  VG Name               array
  PV Size               49.95 GiB / not usable 2.50 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              12786
  Free PE               0
  Allocated PE          12786
  PV UUID               2Ar8Tm-FwPX-p5WJ-TRU5-coRq-pIhU-dY0fz1
   
  --- Logical volume ---
  LV Path                /dev/array/swap
  LV Name                swap
  VG Name                array
  LV UUID                Q017v2-vzLJ-lUw4-fvkV-4ZOq-6ZhZ-gBbZZh
  LV Write Access        read/write
  LV Creation host, time debian, 2013-01-21 11:16:30 +0200
  LV Status              available
  # open                 0
  LV Size                1.86 GiB
  Current LE             476
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     10240
  Block device           253:0
   
  --- Logical volume ---
  LV Path                /dev/array/root
  LV Name                root
  VG Name                array
  LV UUID                JVHfSK-8Qci-0VuB-ucZE-B7MT-62Bs-Xypbqm
  LV Write Access        read/write
  LV Creation host, time debian, 2013-01-21 11:16:38 +0200
  LV Status              available
  # open                 1
  LV Size                48.09 GiB
  Current LE             12310
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     10240
  Block device           253:1
   
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Feb  7 14:35 ata-VBOX_CD-ROM_VB2-01700376 -> ../../sr0
lrwxrwxrwx 1 root root  9 Feb  7 14:35 ata-VBOX_HARDDISK_VB0c575cba-2bb136b3 -> ../../sdf
lrwxrwxrwx 1 root root 10 Feb  7 14:35 ata-VBOX_HARDDISK_VB0c575cba-2bb136b3-part1 -> ../../sdf1
lrwxrwxrwx 1 root root  9 Feb  7 14:35 ata-VBOX_HARDDISK_VB28ec1605-6c9ea282 -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb  7 14:35 ata-VBOX_HARDDISK_VB28ec1605-6c9ea282-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Feb  7 14:35 ata-VBOX_HARDDISK_VB7a7f5ef7-5322a996 -> ../../sdc
lrwxrwxrwx 1 root root 10 Feb  7 14:35 ata-VBOX_HARDDISK_VB7a7f5ef7-5322a996-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 Feb  7 14:35 ata-VBOX_HARDDISK_VB7c34e4d8-4fada505 -> ../../sde
lrwxrwxrwx 1 root root 10 Feb  7 14:35 ata-VBOX_HARDDISK_VB7c34e4d8-4fada505-part1 -> ../../sde1
lrwxrwxrwx 1 root root  9 Feb  7 14:35 ata-VBOX_HARDDISK_VB9e4c9476-26d9eb65 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb  7 14:35 ata-VBOX_HARDDISK_VB9e4c9476-26d9eb65-part1 -> ../../sda1
lrwxrwxrwx 1 root root  9 Feb  7 14:35 ata-VBOX_HARDDISK_VBfedcbcc6-834bf48c -> ../../sdd
lrwxrwxrwx 1 root root 10 Feb  7 14:35 ata-VBOX_HARDDISK_VBfedcbcc6-834bf48c-part1 -> ../../sdd1
lrwxrwxrwx 1 root root  9 Feb  7 14:35 md-name-debian:0 -> ../../md0
lrwxrwxrwx 1 root root  9 Feb  7 14:35 md-uuid-75f8f690:f1f4691f:f4d41e4f:d0a5cf66 -> ../../md0
lrwxrwxrwx 1 root root  9 Feb  7 14:35 scsi-SATA_VBOX_HARDDISK_VB0c575cba-2bb136b3 -> ../../sdf
lrwxrwxrwx 1 root root 10 Feb  7 14:35 scsi-SATA_VBOX_HARDDISK_VB0c575cba-2bb136b3-part1 -> ../../sdf1
lrwxrwxrwx 1 root root  9 Feb  7 14:35 scsi-SATA_VBOX_HARDDISK_VB28ec1605-6c9ea282 -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb  7 14:35 scsi-SATA_VBOX_HARDDISK_VB28ec1605-6c9ea282-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Feb  7 14:35 scsi-SATA_VBOX_HARDDISK_VB7a7f5ef7-5322a996 -> ../../sdc
lrwxrwxrwx 1 root root 10 Feb  7 14:35 scsi-SATA_VBOX_HARDDISK_VB7a7f5ef7-5322a996-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 Feb  7 14:35 scsi-SATA_VBOX_HARDDISK_VB7c34e4d8-4fada505 -> ../../sde
lrwxrwxrwx 1 root root 10 Feb  7 14:35 scsi-SATA_VBOX_HARDDISK_VB7c34e4d8-4fada505-part1 -> ../../sde1
lrwxrwxrwx 1 root root  9 Feb  7 14:35 scsi-SATA_VBOX_HARDDISK_VB9e4c9476-26d9eb65 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb  7 14:35 scsi-SATA_VBOX_HARDDISK_VB9e4c9476-26d9eb65-part1 -> ../../sda1
lrwxrwxrwx 1 root root  9 Feb  7 14:35 scsi-SATA_VBOX_HARDDISK_VBfedcbcc6-834bf48c -> ../../sdd
lrwxrwxrwx 1 root root 10 Feb  7 14:35 scsi-SATA_VBOX_HARDDISK_VBfedcbcc6-834bf48c-part1 -> ../../sdd1
*********************** 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-updates
  APT policy: (500, 'testing-updates'), (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_VB9e4c9476-26d9eb65, /dev/disk/by-id/ata-VBOX_HARDDISK_VB28ec1605-6c9ea282, /dev/disk/by-id/ata-VBOX_HARDDISK_VB7a7f5ef7-5322a996, /dev/disk/by-id/ata-VBOX_HARDDISK_VBfedcbcc6-834bf48c, /dev/disk/by-id/ata-VBOX_HARDDISK_VB7c34e4d8-4fada505, /dev/disk/by-id/ata-VBOX_HARDDISK_VB0c575cba-2bb136b3
  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: true
  grub-pc/install_devices_disks_changed:
* grub2/linux_cmdline_default:
  grub-pc/chainload_from_menu.lst: true
  grub-pc/mixed_legacy_and_grub2: true



More information about the Pkg-grub-devel mailing list