LinuxQuestions.org
Visit Jeremy's Blog.
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: 381

Rep: Reputation: 41
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
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 708

Rep: Reputation: 139Reputation: 139
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 for decades while testing others to keep up
Posts: 2,156

Rep: Reputation: 2155Reputation: 2155Reputation: 2155Reputation: 2155Reputation: 2155Reputation: 2155Reputation: 2155Reputation: 2155Reputation: 2155Reputation: 2155Reputation: 2155
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
Member
 
Registered: Oct 2014
Distribution: Slackware, Proxmox, Debian, CentOS, Ubuntu MATE
Posts: 911

Rep: Reputation: Disabled
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: Slackware
Posts: 1,494
Blog Entries: 3

Rep: Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504
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
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 708

Rep: Reputation: 139Reputation: 139
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: 14,836
Blog Entries: 25

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
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
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 527

Rep: Reputation: 251Reputation: 251Reputation: 251
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: 548

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
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
Member
 
Registered: Oct 2014
Distribution: Slackware, Proxmox, Debian, CentOS, Ubuntu MATE
Posts: 911

Rep: Reputation: Disabled
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
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 708

Rep: Reputation: 139Reputation: 139
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: Limestone, TN, USA
Distribution: Slackware 64 14.2, Slackware 32 14.2
Posts: 25

Rep: Reputation: 8
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
Member
 
Registered: Oct 2014
Distribution: Slackware, Proxmox, Debian, CentOS, Ubuntu MATE
Posts: 911

Rep: Reputation: Disabled
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,427

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
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: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,265

Rep: Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626
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


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
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 03:49 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