this post was submitted on 01 Jun 2023
4 points (100.0% liked)

Arch Linux

7783 readers
26 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

I am using Archlinux as a server for my infrastructure. Does anyone have experience with ignoring kernel upgrades on Archlinux for a while? If so, how do you decide on what kernel release you are staying? If you upgrade the kernel, have you found a way to circumvent having to restart the machine?

top 11 comments
sorted by: hot top controversial new old
[–] serj 6 points 2 years ago

I just using the linux-lts kernel on servers

[–] [email protected] 1 points 1 year ago

I use the LTS kernel on my Arch server, but I don't ignore kernel upgrades. I just leave it up until I can schedule some downtime for a reboot. Depending on how fast releases happen, there have been a few times where I didn't reboot for 2 or 3 kernel upgrades. Hasn't ever been a problem for me personally.

[–] [email protected] 1 points 1 year ago
[–] [email protected] 1 points 1 year ago (1 children)

LTS kernel would help a little, but it also still receives updates.

Why are you running Arch on a server if you are concerned with frequent updates, though?

[–] [email protected] 1 points 1 year ago

I am not at all concerned with frequent updates, I do want them. The thing with the Kernel is, for some applications you need to reboot to make the update complete. E.g. libvirts default network doesn't work when you upgrade the kernel but don't reboot, with docker I also had problems. I just want to minimize downtime.

I will likely try to achive a setup with a clustered file system and two physical servers for failover

[–] [email protected] 1 points 1 year ago

IMHO a server would benefit from all updates... but as with all updates a pre-update backup is always wise.

Do you have specific issues to deal with?

[–] [email protected] 1 points 2 years ago

I already had the lts kernel ignored in the pacman.conf. Haven't updated it since several months and everything is still working fine. The only issue that I've found is the dkms module for virtual box that I tried to install 2 days ago and it failed.

In any case if you really want to skip the kernel upgrades maybe a distro like hyperbola will suit you best.

About the upgrades without restart, systemd is working on user space restart which in theory will allow your server to restart with the new software without even closing the established connections. I think that you can also live patch the kernel, but I've never tried it.

[–] [email protected] 0 points 2 years ago (1 children)

partial upgrades aren't supported I believe, but i believe if you really wanted you could add the following line to your /etc/pacman.conf:

IgnorePkg = linux

myself, I just depending on the server i'm upgrading, i just don't update as frequently and reboot the machine if needed (i don't think there's any getting around that).

[–] [email protected] 1 points 2 years ago (1 children)

Agreed, maybe just establish a maintenance cycle that works for you and only update then. Otherwise you might use arch-audit to check for security issues in your packages and only upgrade when a package you have has a known vulnerability.

[–] [email protected] 2 points 2 years ago (1 children)

I have come up with the idea to just setup two hypervisors under arch, virtualizing all services and using keepalived under arch to fail over the hypervisors. With that, one can take down one server for upgrades, without having "downtime" of the services. However, I don't know how to achieve that yet :)

[–] [email protected] 2 points 2 years ago

Look into HAProxy. It will load balance traffic between servers based on your preference, and can be configured to detect when 1 server is down, thus keeping your service active when 1 server goes down.