LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-20-2019, 01:06 PM   #1
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 501

Rep: Reputation: 45
Question Upgrade and reload kernel without rebooting in Slackware?


Is it possible to upgrade and reload the Linux kernel without rebooting?

I'm running a webserver and cannot afford downtime.
 
Old 04-20-2019, 03:45 PM   #2
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Maybe see here Livepatch: Linux kernel updates without rebooting?

Although slackware is not listed, it seems on my stable slackware there's this
Code:
zcat /proc/config.gz | grep LIVEPATCH
CONFIG_HAVE_LIVEPATCH=y
CONFIG_LIVEPATCH=y
What's yours say?
 
1 members found this post helpful.
Old 04-20-2019, 05:54 PM   #3
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Hello
I'm rather curious that, despite how interesting this facility is, since even mission critical computers have scheduled reboots and reboots only take just a few minutes and that almost all services must be interrupted for kernel replacement, what is it that you think you lose in a scheduled reboot?
 
2 members found this post helpful.
Old 04-20-2019, 07:48 PM   #4
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
I'm running a webserver and cannot afford downtime.
Please explain why a web server can't be offline for the 90 seconds or so required for a reboot? If 100% uptime is required then perhaps invest in a HA cluster?
 
Old 04-20-2019, 07:51 PM   #5
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by upnort View Post
Please explain why a web server can't be offline for the 90 seconds or so required for a reboot?
I swear some websites do it without even telling anyone.
 
Old 04-20-2019, 08:25 PM   #6
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
this sounds a little like "that which should not be named"™

Quote:
shorthand term that refers to a manner of responding to challenges that requires one to have the ability to think fast, to adapt, and to improvise when getting a job done

Last edited by glorsplitz; 04-20-2019 at 08:26 PM.
 
Old 04-20-2019, 08:51 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Quote:
reboots only take just a few minutes
I have a friend who is a sysadmin for a moderate-sized hospital which uses Linux in a thin-client 24/7 environment. His server is a server class machine with oodles of RAM. Reboots are not a small matter in that environment.

It takes about 20 minutes for his server to reboot.
 
1 members found this post helpful.
Old 04-20-2019, 11:22 PM   #8
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by glorsplitz View Post
What's yours say?
According to the article you quoted you'll need a 4.x kernel at least, so Slackware 14.2 or -current (unless you build your own kernel, for older releases, of course).
That said: Pat doesn't supply the live patches you would need for this, so you would have to create them yourself; only complete new kernel builds or updated versions are being delivered for those Slackware releases (and not too many of them for 14.2 either).
 
Old 04-21-2019, 12:07 AM   #9
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Who cares why you want to do it - keep at it @Geremia and post results here for others who may be interested; others like me who don't mind pleading ignorance but would like to know - for whatever reason.

chris
 
4 members found this post helpful.
Old 04-21-2019, 01:21 AM   #10
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
His server is a server class machine with oodles of RAM. It takes about 20 minutes for his server to reboot.
Disable memory checking in the BIOS.

I manage several Dell rack servers that host server containers and VMs. When I first started managing the servers the reboot times were long and stressful -- especially when remotely updating and rebooting. Curious, I rebooted locally and realized the delay was BIOS memory checks. Takes a long time with 72 GB of RAM. After disabling the memory checks, reboot times changed to about 3 to 3.5 minutes.

I'm curious if anybody can resolve the OP's request for not rebooting, but also curious why a "mere" web server can't be rebooted. Then again, perhaps the web site is a status page for ICBMs. Or George Carlin partial sports scores.
 
Old 04-21-2019, 10:17 AM   #11
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
this
Quote:
Who cares why you want to do it - keep at it @Geremia and post results here for others who may be interested
same here
Quote:
I'm curious if anybody can resolve the OP's request for not rebooting
 
1 members found this post helpful.
Old 04-21-2019, 02:46 PM   #12
digimaus
LQ Newbie
 
Registered: Nov 2009
Location: Johnson City, TN, USA
Distribution: Slackware 15.0
Posts: 29

Rep: Reputation: 11
Quote:
Originally Posted by frankbell View Post
I have a friend who is a sysadmin for a moderate-sized hospital which uses Linux in a thin-client 24/7 environment. His server is a server class machine with oodles of RAM. Reboots are not a small matter in that environment.

It takes about 20 minutes for his server to reboot.
I've worked in such an environment. My PowerEdge R710 takes about seven minutes to fully boot to Slackware 64 14.2. My HPE ProLiant takes about two minutes, tops.

My question is why, in that environment, that they wouldn't be running redundant servers? One goes down, the other one picks up within a minute or less.

I worked for a multinational farm/lawn equipment corporation that in this particular factory I worked at ran ESXI for eight virtual servers that ran the entire factory. We had two physical servers, both redundant, so if one went down, the other would get a signal and be online in less than one minute.

Relying on a single server, especially in a healthcare environment, seems like piss-poor practice. You have to reboot or shut down servers from time to time--replacing cooling fans is one thing that comes to mind--and prudent practice dictates that you plan for a backup server.

Makes me wonder what their business contingency plan looks like...

Just my unsolicited two cents' worth.
 
1 members found this post helpful.
Old 04-21-2019, 04:00 PM   #13
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
My question is why, in that environment, that they wouldn't be running redundant servers? One goes down, the other one picks up within a minute or less.
Typically, money. Redundancy usually is satisfied with HA clusters, which require three systems. Gets expensive.

Quote:
We had two physical servers, both redundant, so if one went down, the other would get a signal and be online in less than one minute.
How did you keep both the host and guest systems synchronized between the two?
 
Old 04-21-2019, 06:44 PM   #14
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Would kexec work here?
I know distros like NetBootCD use it....

https://wiki.archlinux.org/index.php/kexec

https://linux.die.net/man/8/kexec

https://slackbuilds.org/repository/1...m/kexec-tools/
 
Old 04-21-2019, 07:34 PM   #15
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
That's why you have maintenance windows or HA environments. Honestly, pick one of the two methods and run with it.
 
  


Reply

Tags
kernel, server, upgrade



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
reload the linux kernel without rebooting co_bra35 Linux - Kernel 2 01-22-2018 03:50 PM
Keeping the kernel TZ up to date in Slackware without rebooting xj25vm Slackware 5 04-08-2015 04:05 PM
Can I Reload Konqueror Without Reloading KDE all together or Rebooting the machine?? TeddyB Linux - Software 3 01-06-2008 07:05 PM
reload linux kernel without reboot mnauta Linux - General 1 02-14-2007 06:06 PM
Tomcat reload servlet is very slow, but reload jsp is fast and good? gsbarry Programming 2 04-28-2006 09:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:50 AM.

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
Open Source Consulting | Domain Registration