Upgrade and reload kernel without rebooting in Slackware?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The default 14.2 kernels are not configured with CONFIG_KEXEC=y as is required to use kexec (of course you could build custom kernels to fix that). However it is set appropriately in -current where I just tested in a VM and it worked pretty well, although the change over is not instantaneous (about 20secs for new kernel to boot & services to start).
Compared with livepatch (which looks complicated at first glance), kexec is very easy to setup and run although the kernel changeover time wouldn't be good enough for cases like an online store where you may have purchase transactions going on (and don't want to interrupt).
Edit: PS. the existing SlackBuild for kexec-tools at SBo uses version 2.0.17 but this generated an error (kexec unhandled rela relocation R_X86_64_PLT32) when I tried to run it. Updating to version 2.0.19 fixed the problem.
chris
Last edited by chris.willing; 04-21-2019 at 09:45 PM.
Regardless of the expense, assuming it is THAT important to be up without even a few minutes lapse, ever, that is worth money as well as an investment into the only practical and effective solution - redundancy. Replacing a kernel on-the-fly does not solve the issue since what does it matter if the system is technically up in some manner if no or even limited services can be provided? It's just cleaner, and ultimately more reliable, to have scheduled reboots for various kinds of maintenance.
This wouldn't be about supposed advantages of a parallel init would it?
Regardless of the expense, assuming it is THAT important to be up without even a few minutes lapse, ever, that is worth money as well as an investment into the only practical and effective solution - redundancy.
I agree with the sentiment but I can share that in the real world this often does not happen. I appreciate that in some use cases five 9s of uptime or better is not a goal but a requirement. People in such use cases should indeed accept that investing in some kind of redundancy is simply the cost of doing business. That said, I work for a small mom-and-pop. Striving for five 9s of uptime is impossible and stressful. Two 9s of uptime is good enough for most people.
Quoting from the Livepatch wiki page:
Since there are limitations to the kernel livepatch technology, some Linux kernel code paths cannot be safely patched while running. There may be occasions when the traditional kernel upgrade and reboot might still be necessary.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.