Operating System - Linux
1819901 Members
2606 Online
109607 Solutions
New Discussion юеВ

Old kernel version is being used, even after upgrade. Please suggest.

 
GnanaShekar
Regular Advisor

Old kernel version is being used, even after upgrade. Please suggest.

Hi,

We recently upgraded RHEL AS3 Update3 to Update6.
We have used yum to update.
I could confirm the upgrade by looking at the /etc/redhat-release file.

#more /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 6)


However the kernel version shown for the uname -a command looks to be still old.

# uname -a
Linux bangpcrh32 2.4.21-20.ELsmp #1 SMP Wed Aug 18 20:46:40 EDT 2004 i686 i686 i386 GNU/Linux

# rpm -qa | grep kernel
kernel-2.4.21-20.EL
kernel-doc-2.4.21-37.EL
kernel-pcmcia-cs-3.1.31-13
kernel-source-2.4.21-20.EL
kernel-2.4.21-37.EL
kernel-utils-2.4-8.37.12
kernel-smp-2.4.21-20.EL
kernel-source-2.4.21-37.EL
kernel-smp-2.4.21-37.EL


How do I change this. Please suggest.

Thanks & Regards
3 REPLIES 3
GnanaShekar
Regular Advisor

Re: Old kernel version is being used, even after upgrade. Please suggest.

Hi,

I changed the default label in /etc/lilo.conf and ran the lilo -v -v command.

After a reboot, I could see the latest kernel being used as the default.

# uname -a
Linux bangpcrh32 2.4.21-37.ELsmp #1 SMP Wed Sep 7 13:28:55 EDT 2005 i686 i686 i386 GNU/Linux


Thanks.
Steven E. Protter
Exalted Contributor

Re: Old kernel version is being used, even after upgrade. Please suggest.

Shalom,

Make sure the new kernel really is properly installed.

Then edit /boot/grub/grub.conf and put it into production.

The file is self documented.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: Old kernel version is being used, even after upgrade. Please suggest.

From the rpm output it can be seen that the kernel kernel-2.4.21-37.EL was correctly installed, but when you install a new kernel, you won't boot this new kernel by default.

Edit /etc/grub.conf and change the line:

default=0

By

default=

To boot the N option of the grub file (The kernel that you want).
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?