Bug#643608: grub2 LVM over RAID1 with 2 drives. Cannot boot from second drive if locale is Russian

Pokotilenko Kostik casper at meteor.dp.ua
Wed Sep 28 00:53:41 UTC 2011


Package: grub-pc
Version: 1.98+20100804-14
Severity: important
Tags: d-i upstream squeeze l10n

Grub2 with LVM over RAID1 with 2 devices without dedicated boot partition.

Disk/Raid/LVM setup was done during installation with Debian installer.
Grub2 was only installed on first disk, so I installed it on second with
(tried both): grub-install /dev/vdb and dpkg-reconfigure grub-pc (selected
both drives vda and vdb)

All is fine unless I simulate disk failure and remove first disk
in which case system doesn't boot: "Welcom to grub." is shown and
system reboots in a loop.

Reinstalled grub2 into second disk in numerous ways with no luck.

There are some posts in the net about exactly this problems. One guy
found out that uncommenting "GRUB_TERMINAL=console" in
/etc/default/grub and running update-grub fixes this problem,
I checked - that is true!

Investigating further I found out that running grub-install on
second drive from withing Debian CD rescue mode makes it boot with
only second drive present, but grub menu language drops to English
(my locale is Russian).

When I re-install grub2 from within the system into second drive or
just running dpkg-reconfigure grub-pc and selecting both drives - system
cannot boot when only second drive present (first and both boot Ok). Grub2
menu language is reset to Russian.

I have had an Idea that the language is a problem. And that's true, if I
install grub by either of install-grub or dpkg-reconfigure preceding with
export LANG=c, grub2 menu drops to English and system is able to boot off
any of drives present or with both drives.

So, for me there are 2 solutions now for this problem:

1. uncomment "GRUB_TERMINAL=console" in /etc/default/grub and run update-grub
2. re-install grub2 with English locale "export LANG=C; dpkg-reconfigure grub-pc"

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/raidlvm-root / ext4 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/vda
(hd1)	/dev/vdb
*********************** 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 lvm
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(raidlvm-root)'
search --no-floppy --fs-uuid --set 9d3615e5-8db3-49fc-aba9-08ae14842ca8
if loadfont /usr/share/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 ###
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 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod lvm
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(raidlvm-root)'
	search --no-floppy --fs-uuid --set 9d3615e5-8db3-49fc-aba9-08ae14842ca8
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686 root=/dev/mapper/raidlvm-root ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod raid
	insmod mdraid
	insmod lvm
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(raidlvm-root)'
	search --no-floppy --fs-uuid --set 9d3615e5-8db3-49fc-aba9-08ae14842ca8
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686 root=/dev/mapper/raidlvm-root ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
### 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

-- System Information:
Debian Release: 6.0.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=ru_UA.UTF-8, LC_CTYPE=ru_UA.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.36.1         Debian configuration management sy
ii  grub-common             1.98+20100804-14 GRand Unified Bootloader, version 
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1      2:1.02.48-5      The Linux Kernel Device Mapper use
ii  ucf                     3.0025+nmu1      Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
pn  desktop-base                  <none>     (no description available)

-- debconf information:
  grub-pc/kopt_extracted: false
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
* grub-pc/install_devices: /dev/vda, /dev/vdb
  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: /dev/vda, /dev/vdb
* grub2/linux_cmdline_default: quiet
  grub-pc/chainload_from_menu.lst: true
  grub-pc/mixed_legacy_and_grub2: true





More information about the Pkg-grub-devel mailing list