LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-08-2008, 02:35 PM   #1
QianQian
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Rep: Reputation: 0
Question how to upgrade the kernel in RedHat Linux E 3


Hi, I have a RedHat linux E3. The kernel information is like this:

[root@flulinux01 rpm]# uname -r
2.4.21-20.ELsmp

I used the RedHat up2date to upgrade the kernel:
[root@flulinux01 rpm]# up2date -f kernel

Fetching Obsoletes list for channel: rhel-i386-as-3...

Name Version Rel
----------------------------------------------------------
kernel 2.4.21 53.EL i686


Testing package set / solving RPM inter-dependencies...
########################################
kernel-2.4.21-53.EL.i686.rp ########################## Done.
Preparing ########################################### [100%]

Installing...
1:kernel ########################################### [100%]

after that, I performed uname
[root@flulinux01 rpm]# uname -r
2.4.21-20.ELsmp

It seems the kernel is not upgraded.

Is anything wrong or I need to do more?

Thanks a lot!
 
Old 04-08-2008, 02:37 PM   #2
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
yes, reboot
 
Old 04-08-2008, 02:39 PM   #3
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
You should make sure that it is list in grub.conf as the default kernel (default line equals correct count, starting from 0, for the title of the updated kernel you installed) and then reboot.

It should be in the grub menu list that you can reboot the system and it'll either default or you can select the -53 kernel to boot the system. I recommend physical console access (or some means of out-of-band access) for at least the first boot to the new kernel in case there are any problems you can recover. I wouldnt expect any but better to plan ahead
 
Old 04-08-2008, 02:51 PM   #4
QianQian
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you for your reply!

1. Is there any way to avoid rebooting? We have an online database running.
2. May I select to upgrade the kernel to 2.4.21-52, not the latest one?
 
Old 04-08-2008, 02:52 PM   #5
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
You can't boot a kernel without errr rebooting.
 
Old 04-08-2008, 02:56 PM   #6
QianQian
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Original Poster
Rep: Reputation: 0
The grub.conf is like this

[root@flulinux01 grub]# more 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,2)
# kernel /vmlinuz-version ro root=/dev/sda7
# initrd /initrd-version.img
#boot=/dev/sda3
default=1
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-53.EL)
root (hd0,2)
kernel /vmlinuz-2.4.21-53.EL ro root=LABEL=/ hda=ide-scsi apic
initrd /initrd-2.4.21-53.EL.img
title Red Hat Enterprise Linux AS (2.4.21-20.ELsmp)
root (hd0,2)
kernel /vmlinuz-2.4.21-20.ELsmp ro root=LABEL=/ hda=ide-scsi apic
initrd /initrd-2.4.21-20.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.4.21-20.EL)
root (hd0,2)
kernel /vmlinuz-2.4.21-20.EL ro root=LABEL=/ hda=ide-scsi apic
initrd /initrd-2.4.21-20.EL.img
[root@flulinux01 grub]#
 
Old 04-08-2008, 03:43 PM   #7
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
change it to "default=0" then it will boot kernel 2.4.21-53 (the new one)
 
Old 04-09-2008, 02:08 PM   #8
QianQian
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you for your reply

I have a question about the /boot/grub/menu.lst and the /boot/grub/grub.conf. They are different.


Which file is read when reboot the RedHat linux?

[root@flulinux01 grub]# more menu.lst
# 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,2)
# kernel /vmlinuz-version ro root=/dev/sda7
# initrd /initrd-version.img
#boot=/dev/sda3
default=0
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-20.ELsmp)
root (hd0,2)
kernel /vmlinuz-2.4.21-20.ELsmp ro root=LABEL=/ hda=ide-scsi apic
initrd /initrd-2.4.21-20.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.4.21-20.EL)
root (hd0,2)
kernel /vmlinuz-2.4.21-20.EL ro root=LABEL=/ hda=ide-scsi apic
initrd /initrd-2.4.21-20.EL.img


[root@flulinux01 grub]# more 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,2)
# kernel /vmlinuz-version ro root=/dev/sda7
# initrd /initrd-version.img
#boot=/dev/sda3
default=1
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-53.EL)
root (hd0,2)
kernel /vmlinuz-2.4.21-53.EL ro root=LABEL=/ hda=ide-scsi apic
initrd /initrd-2.4.21-53.EL.img
title Red Hat Enterprise Linux AS (2.4.21-20.ELsmp)
root (hd0,2)
kernel /vmlinuz-2.4.21-20.ELsmp ro root=LABEL=/ hda=ide-scsi apic
initrd /initrd-2.4.21-20.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.4.21-20.EL)
root (hd0,2)
kernel /vmlinuz-2.4.21-20.EL ro root=LABEL=/ hda=ide-scsi apic
initrd /initrd-2.4.21-20.EL.img
 
Old 04-09-2008, 03:08 PM   #9
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
That's a bit strange because menu.lst is supposed to just be a symlink to grub.conf (or the other way around, i can't remember). I.e. they should both actually be identical. Either way, i would suggest that grub reads grub.conf on boot.
 
  


Reply



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
redhat kernel upgrade geomon Red Hat 2 03-26-2005 03:04 PM
redhat 7.2 Kernel upgrade contiang Red Hat 1 12-28-2004 11:11 PM
Redhat 9.0 kernel upgrade redhat_help Red Hat 1 05-15-2004 05:43 AM
Redhat 7.3 Kernel Upgrade acidbreez Linux - Newbie 2 08-24-2003 11:59 PM
redhat kernel upgrade dragon Linux - Software 0 02-20-2002 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:25 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
Open Source Consulting | Domain Registration