HELP HELP ? Cannot update to kernel 2.4.18-10smp !!

hkewell

Well-Known Member
May 17, 2002
170
0
316
root@venus [/home]# rpm -ivh kernel-sm*
Preparing... ########################################### [100%]
1:kernel-smp ########################################### [100%]
stdin: is not a tty
stdin: is not a tty
stdin: is not a tty
No module FastTrak found for kernel 2.4.18-10smp

HELP ME ...pls...
 

parag

Well-Known Member
Aug 16, 2001
115
0
316
[quote:131c14267c][i:131c14267c]Originally posted by hkewell[/i:131c14267c]

root@venus [/home]# rpm -ivh kernel-sm*
Preparing... ########################################### [100%]
1:kernel-smp ########################################### [100%]
stdin: is not a tty
stdin: is not a tty
stdin: is not a tty
No module FastTrak found for kernel 2.4.18-10smp

HELP ME ...pls...[/quote:131c14267c]

if you are upgrading then you should use -uvh instead of -ivh

regards,
Parag
 

ecoutez

Well-Known Member
May 23, 2002
152
0
316
[quote:0eea0c5404][i:0eea0c5404]Originally posted by parag[/i:0eea0c5404]
if you are upgrading then you should use -uvh instead of -ivh[/quote:0eea0c5404]

Just in case any newbies are reading this, the above is not gospel. In my opinion, you're far better installing the new kernel seperately, enabling it in LILO/SILO/GRUB, and keeping your old kernel (at least temporarily) as a backout plan. As long as you have a little free disk space, this is a safer way to do things.

As to Parag's problem, I can only guess he's running a system with the Promise FastTrak (IDE RAID) controller, and for some reason the newer kernel doesn't have this enabled. May have to build a kernel by hand unless it is included in future RPMs of the kernel. Whatever the problem, it certainly has nothing to do with trying to do an rpm -i instead of an rpm -U

- Jason
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:6708db587d][i:6708db587d]Originally posted by parag[/i:6708db587d]

[quote:6708db587d][i:6708db587d]Originally posted by hkewell[/i:6708db587d]

root@venus [/home]# rpm -ivh kernel-sm*
Preparing... ########################################### [100%]
1:kernel-smp ########################################### [100%]
stdin: is not a tty
stdin: is not a tty
stdin: is not a tty
No module FastTrak found for kernel 2.4.18-10smp

HELP ME ...pls...[/quote:6708db587d]

if you are upgrading then you should use -uvh instead of -ivh

regards,
Parag[/quote:6708db587d]
Parag & hkwell, never use -uvh while you are upgrading the kernel use -ivh then if you make sure that new kernel is working fine remove the old one using &rpm -e kernel-oldversion&

Also I wrote about kernel upgrade before in this thread completely please read

http://forums.cpanel.net/read.php?TID=3802
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:0fc0dd1f40][i:0fc0dd1f40]Originally posted by hkewell[/i:0fc0dd1f40]

Can tell me how to update now ??

Thx All[/quote:0fc0dd1f40]
hkewell,

Do you have FastTrack RAID controller?

just using &rpm -ivh kernel& is not enough for kernel upgrade, I wrote a step by step instruction about kernel upgrade in thread #3802 (read the entire thread by referring to the bellow URL)

click here: http://forums.cpanel.net/read.php?TID=3802
 

hkewell

Well-Known Member
May 17, 2002
170
0
316
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 ?
 

itf

Well-Known Member
May 9, 2002
620
0
316
[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]