PDA

View Full Version : kernel upgrade


vdsmania
02-17-2005, 12:14
hi my kernel is 2.4.20-021stab022.11.777-enterprise #1 do i need to update it if yes which one could i update and where could i know which will bestable with cpanel

is there a easy way to update it via cpanel or different way
and cpanel makes up2date -u from whm ?
if i make up2date -u will something will break in cpaanel or web sites i am a newbie about linux :help:

JFOC
02-17-2005, 12:28
May be kernel 2.6.9 or 2.6.10, i saw in some vds their using 2.6.9, but i more fav with 2.6.9, but 2.4.27 or 2.4.29 is enough. My webhosting server using 2.6.9

vdsmania
02-17-2005, 12:43
in my vds it is 2.4.20-021stab022.11.777-enterprise
is it easy to upgrade it and how can i make

JFOC
02-17-2005, 13:20
I read from some article(s), here is :

This is a very simple guide meant for people unfamiliar with upgrading kernels on a linux system. It is fairly simple to follow and I have done this on many servers so if you take your time and read though it you should have no problem. I take no responsibility if something goes wrong on your server because of this!

This guide is formated for a RHEL server but if you understand the concept it can be applied to any rpm kernel.

cd /var/spool/up2date

----------------------------------------------------
If you have a dual processor server or a P4 CPU that has hyperthreading technology.


up2date --download --force kernel-smp
rpm -ivh kernel-smp-2.4.21-27.0.1.EL.i686.rpm
lilo -v -v
lilo -R 2.4.21-27.0.1.E
shutdown -r now


----------------------------------------------------
If you have a single processor server:


up2date --download --force kernel
rpm -ivh kernel-2.4.21-27.0.1.EL.i686.rpm
lilo -v -v
lilo -R 2.4.21-27.0.1.EL
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.

Jahizzo
02-17-2005, 15:28
you cant update the kernel of a vds... dont even try :P

vdsmania
02-17-2005, 18:38
why we couldn't update kernel in vds is it all using the same kernel ?

arty
02-18-2005, 00:23
you cannot update the kernel of a vds since you don't even have access to it