LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-24-2012, 04:09 AM   #1
LittleMaster
Member
 
Registered: Jun 2012
Posts: 100
Blog Entries: 1

Rep: Reputation: Disabled
How can i upgrade linux kernel with a Reboot


Hi
whether its possible to upgrade linux kenel without reboot .I have server running for more than a years without even a single reboot on centos 5.4 .i have been doing patching using ksplice for a years but it is paid ware.But i require any freeware tool is available in linux to upgrade kernel without a reboot

http://www.ksplice.com/

Last edited by LittleMaster; 11-24-2012 at 04:30 AM.
 
Old 11-24-2012, 04:42 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
No,

you HAVE to reboot after an upgrade of the kernel. Reason is simple: kernel A is running as kernel B is being installed. An upgrade means a "parrallel" kernel that you need to boot in to at start/reboot.
I suggest an upgrade and a reboot on a slow moment. Warn the users and give it a whack...

Thor
 
Old 11-24-2012, 04:44 AM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
As far as I know ksplice is the only tool which can upgrade the kernel without rebooting.

There is another method, kexec but it provides only a very short reboot without going back to the BIOS and reenitialize the hardware.

Markus
 
Old 11-24-2012, 04:47 AM   #4
LittleMaster
Member
 
Registered: Jun 2012
Posts: 100
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
I have been runinng a critical application .I dont have a single downtime .How can i do kernel patching without downtime

Last edited by LittleMaster; 11-24-2012 at 05:21 AM.
 
Old 11-24-2012, 04:56 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,842

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Well ksplice itself started as a free project before it went commercial. I'm not aware of any successful forks yet.
Anything bought by Oracle is a cause for worry
 
Old 11-24-2012, 05:28 AM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Quote:
Originally Posted by LittleMaster View Post
I have been runinng a critical application .I dont have a single downtime .How can i do kernel patching without downtime
You should explain in more detail which application it is and why it's so critical. Maybe someone has an idea to help you.

Markus

Last edited by markush; 11-24-2012 at 06:16 AM. Reason: typo
 
Old 11-24-2012, 06:09 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Quote:
Originally Posted by LittleMaster View Post
I have server running for more than a years without even a single reboot on centos 5.4 .
That's not a good idea. Best practise is to reboot every 3 to 6 months. This also gives you a window to implement stuff that needs a reboot.

Besides that, you want to know that your box survives an actual reboot if something goes wrong (see next point).

Quote:
Originally Posted by LittleMaster View Post
I have been runinng a critical application .I dont have a single downtime .
If this application is critical then you must have a way to switch to a second (off-site) machine/VM if something goes wrong...... This also gives you a way to update/upgrade/patch and test one machine while there is no downtime (application is available on second machine).

But without the details markush asked for, the above is "just" general advise.
 
1 members found this post helpful.
Old 11-24-2012, 08:52 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
echoing what others have said---if your application is so critical, then something else will eventually bite you. I'm somehow reminded of the person I encountered once at a gas station----filling his tank with the engine running. Why? "If I shut it down, it won't start." So--what does he do---leave it running all night?

Fix the system to be robust, and then issues like this will go away.
 
Old 11-24-2012, 09:09 AM   #9
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
One should not forget that nobody gives you a guarantee that the new kernel will work at all. You will always need at least two identical servers, so that you can try the new kernel on one server before installing it on both.

In most cases it is more likely that upgrades break a system than a reboot breaks a system. Doing such extraordinary things like upgrading the kernel without reboot will most likely lead to bigger problems than simply rebooting the system.

Markus
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 6.2 upgrade kernel mdadm not starting on reboot misterpat Linux - Server 1 01-22-2012 02:03 PM
cannot reboot my laptop after kernel upgrade drkstr Slackware 6 08-27-2006 03:00 PM
Kernel upgrade stops at Busy Box v.1.01 on reboot chas Linux - Kernel 0 05-09-2006 05:59 PM
Can't reboot in Linux kernel 2.6 michalceri Linux - Laptop and Netbook 6 09-16-2005 03:28 AM
2.6.10 upgrade - speedtouch 330 adsl - reboot - usbdevfs not supported by kernel lets-eat-gary Fedora 2 01-25-2005 11:17 AM


All times are GMT -5. The time now is 02:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration