OS does not boot from new kernel

Latest response

Hi guys,

thanks for helping out with this.

I updated my rhel 6.5. The kernel was updated. There are three kernels. Default is set to "0". However, the OS is still booting from kernel "3".

Here is what I have done:

  1. Comment the kernel in grub.conf.
    Outcome: did not work

  2. Uninstall new kernel and reinstall.
    Outcome: did not work.

OS is still booting from old kernel.

Thanks for your assistance.

Arrey

Responses

Hi Arrey,

Can you paste your grub.conf in a post?

From what I understand of your message, your system is booting OK, it just isn't booting the kernel you are expecting?

also the /etc/sysconfig/kernel
UPDATEDEFAULT= ....

Thanks guys for replying. Below are the information you requested.

Note: The server is not booting from the default kernel. It is booting from this "title Red Hat Enterprise Linux Server (2.6.32-358.23.2.el6.x86_64)" instead.

From grub.conf

boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.32-431.5.1.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.5.1.el6.x86_64 ro root=/dev/mapper/VolGroup00-LogVol00 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup01/LogVol05 rd_LVM_LV=VolGroup00/LogVol00 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-431.5.1.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-431.1.2.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.1.2.el6.x86_64 ro root=/dev/mapper/VolGroup00-LogVol00 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup01/LogVol05 rd_LVM_LV=VolGroup00/LogVol00 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-431.1.2.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-358.23.2.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-358.23.2.el6.x86_64 ro root=/dev/mapper/VolGroup00-LogVol00 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup01/LogVol05 rd_LVM_LV=VolGroup00/LogVol00 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-358.23.2.el6.x86_64.img

From /etc/sysconfig/kernel

UPDATEDEFAULT=yes

DEFAULTKERNEL specifies the default kernel package type
DEFAULTKERNEL=kernel

To clarify: Does not the server boot from the new kernel (kernel panic) or does not grub choose the new kernel as default

If you reboot what do you see, can you make a screenprint?

Thanks Garrit for replyingg.

  1. Server does not boot from the new kernel.
  2. No kernel panic
  3. Grub does not choose the new kernel as default.
  4. When I reboot, and halt the boot, I see only one kernel ( old kernel )

Thank you

ll /etc/grub.conf
ll /boot/grub/grub.conf

cat /etc/grub.conf
cat /boot/grub/grub.conf

diff /etc/grub.conf /boot/grub/grub.conf

I think you are on the money.

I have seen a bug where the symlink is not created between /etc/grub.conf and /boot/grub/grub.conf. I have had it on several RHEL 6 builds but never narrowed it down. The simple fix was to include the creation of the symlink in the build.

Your post jogged my memory!

Are you using RAID by any chance?

Arrey,

How did this go?

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.