[quote:85a61834fe][i:85a61834fe]Originally posted by hkewell[/i:85a61834fe]
Server Mainboard Intel 7500CW with onborad IDE Raid.
Can you tell me how to step by step to upgrade ?
i have find http://forums.cpanel.net/read.php?TID=3802 , but i don't know how to do ..
Can help me ?[/quote:85a61834fe]
[b:85a61834fe]Step 1)[/b:85a61834fe] Find out which boot loader is used:
in a root SSH session use:
cat /root/anaconda-ks.cfg | grep 'bootloader'
[b:85a61834fe]root@server [/]#[/b:85a61834fe] cat /root/anaconda-ks.cfg | grep 'bootloader'
bootloader
it means GRUB is your default bootloader
if you see this instead you have LILO
[b:85a61834fe]root@server [/]#[/b:85a61834fe] cat /root/anaconda-ks.cfg | grep 'bootloader'
bootloader --useLilo
[b:85a61834fe]Step 2)[/b:85a61834fe] Download necessary RPM files then use
[b:85a61834fe]root@server [/]#[/b:85a61834fe] rpm -ivh kernel-smp-version.rpm
[b:85a61834fe] Step 3-1) in case of GRUB bootloader[/b:85a61834fe]
This is the instruction of Kernel upgrade using GRUB boot loader
By considering that your current kernel version is old-kernel-version and want to upgrade to kernel new-kernel-version
Then /etc/grub.conf looks like this
[quote:85a61834fe][i:85a61834fe]/etc/grub.conf[/i:85a61834fe]
# 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/sda6
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (old-kernel-version)
root (hd0,0)
kernel /vmlinuz-old-kernel-version ro root=/dev/sda6
initrd /initrd-old-kernel-version.img
title Red Hat Linux (new-kernel-version)
root (hd0,0)
kernel /vmlinuz-new-kernel-version ro root=/dev/sda6
initrd /initrd-new-kernel-version.img
[/quote:85a61834fe]
You have to change it to this
[quote:85a61834fe][i:85a61834fe]/etc/grub.conf[/i:85a61834fe]
# 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/sda6
# initrd /initrd-version.img
#boot=/dev/sda
[b:85a61834fe]default=1[/b:85a61834fe]
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (old-kernel-version)
root (hd0,0)
kernel /vmlinuz-old-kernel-version ro root=/dev/sda6
initrd /initrd-old-kernel-version.img
[b:85a61834fe]
title Red Hat Linux (new-kernel-version)
root (hd0,0)
kernel /vmlinuz-new-kernel-version ro root=/dev/sda6
initrd /initrd-new-kernel-version.img
[/b:85a61834fe]
[/quote:85a61834fe]
Graceful restart your server and if everything is fine after that
Use this command to see new kernel version
uname –a
Then uninstall the old kernel by this command
rpm –e kernel-old-kernel-version
And make /etc/grub.conf as follows
[quote:85a61834fe][i:85a61834fe]/etc/grub.conf[/i:85a61834fe]
# 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/sda6
# initrd /initrd-version.img
#boot=/dev/sda
[b:85a61834fe]default=0[/b:85a61834fe]
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
[b:85a61834fe]
title Red Hat Linux (new-kernel-version)
root (hd0,0)
kernel /vmlinuz-new-kernel-version ro root=/dev/sda6
initrd /initrd-new-kernel-version.img
[/b:85a61834fe]
[/quote:85a61834fe]
that’s it
Attention: if you tried GRUB but your new kernel is not up and running may be you have LILO boot loader as your default loader.
[b:85a61834fe] Step 3-2) if you have LILO boot loader you have to update its configuration manually[/b:85a61834fe]
pico /etc/lilo.conf
i.e.
[quote:85a61834fe][i:85a61834fe]example /etc/lilo.conf contains[/i:85a61834fe]
prompt
timeout=50
default=linux
boot=/dev/sda
disk=/dev/sda
bios=0x80
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-old-kernel-version
label=linux
initrd=/boot/initrd-old-kernel-version.img
read-only
root=/dev/sda6
[/quote:85a61834fe]
you have to change it to this
[quote:85a61834fe][i:85a61834fe]/etc/lilo.conf[/i:85a61834fe]
prompt
timeout=50
[b:85a61834fe]default=linux1[/b:85a61834fe]
boot=/dev/sda
disk=/dev/sda
bios=0x80
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-old-kernel-version
label=linux
initrd=/boot/initrd-old-kernel-version.img
read-only
root=/dev/sda6
[b:85a61834fe]
image=/boot/vmlinuz-new-kernel-version
label=linux1
initrd=/boot/initrd-new-kernel-version.img
read-only
root=/dev/sda6
[/b:85a61834fe]
[/quote:85a61834fe]
then use this command to apply the changes
lilo –v -v
after restarting your server and if everything is fine then you can remove the old kernel first make sure you have new kernel up and running by using
uname –a
then remove the old kernel by using
rpm –e kernel-old-kernel-version
and you have to modify lilo again
[quote:85a61834fe][i:85a61834fe]change /etc/lilo.conf to[/i:85a61834fe]
prompt
timeout=50
[b:85a61834fe]default=linux[/b:85a61834fe]
boot=/dev/sda
disk=/dev/sda
bios=0x80
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
[b:85a61834fe]
image=/boot/vmlinuz-new-kernel-version
label=linux
initrd=/boot/initrd-new-kernel-version.img
read-only
root=/dev/sda6
[/b:85a61834fe]
[/quote:85a61834fe]
and run this command
lilo –v –v
that’s it
[b:85a61834fe]Attention: some FastTrack RAID controller modules are unavailable in the smb kernel then you have to install relevant RPMs for your RAID controller and Linux before restarting your server[/b:85a61834fe]
[b:85a61834fe]Attention: If this is the first time that you want to upgrade a Kernel don't do it yourself on a production server, or try on a test environment first [/b:85a61834fe]