View Issue Details

IDProjectCategoryView StatusLast Update
0006314CentOS-6grubpublic2013-03-12 18:18
Reporternsink 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version6.3 
Target VersionFixed in Version 
Summary0006314: Grub does not correctly create menu.lst for Raid+LVM configurations
DescriptionMy setup:
1 IDE HDD, /boot partition and empty partition
2 SATA HDD, 1 partition - linux raid autodetect
1 RAID1 device /dev/md0
1 LVM vg sits ontop of /dev/md0, vg_plato
/ partition is on vg_plato

The system will not boot with the generated menu.lst because of the no_MD parameter on the kernel line. Dracut will fail to find the VG and cause a kernel panic.

I resolved this by removing all the kernel parameters but the lvm params from the kernel line and the system will boot fine. I also had to correct the root dir path on the kernel line because that was wrong but I don't feel that is part of the same issue.
Steps To ReproducePut no_MD on the kernel line in menu.lst on a system with RAID+LVM configuration. (Or in theory any system with a RAID configuration)

You can boot into recovery mode on a live CD and run grub-install and that doesn't seem to fix the menu.lst, I did this trying to get grub to fix it itself.
-Boot into recovery mode
-mdadm --assemble --scan
-vgchange -a y vg_plato
-mount /dev/vg_plato/Plato_main /mnt/sysimage
-mount /dev/sda1 /mnt/sysimage/boot
-mount -o bind /proc /mnt/sysimage/proc
-mount -o bind /dev /mnt/sysimage/dev
-mount -o bind /sys /mnt/sysimage/sys
-chroot /mnt/sysimage
-grub-install /dev/sda --recheck
The output would denote a success but the menu.lst would still be incorrect.
Additional Information# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_plato-Plato_main
# initrd /initrd-[generic-]version.img
#boot=/dev/sdc
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (this one actually boots as of 3-12-13)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-279.9.1.el6.x86_64 ro root=/dev/vg_plato/Plato_main rd_LVM_LV=vg_plato/Plato_main
        initrd /initramfs-2.6.32-279.9.1.el6.x86_64.img
title CentOS (2.6.32-279.9.1.el6.x86_64) <--dragons here
        root (hd0,0)
        kernel /vmlinuz-2.6.32-279.9.1.el6.x86_64 ro root=/dev/mapper/vg_plato-Plato_main rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M rd_LVM_LV=vg_plato/Plato_main KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb
        initrd /initramfs-2.6.32-279.9.1.el6.x86_64.img
title CentOS (2.6.32-279.el6.x86_64) ...and here
        root (hd0,0)
        kernel /vmlinuz-2.6.32-279.el6.x86_64 ro root=/dev/mapper/vg_plato-Plato_main rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M rd_LVM_LV=vg_plato/Plato_main KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
        initrd /initramfs-2.6.32-279.el6.x86_64.img
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2013-03-12 18:18 nsink New Issue