LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-02-2011, 04:54 AM   #1
system11
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Rep: Reputation: 0
Kernel upgrade issue


Iam trying to upgrade the kernel from 2.6.9-5.ELsmp to kernel-2.6.9-11.EL linux 4.

Iam able to successfully run the kernel upgrade.

[root@localhost RPM]# rpm -Uvh kernel-2.6.9-11.EL.i686.rpm
warning: kernel-2.6.9-11.EL.i686.rpm: V3 DSA signature: NOKEY, key ID a7048f8d
Preparing... ########################################### [100%]
package kernel-2.6.9-11.EL is already installed

But when i check using uname -a it is showing the previous kernel version.
[root@localhost RPM]# uname -a
Linux localhost.localdomain 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux


Please advise
 
Old 11-02-2011, 06:50 AM   #2
singhjc
Member
 
Registered: Nov 2010
Location: Moradabad
Distribution: Redhat,Centos
Posts: 31

Rep: Reputation: 1
Hello system11,


there is no need to run U switch to for upgrade new kernal you can just install new kernal rpm
[root@localhost]#rpm -ivh kernalpackagename.rpm --force

after that you will see 2 verson here try to boot with new verson for test if it get booted successfully then you can remove old verson by rpm -e packageverson after that try to check by uname -a command for newer one.

Last edited by singhjc; 11-02-2011 at 06:53 AM.
 
Old 11-02-2011, 06:53 AM   #3
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 6
Posts: 354
Blog Entries: 4

Rep: Reputation: 63
it needs rebooting.
 
Old 11-02-2011, 07:14 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by system11 View Post
Iam trying to upgrade the kernel from 2.6.9-5.ELsmp to kernel-2.6.9-11.EL linux 4.

Iam able to successfully run the kernel upgrade.

[root@localhost RPM]# rpm -Uvh kernel-2.6.9-11.EL.i686.rpm
warning: kernel-2.6.9-11.EL.i686.rpm: V3 DSA signature: NOKEY, key ID a7048f8d
Preparing... ########################################### [100%]
package kernel-2.6.9-11.EL is already installed

But when i check using uname -a it is showing the previous kernel version.
[root@localhost RPM]# uname -a
Linux localhost.localdomain 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux


Please advise
the answer to your problem is the system needs to reboot after upgrading kernel

but before that make sure you check your grub.conf

Code:
#cat /etc/grub.conf
Code:
#cat /boot/grub/grub.conf
and make sure you see your new kernel version as the changes will take effect only after reboot
 
Old 11-03-2011, 08:07 AM   #5
system11
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Original Poster
Rep: Reputation: 0
I have removed the rpm -e rpm file and restarted the server.But still it is showing the old version.

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux
[root@localhost ~]#

[root@localhost ~]# rpm -q kernel
kernel-2.6.9-11.EL


[root@localhost ~]# cat /etc/grub.conf
# 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/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux ES (2.6.9-11.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-11.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-11.EL.img
title Red Hat Enterprise Linux ES (2.6.9-5.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-5.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-5.ELsmp.img



Do i need to remove kernel /vmlinuz-2.6.9-5.ELsmp also.

Last edited by system11; 11-03-2011 at 08:08 AM.
 
Old 11-03-2011, 08:19 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by system11 View Post
I have removed the rpm -e rpm file and restarted the server.But still it is showing the old version.

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux
[root@localhost ~]#

[root@localhost ~]# rpm -q kernel
kernel-2.6.9-11.EL


[root@localhost ~]# cat /etc/grub.conf
# 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/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux ES (2.6.9-11.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-11.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-11.EL.img
title Red Hat Enterprise Linux ES (2.6.9-5.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-5.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-5.ELsmp.img



Do i need to remove kernel /vmlinuz-2.6.9-5.ELsmp also.
As per your grub.conf your old kernel is not yet uninstalled

I am sure you did this while uninstalling your kernel

Code:
#rpm -qa | grep kernel
kernel-2.6.9-5.ELsmp
kernel-2.6.9-11.EL

#rpm -e kernel-2.6.9-11.EL

#echo $?
(output should be 0)
reboot the system

and then check your kernel version
 
Old 11-03-2011, 09:51 AM   #7
system11
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Original Poster
Rep: Reputation: 0
I have removed the other rpm and restarted the server.Iam getting kernel panic error.The server is not booting now.
 
Old 11-03-2011, 09:57 AM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,520

Rep: Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106
When you say the "other rpm", which one are you referring to?

Last edited by suicidaleggroll; 11-03-2011 at 09:58 AM.
 
Old 11-03-2011, 09:19 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
Code:
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux ES (2.6.9-11.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-11.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-11.EL.img
title Red Hat Enterprise Linux ES (2.6.9-5.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-5.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-5.ELsmp.img
You have (had !) 2 kernels installed, 2.6.9-11 & 2.6.9-5. The default kernel ctr counts from 0, so
default=1 => 2.6.9-5 , your known good working kernel(!)
You should NEVER remove that until you have tested the new kernel 2.6.9-11 by setting default=0 and rebooting and check it works ok and 'uname -a' to check its that kernel.
Kernels are very small on disk and most people keep 3 (or more) in case a problem takes a while to appear.

It sounds like you've removed a kernel, but not updated 'default=...' field.
Try booting from the install media and putting
Code:
linux rescue
at the initial cmd line.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Upgrade issue brentd Linux - Software 3 10-26-2009 11:32 AM
Centos Kernel Upgrade Issue brentd Linux - Enterprise 4 03-09-2009 04:27 PM
Kernel upgrade issue from 2.6.24 to 2.6.24.7 Zack Alamy Linux - Software 2 01-16-2009 09:43 AM
kernel 2.6.16-18 upgrade issue robingazi Debian 2 08-27-2006 09:59 AM
apt-get upgrade kernel issue Jamesk5 Debian 6 04-25-2006 04:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration