Environment

  • Red Hat Enterprise Linux  5 and later

Issue

  • How come I have RHEL 5.6 installed on the system

    [root@station ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 5.6 (Tikanga)
    
    [root@station ~]# uname -a
    Linux station 2.6.18-92.1.22.el5 #1 SMP Fri Dec 5 09:28:22 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
    

Resolution

  •   Check whether system is updated by looking at yum.log

         <snip> Jun 17 19:46:51 Installed: kernel-2.6.18-238.12.1.el5.x86_64 <snip>
    
  • In system , /boot/grub/grub.conf has three kernel entries in which the selected kernel version is 2.6.18-92.1.22.el5

    <snip>
    [root@station ~]# uname -a Linux station 2.6.18-92.1.22.el5 #1 SMP Fri Dec 5 09:28:22 EST 2008 x86_64 x86_64 x86_64 GNU/Linux 
    <snip>
    
  • To boot the system from latest kernel,  change the default value to "0" in grub.conf and then reboot the system to see the change in uname -a output.

    ---------------------grub.conf------------------------
    <snip>
    default=1 -----> Older Kernel Selected ---> Change it to "0" for latest kernel to boot automatically.
    timeout=10
    splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title Red Hat Enterprise Linux Server (2.6.18-238.12.1.el5)
      root (hd0,0)
      kernel /vmlinuz-2.6.18-238.12.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet ---> Latest Kernel 
      initrd /initrd-2.6.18-238.12.1.el5.img
    title Red Hat Enterprise Linux Server (2.6.18-92.1.22.el5)
      root (hd0,0)
      kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet ---> Older Kernel
      initrd /initrd-2.6.18-92.1.22.el5.img
    title Red Hat Enterprise Linux Server (2.6.18-92.1.18.el5)
      root (hd0,0)
      kernel /vmlinuz-2.6.18-92.1.18.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
      initrd /initrd-2.6.18-92.1.18.el5.img
    <snip>
    --------------------------------------------------------
    

Root Cause

  • Sytem was updated

Diagnostic Steps

  • Run this command to know which version of Red Hat Enterprise Linux you are using.

           # rpm -q --queryformat "%{VERSION}\\n" redhat-release
    
  •   Look at all yum.log files for any specific update.