Bug#442382: Can't boot from multipath
Guido Günther
agx at sigxcpu.org
Sun Mar 28 13:50:50 UTC 2010
Hi,
I just tried your fix from 1.97+experimental.20091127-1 and it doesn't
work. I'm currently chainloading from grub-legacy into grub2. I see:
Welcome to GRUB!
Error no such partition.
Entering rescue mode...
grub rescue>
The auto generatd grub.cfg is attched.
/dev/mapper/mpath0 is the multipath device. It has two partitions:
/dev/mapper/mpath0-part1 - boot device
/dev/mapper/mpath0-part2 - VG mp1
The volume group mp1 contains the LV mp1-root - the actual "/"-device.
This is the standard partitioning when using root on LVM on multipath in
d-i.
Cheers,
-- Guido
-------------- next part --------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
}
insmod lvm
insmod ext2
set root='(mp1-root)'
search --no-floppy --fs-uuid --set 54d4279a-f2cc-4f7a-8263-6c3280916fe2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(/dev/mapper/mpath0-part1)'
search --no-floppy --fs-uuid --set 8a93cf92-4b31-4909-b612-45a4b17c8b53
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
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-trunk-686" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(/dev/mapper/mpath0-part1)'
search --no-floppy --fs-uuid --set 8a93cf92-4b31-4909-b612-45a4b17c8b53
echo Loading Linux 2.6.32-trunk-686 ...
linux /vmlinuz-2.6.32-trunk-686 root=/dev/mapper/mp1-root ro quiet
echo Loading initial ramdisk ...
initrd /initrd.img-2.6.32-trunk-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-686 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(/dev/mapper/mpath0-part1)'
search --no-floppy --fs-uuid --set 8a93cf92-4b31-4909-b612-45a4b17c8b53
echo Loading Linux 2.6.32-trunk-686 ...
linux /vmlinuz-2.6.32-trunk-686 root=/dev/mapper/mp1-root ro single
echo Loading initial ramdisk ...
initrd /initrd.img-2.6.32-trunk-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-3-686" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(/dev/mapper/mpath0-part1)'
search --no-floppy --fs-uuid --set 8a93cf92-4b31-4909-b612-45a4b17c8b53
echo Loading Linux 2.6.32-3-686 ...
linux /vmlinuz-2.6.32-3-686 root=/dev/mapper/mp1-root ro quiet
echo Loading initial ramdisk ...
initrd /initrd.img-2.6.32-3-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-3-686 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(/dev/mapper/mpath0-part1)'
search --no-floppy --fs-uuid --set 8a93cf92-4b31-4909-b612-45a4b17c8b53
echo Loading Linux 2.6.32-3-686 ...
linux /vmlinuz-2.6.32-3-686 root=/dev/mapper/mp1-root ro single
echo Loading initial ramdisk ...
initrd /initrd.img-2.6.32-3-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-686" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(/dev/mapper/mpath0-part1)'
search --no-floppy --fs-uuid --set 8a93cf92-4b31-4909-b612-45a4b17c8b53
echo Loading Linux 2.6.26-2-686 ...
linux /vmlinuz-2.6.26-2-686 root=/dev/mapper/mp1-root ro quiet
echo Loading initial ramdisk ...
initrd /initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-686 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(/dev/mapper/mpath0-part1)'
search --no-floppy --fs-uuid --set 8a93cf92-4b31-4909-b612-45a4b17c8b53
echo Loading Linux 2.6.26-2-686 ...
linux /vmlinuz-2.6.26-2-686 root=/dev/mapper/mp1-root ro single
echo Loading initial ramdisk ...
initrd /initrd.img-2.6.26-2-686
}
### END /etc/grub.d/10_linux ###
### 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 ###
More information about the Pkg-grub-devel
mailing list