Help - Search - Members - Calendar
Full Version: HOW-TO Kernel Upgrade
The Planet Forums > Control Panels > cPanel/WHM
eth00
I posted this in the main forum so more people will see it for the time being.

It is time again to upgrade your kernels! As long as you have RHEL it is pretty easy.


# cd /var/spool/up2date

If you have a dual processor server:
CODE
up2date --download --force kernel-smp

rpm -ivh kernel-smp-2.4.21-15.0.4.EL.i686.rpm  

lilo -v -v

lilo -R 2.4.21-15.0.4.1

shutdown -r now


If you have a single processor server:

CODE
up2date --download --force kernel

rpm -ivh kernel-2.4.21-15.0.4.EL.i686.rpm  

lilo -v -v

lilo -R 2.4.21-15.0.4.1E

shutdown -r now


When you run lilo -v -v make sure that no errors appear, if so you probably need to look at the lilo.conf for the problem.


The lilo -R command will make it reboot only once to the new kernel. If for some reason just put in a reboot TT and it will automatically boot to the old kernel. If it comes back up fine then you can edit the /etc/lilo.conf and set "default=" the new kernel label.

As always be very careful upgrading your kernel as doing it improperly can cause serious harm. Make sure you have a good backup as I take no responsbility if something goes wrong...not that it should.
WhizHosting
I just did this on my Dell Dual Xeon 2.4 running RHEL 3 + Cpanel and it worked great I highly reccomend.
lover
i used==>
up2date --download --force kernel
and i got this error==>
___________________
Error Message:
Please run rhn_register (or up2date --register on Red Hat Linux 8.0)
as root on this client
Error Class Code: 9
Error Class Info: Invalid System Credentials.
Explanation:
An error has occurred while processing your request. If this problem
persists please enter a bug report at bugzilla.redhat.com.
If you choose to submit the bug report, please be sure to include
details of what you were trying to do when this error occurred and
details on how to reproduce this problem.
_______________________________________
then i used rhn_register and i registered in redhat network and then i used up2date --download --force kernel again but i get this error==>
____________________________________________________
This system may not be updated until it is associated with a channel.
---------------------------------------------------------------------------
what is problem?!
what should i do now?
eth00
Lover assuming you have RHEL you need to put in a trouble ticket with ev1. Tell them your server is not registered for RHN and you would like them to go ahead and register it. Make sure and provide the root password in the ticket. For some reason some cPanel servers do not get rhn access when they should. Make sure and run up2date -u after you get rhn because it will want to update a lot of other things first.
lover
i did that!
and now new problem!
---------------------
up2date --download --force kernel

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

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


Testing package set / solving RPM inter-dependencies...
########################################
kernel-2.4.21-15.0.4.EL.i68 ########################## Done.
root@ns1 [/var/spool/up2date]# rpm -ivh kernel-2.4.21-15.0.4.EL.i686.rpm
Preparing... ########################################### [100%]
1:kernel ########################################### [100%]
stdin: is not a tty
stdin: is not a tty
stdin: is not a tty
___________________________________
then i used lilo -v -v and then lilo -R 2.4.21-15.0.4.1E and i get this error:Fatal: No image "2.4.21-15.0.4.1E" is defined
____________-
what is problem?
what should i do now?
eth00
Sounds like your lilo.conf is was not updated. You need to look in the /etc/lilo.conf file and have it look SOMETHING like this:

CODE
image=/boot/vmlinuz-2.4.21-15.0.4.EL

       label=2.4.21-15.0.4.E

       initrd=/boot/initrd-2.4.21-15.0.4.EL.img

       read-only

       append="root=/dev/sda3"


Your image line may be slightly different as all servers are different. Make sure that when you are done editing it and run the lilo -v -v that no errors appear.
lover
contents of lilo.conf in my box:
prompt
timeout=50
default=2.4.21-15.0.4.E
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.21-15.0.4.EL
label=2.4.21-15.0.4.E
initrd=/boot/initrd-2.4.21-15.0.4.EL.img
read-only
append="root=/dev/hda3"

image=/boot/vmlinuz-2.4.21-4.0.1.ELsmp
label=2.4.21-4.0.1.E1
initrd=/boot/initrd-2.4.21-4.0.1.ELsmp.img
read-only
append="root=LABEL=/"

image=/boot/vmlinuz-2.4.21-4.0.1.EL
label=2.4.21-4.0.1.EL
______________________________
i have changed default but when i use lilo -v -v i get this:
--------------------------
LILO version 21.4-4, Copyright © 1992-1998 Werner Almesberger
'lba32' extensions Copyright © 1999,2000 John Coffman

