Bug#728914: grub-pc: grub rescue with raid1 root on 4TB device

francoisal alexandre-francois at voila.fr
Wed Nov 6 20:51:20 UTC 2013


Package: grub-pc
Version: 1.99-27+deb7u2
Severity: important

Dear Maintainer,

I installed wheezy from scratch on my 2 x 4TB server, but I did not succeed 
in booting the following configuration on my two drives :

# parted /dev/sda p
  Model: ATA WDC WD4000FYYZ-0 (scsi)
  Disk /dev/sda: 4001GB
  Sector size (logical/physical): 512B/512B
  Partition Table: gpt

  Number  Start   End     Size    File system     Name  Flags
   1      1049kB  2097kB  1049kB                        bios_grub
   2      2097kB  3967GB  3967GB  ext4                  raid
   3      3967GB  4001GB  34.2GB  linux-swap(v1)

# parted /dev/sdb p
  Model: ATA WDC WD4000FYYZ-0 (scsi)
  Disk /dev/sdb: 4001GB
  Sector size (logical/physical): 512B/512B
  Partition Table: gpt

  Number  Start   End     Size    File system     Name  Flags
   1      1049kB  2097kB  1049kB                        bios_grub
   2      2097kB  3967GB  3967GB                        raid
   3      3967GB  4001GB  34.2GB  linux-swap(v1)

At boot time, I land in grub rescue mode with "no such disk" error.

I do not undersand the issue because :
- the installation is OK while not using the second drive + not declaring any raid
- the "grub-install /dev/sda" does not report any error and we can see in its traces:
  # bash -x grub-install /dev/sda
    ...
    /usr/bin/grub-mkimage -d /usr/lib/grub/i386-pc -O i386-pc --output=/boot/grub/core.img 
    '--prefix=(mduuid/2d81babd13f240ec4e10b2c7291977fc)/boot/grub' biosdisk ext2 part_gpt
    part_gpt raid mdraid1x
    ...

which looks fine for me. 


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/loop0 /livemnt/squashfs squashfs ro,relatime 0 0
/dev/md0 / ext4 rw,relatime,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/scsi-350014ee2b2ad56db
(hd1)	/dev/disk/by-id/scsi-350014ee208026f90
*********************** 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 mdraid1x
insmod part_gpt
insmod part_gpt
insmod ext2
set root='(mduuid/2d81babd13f240ec4e10b2c7291977fc)'
search --no-floppy --fs-uuid --set=root 520daa3d-296c-4e7a-b0e6-62c1ff36f921
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod raid
  insmod mdraid1x
  insmod part_gpt
  insmod part_gpt
  insmod ext2
  set root='(mduuid/2d81babd13f240ec4e10b2c7291977fc)'
  search --no-floppy --fs-uuid --set=root 520daa3d-296c-4e7a-b0e6-62c1ff36f921
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  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, with Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_gpt
	insmod part_gpt
	insmod ext2
	set root='(mduuid/2d81babd13f240ec4e10b2c7291977fc)'
	search --no-floppy --fs-uuid --set=root 520daa3d-296c-4e7a-b0e6-62c1ff36f921
	echo	'Loading Linux 3.2.0-4-amd64 ...'
	linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=520daa3d-296c-4e7a-b0e6-62c1ff36f921 ro  quiet
	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 {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_gpt
	insmod part_gpt
	insmod ext2
	set root='(mduuid/2d81babd13f240ec4e10b2c7291977fc)'
	search --no-floppy --fs-uuid --set=root 520daa3d-296c-4e7a-b0e6-62c1ff36f921
	echo	'Loading Linux 3.2.0-4-amd64 ...'
	linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=520daa3d-296c-4e7a-b0e6-62c1ff36f921 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/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

*********************** BEGIN /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md0 : active raid1 sda2[0] sdb2[1]
      3873482560 blocks super 1.2 [2/2] [UU]
      
unused devices: <none>
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Nov  5 21:35 ata-HL-DT-ST_DVD+-RW_GT60N_KZJC7UB3547 -> ../../sr0
lrwxrwxrwx 1 root root  9 Nov  5 21:35 md-name-gateway:0 -> ../../md0
lrwxrwxrwx 1 root root  9 Nov  5 21:35 md-uuid-2d81babd:13f240ec:4e10b2c7:291977fc -> ../../md0
lrwxrwxrwx 1 root root  9 Nov  5 21:35 scsi-350014ee208026f90 -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov  5 21:35 scsi-350014ee208026f90-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov  5 21:35 scsi-350014ee208026f90-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Nov  5 21:35 scsi-350014ee208026f90-part3 -> ../../sdb3
lrwxrwxrwx 1 root root  9 Nov  6 06:45 scsi-350014ee2b2ad56db -> ../../sda
lrwxrwxrwx 1 root root 10 Nov  5 21:35 scsi-350014ee2b2ad56db-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov  5 21:35 scsi-350014ee2b2ad56db-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov  5 21:35 scsi-350014ee2b2ad56db-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Nov  5 21:35 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root  9 Nov  5 21:35 wwn-0x50014ee208026f90 -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov  5 21:35 wwn-0x50014ee208026f90-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov  5 21:35 wwn-0x50014ee208026f90-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Nov  5 21:35 wwn-0x50014ee208026f90-part3 -> ../../sdb3
lrwxrwxrwx 1 root root  9 Nov  6 06:45 wwn-0x50014ee2b2ad56db -> ../../sda
lrwxrwxrwx 1 root root 10 Nov  5 21:35 wwn-0x50014ee2b2ad56db-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov  5 21:35 wwn-0x50014ee2b2ad56db-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov  5 21:35 wwn-0x50014ee2b2ad56db-part3 -> ../../sda3
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Nov  5 21:35 0382dce9-c41a-459d-8226-6bd1c97fd5b8 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Nov  5 21:35 453aa64b-30ee-4363-bbaf-a9dcc90cd1df -> ../../sda3
lrwxrwxrwx 1 root root  9 Nov  5 21:35 520daa3d-296c-4e7a-b0e6-62c1ff36f921 -> ../../md0
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 7.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.66-std381-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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            1.99-27+deb7u2
ii  grub-pc-bin            1.99-27+deb7u2
ii  grub2-common           1.99-27+deb7u2
ii  ucf                    3.0025+nmu3

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information excluded



More information about the Pkg-grub-devel mailing list