View Full Version : Debin sarge kernel upgrade help
ColdDoT
25th October 2006, 19:55
Hello
i got a debian sarge with a kernel 2.4. i want to upgrade it to the latest stable kernel.
but the server stands 260km of my house, so i don't wanna have something goes wrong when i upgrade it trough ssh.
so does some 1 know a good guid or howto to upgrade the kernel without having complication with the fact that you are 260km of your server.
greets ColdDoT
Hans
25th October 2006, 23:44
Debian search for available linux 2.4 kernels:
apt-cache search kernel |grep 2.4
Choose the latest stable kernel and install it:
apt-get install kernel-image-2.4.27-3-386
(i use this kernel just as an example, your choiche depends on your CPU etc.)
This commands reads the current installed linux kernel:
uname -a
Remove the current installed kernel:
dpkg --purge --force-remove-essential kernel-image-2.4.x-x-386
(your current kernel image according the output of uname -a)
Reboot your server.
uname -a
(you'll will see your new kernel now up and running)
NOTE:
I've tried this more then once succesfully, but i give NO WARANTY that it will work for you!!!
ColdDoT
25th October 2006, 23:49
i want to upgrade to 2.6 kernel, can i do it in the same way?
Hans
26th October 2006, 00:03
No i do not think so!
I think that upgrading from linux 2.4 kernel series to the 2.6 kernel series is a different procedure.
I am not familiar with that.
Maybe, you can ask Falko for advice.
ColdDoT
26th October 2006, 00:06
Ok because i wanna run lm_sensors, for some munin plugins :)
falko
26th October 2006, 13:52
Hello
i got a debian sarge with a kernel 2.4. i want to upgrade it to the latest stable kernel.
but the server stands 260km of my house, so i don't wanna have something goes wrong when i upgrade it trough ssh.
so does some 1 know a good guid or howto to upgrade the kernel without having complication with the fact that you are 260km of your server.
greets ColdDoT
Have a look here: http://www.howtoforge.com/forums/showthread.php?t=21
ColdDoT
26th October 2006, 15:42
what is the change that it goes wrong
upgrading a kernel 2.4.27-2-386 to the newest 2.6 kernel?
it is a webserver with some custimers on it so it may not goes wrong.
else is there a way to get lm_sensors working on 2.4.27-2-386 kernel (dell power edge 1u server 8xx)
edge
26th October 2006, 17:35
I've updated my Dell severs (PowerEdge 1425) from the 2.4 kernal to the 2.6.8-3-686-smp (note the smp part for dual CPU)
Till now I've never had a problem (my servers are about 100 km from here)
The way I did it. (it's like Hans his way)
1) Find the kernel you want to install
apt-cache search kernel-image | grep 686 (in my case 686)
or: apt-cache search kernel-image | grep 2.6
2) When you have found the correct kernel-image for your system you need to "install" it (lets say it's "kernel-image-2.6.8-3-686-smp"
apt-get install kernel-image-2.6.8-3-686-smp
Done. Now you can do a reboot.
To see if you are using the new kernel, do a uname -a
If you want you can (after the reboot) remove the "old" kernel
Again. I've never had a problem doing it this way on my Dell servers!
ColdDoT
26th October 2006, 19:58
uname -a
Linux server 2.4.27-2-386 #1 Wed Nov 30 21:38:51 JST 2005 i686 GNU/Linux
so can i install this package?
kernel-image-2.6-686 - Linux 2.6 image on PPro/Celeron/PII/PIII/P4 - transition package
and this is my CPU that is in my server
One Intel® Xeon® processor at 3.2GHz with 2MB L2 cache
(its a duel motherbord but i have only 1 prosessor installed)
is it oke to install kernel-image-2.6-686 ?
Thx for all the help so far
edge
26th October 2006, 21:23
I think that you can also install the "-smp" kernal.
The Intel® Xeon® processor is a dual CPU.
I have 2 Intel® Xeon® processor's in my system, and it's showing me CPU's 4 :-)
ColdDoT
26th October 2006, 22:30
I'm a dead man :'(
it has failled, no are my cutimers angry my dad is pissed of.
Nooooooooooooooooooooooooooooooooooooooooo
damed because after 12 minutes he is still not back in the air again :(:(
to bad dam dam dam i live with it
edge
26th October 2006, 23:23
This sucks man!
What exactly did you do?
Can you maybe call the data center, and ask if they reset the server for you?
ColdDoT
26th October 2006, 23:27
Exactly the steps you told me to do
apt-get install kernel-image-2.6-686
hot* package was removed
some extra packgaes were installed
in the end it says so like but loader config done
image.l* done
i've looked in to the file and there was a initri* image (2 for the 2.6 and 2 for the 2.4)
reboot
and then he was dead
falko
27th October 2006, 15:58
If you have a serial console, you can access your server even when it's not booting up (it's as if you were right in front of your server). Some hosters provide serial consoles.
ColdDoT
27th October 2006, 20:57
Oke i'm gonna place a other server next to the server there.
so can i just connect a 'Nullmodemkabel' from server1(COM1) to server2(COM1), so that i can acces the serial console trough putty? or is that impossible?
example:
-server1 is down
-i putty to server2
-i read/write to/from COM1
-----
-server2 is down
-i putty to server1
-i read/write to/from COM1
Is this possible?
Thx ColdDoT
falko
28th October 2006, 18:56
so can i just connect a 'Nullmodemkabel' from server1(COM1) to server2(COM1), so that i can acces the serial console trough putty? or is that impossible?
Sorry, I'm no expert in this area...
But you seem to have physical access to your server, so why don't you try to replace the kernel while you're near your server?
ColdDoT
28th October 2006, 19:35
Yes thats true and that is what i'm gonna do,
but it is handy to have it you see. if i have that system in that way setted up.
i never have to go to amsterdam anymore.
i can just putty to the working server and fix through the COM port the problem on the other server :)
i have founded some thing so im going to get more info and test it soon. if i have tested and succes i post a tutorial on it :)
Greets
edge
28th October 2006, 19:40
Thats funny.. My servers are also in Amsterdam. (Redbus TeleCity)
ColdDoT
28th October 2006, 23:38
Redbus, TransIP :)
moet ik wat voor je doen? daaro? :P
Tomorry i'm gonna take a look there so do you guys have some tips?
to fix it.
edge
28th October 2006, 23:53
but the server stands 260km of my house
If you are 260km from Amsterdam, you are (1) in Germandy, or (2) in Belgium :-)
Redbus, TransIP :)
I was with TransIP some time ago, but moved to a cheaper one (only 15 euro p/m.) PM me if you need to know who.
moet ik wat voor je doen? daaro? :P
Tomorry i'm gonna take a look there so do you guys have some tips?
to fix it.
Thank you, but all servers are working fine (touch wood).
Your server should have rebooted after the kernel update.. All you probably need to do is hit the reset!
Did you remove the old kernel allready? If not, you can boot in the old kernel, and remove the "bad" one you installed.
Have fun at Redbus and. vergeet morgen je ID kaart niet anders kom je er niet in :-/
ColdDoT
29th October 2006, 09:34
Ok ok ok i live in nijmegen
Yes i like to i PM you right away
Ik ben er al 1x geweest echt cool daro (leterlijk), I don't forget my passport
Kernel:
i haven't removed a kernel, how do i boot in old kernel (i diden't have rescue disk :( no floppy drive in my server))
Thx for all the help you guys gave me :)
Hans
29th October 2006, 10:12
I think that you can also install the "-smp" kernal.
The Intel® Xeon® processor is a dual CPU.
I have 2 Intel® Xeon® processor's in my system, and it's showing me CPU's 4 :-)
You should only install a SMP kernel if you really have 2 (or more) processors on board.
ColdDot has only one Xeon processor, so he should not choose a SMP kernel.
edge
29th October 2006, 11:07
Ok ok ok i live in nijmegen
Yes i like to i PM you right away
Ik ben er al 1x geweest echt cool daro (leterlijk), I don't forget my passport
Kernel:
i haven't removed a kernel, how do i boot in old kernel (i diden't have rescue disk :( no floppy drive in my server))
Thx for all the help you guys gave me :)
When booting up, it will show you the screen with kernels (you have about 10 seconds time to select an other one).
You should only install a SMP kernel if you really have 2 (or more) processors on board.
ColdDot has only one Xeon processor, so he should not choose a SMP kernel.
That this is I think ColdDoT his problem ;/
ColdDoT
29th October 2006, 11:12
Hans & Edge i haven't install the SMP kernel so thats not my problem :(
When booting up, it will show you the screen with kernels (you have about 10 seconds time to select an other one).
Thanks
(btw this kernel have i installed 'kernel-image-2.6-686')
ColdDoT
29th October 2006, 18:46
Sorry for duble post but i have fixed the server and everything is running fine now
(my kernel is back to 2.4)
the kernel 2.6 wasn't, not even for a little bit
Thanks guys
edge
29th October 2006, 20:06
the kernel 2.6 wasn't, not even for a little bit
che passa?
What was wrong with the 2.6 kernal?
ColdDoT
29th October 2006, 20:08
Kernel 2.6 wansn't even running for a little bit, on startup it was blank.
so i just removed all the shit, and now it is working again good.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.