Reading boot sector from /dev/hda
Merging with /boot/boot.b
Secondary loader: 11 sectors.
Mapping message file /boot/message
Message: 46 sectors.
Boot image: /boot/vmlinuz-2.4.21-15.0.4.EL
Setup length is 10 sectors.
Mapped 2425 sectors.
Mapping RAM disk /boot/initrd-2.4.21-15.0.4.EL.img
RAM disk: 318 sectors.
Added 2.4.21-15.0.4.E *
Boot image: /boot/vmlinuz-2.4.21-4.0.1.ELsmp
Setup length is 10 sectors.
Mapped 2619 sectors.
Mapping RAM disk /boot/initrd-2.4.21-4.0.1.ELsmp.img
RAM disk: 331 sectors.
Added 2.4.21-4.0.1.E1
Boot image: /boot/vmlinuz-2.4.21-4.0.1.EL
Setup length is 10 sectors.
Mapped 2419 sectors.
Mapping RAM disk /boot/initrd-2.4.21-4.0.1.EL.img
RAM disk: 325 sectors.
Added 2.4.21-4.0.1.EL
/boot/boot.0300 exists - no backup copy made.
Map file size: 50688 bytes.
Writing boot sector.
-------------------------------------
after that i used lilo -R 2.4.21-15.0.4.1E but i got this error again:fatal:no image ... defined!icon_sad.gif
WhizHosting
Try

lilo -R 2.4.21-15.0.4.EL
WhizHosting
QUOTE
Originally posted by eth00
lilo -R 2.4.21-15.0.4.1


This didnt work for me on my dual xeon I had to do this

lilo -R 2.4.21-15.0.4.E
WhizHosting
QUOTE
Originally posted by lover
contents of lilo.conf in my box:
prompt
timeout=50
default=2.4.21-15.0.4.E
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.21-15.0.4.EL
       label=2.4.21-15.0.4.E
       initrd=/boot/initrd-2.4.21-15.0.4.EL.img
       read-only
       append="root=/dev/hda3"

image=/boot/vmlinuz-2.4.21-4.0.1.ELsmp
       label=2.4.21-4.0.1.E1
       initrd=/boot/initrd-2.4.21-4.0.1.ELsmp.img
       read-only
       append="root=LABEL=/"

image=/boot/vmlinuz-2.4.21-4.0.1.EL
       label=2.4.21-4.0.1.EL
______________________________
i have changed default but when i use lilo -v -v i get this:
--------------------------
LILO version 21.4-4, Copyright © 1992-1998 Werner Almesberger
'lba32' extensions Copyright © 1999,2000 John Coffman

Reading boot sector from /dev/hda
Merging with /boot/boot.b
Secondary loader: 11 sectors.
Mapping message file /boot/message
Message: 46 sectors.
Boot image: /boot/vmlinuz-2.4.21-15.0.4.EL
Setup length is 10 sectors.
Mapped 2425 sectors.
Mapping RAM disk /boot/initrd-2.4.21-15.0.4.EL.img
RAM disk: 318 sectors.
Added 2.4.21-15.0.4.E *
Boot image: /boot/vmlinuz-2.4.21-4.0.1.ELsmp
Setup length is 10 sectors.
Mapped 2619 sectors.
Mapping RAM disk /boot/initrd-2.4.21-4.0.1.ELsmp.img
RAM disk: 331 sectors.
Added 2.4.21-4.0.1.E1
Boot image: /boot/vmlinuz-2.4.21-4.0.1.EL
Setup length is 10 sectors.
Mapped 2419 sectors.
Mapping RAM disk /boot/initrd-2.4.21-4.0.1.EL.img
RAM disk: 325 sectors.
Added 2.4.21-4.0.1.EL
/boot/boot.0300 exists - no backup copy made.
Map file size: 50688 bytes.
Writing boot sector.
-------------------------------------
i rebooted box again but  it dose`nt work!


Shouldnt your default be this?

default=2.4.21-15.0.4.EL
lover
QUOTE
Originally posted by WhizHosting
Try

lilo -R 2.4.21-15.0.4.EL

this dose`nt work for me too.
but lilo -R 2.4.21-15.0.4.E worked!
thanks!icon_wink.gif
lover
QUOTE
Originally posted by WhizHosting
Shouldnt your default be this?

default=2.4.21-15.0.4.EL

sorry,i did`nt attention!
anyway,thankyou!icon_wink.gif icon_biggrin.gif
lordo
Thanks for the good and simple how to.. Current update is 2.4.21-20.E.

So, rpm the new name and then:
lilo -R 2.4.21-20.EL

Took less than a minute..
vivo2341
I am trying this now and I get this error

Testing package set / solving RPM inter-dependencies...
########################################
RPM package conflict error. The message was:
Test install failed because of package conflicts:
package kernel-smp-2.4.21-20.EL is already installed


Does this mean I have the latest kernel? I just check every few weeks and I always get. Is there somewhere we can get on a mailing list that will let us know when a new KErnel for rhe has been released? My admin is out of town so I was trying to do this myself.
Ronny
Do a uname -a to see what the current kernel is.

If it's not 2.4.21.-20, look in /etc/lilo.conf and see if it's there. You might just need to reboot the server into the new kernel.
mahdionline
oohhh icon_biggrin.gif
BRulez
QUOTE
Originally posted by lordo
Thanks for the good and simple how to.. Current update is 2.4.21-20.E.

So, rpm the new name and then:
lilo -R 2.4.21-20.EL

Took less than a minute..


Thank you very much for your help
N9ne
If I have a P4 2.0Ghz with HT, does that count as 2 processors or 1? AFAIK the HT makes it 2, but not in a physical sense.
mahdionline
Hi

I upgrade our kernel and restart ,then I make some change to my server httpd.con and php.ini and when I restart the httpd.

after these change i findout that mysql () & spamd & eximstats are failed ?

how can i do ? what's the problem ?

Regard
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.