Do any of you use Arch Linux in a non-personal manner?
Don't get me wrong, fiddling with a broken Arch is super fun and a great learning experience and I love doing it on my personal machines, but do you have any machines that run Arch and also need to be dependably stable? Things like an important workplace server or like personal computers that aren't yours? If so, how do you maintain stability and keep users happy?
About this post
- Posted
- Archived
- Score
- 27 · 100% up
- Kind
- Text
- ID
- 18leer
47 comments
I run my entire company on Arch servers. In addition, I do consulting work where I admin servers that run Arch, some of which are for mid-sized eCommerce vendors and some well-known musicians.
But I'm a bit biased, so there's that.
Typical breakage occurs about once or twice a year when the devs make a major change to the core system (eg: systemd) or a major library/program (eg: python3). In these cases, the breakage is typically consistent across all machines.
To work through this, I do the upgrade on a non-essential machine, understand and record the process involved to "fix" the server. Then, when I'm confident that the procedure works, I replay the procedure on my essential servers.
Never blindly do a sysupgrade, and never do your first upgrade on your DB master. It's way more fun to break a staging server.
How do you deal with the frequent kernel updates ? Do you just upgrade less frequently to minimize the reboots ?
I believe there is the linux-lts package for servers.
I don't. There's typically no need to be at the latest and greatest kernel for a server environment.
The exception is, as always, security vulnerabilities. I watch the Arch news page (and other advisory sites) closely for things that are urgent upgrades. But they are few and far between.
I use it on a handful of virtual machines running production sites, and this is essentially my approach. I use Arch in this capacity simply because I know it better than any other distro and thus am more comfortable fixing any problems that might creep up.
Major updates to core, databases, or any other package that matters gets tested on my development workstation (which has been running Arch for 5 years without rebuilding) and on another test environment before being performed on the servers. Backups are taken prior to updating; I also schedule a window of time for most updates and place sites into an offline/maintenance mode while making changes to avoid the fallout from any surprises.
Sort of. There is one arch host at work among a seething mass of redhat/debian variants. It's not a critical host. It merely provides a safe point into the management network from the outside world (iscsi, snmp, backup) and does some log analysis, failure prediction.
I'm the only one at work who uses arch. I'm a special little snowflake.
Made my day.
The way things are now, not in a million years.
What's your distribution of choice for these situations?
Debian, obviously.
I do. It's painful.
when you miss some critical updates, and then the universe fucks up, and you are in front of your keyboard, and you are looking at your screen, and you are wondering "Why?" ? Is that it ????
You don't even need to miss some critical update, it's as simple as that. But yeah, when I needed the bootable USB key to chroot into my broken install in order to re-install all the packages, I was really asking myself "Why, but why?".
No I only use it for watching porn. Anything non personal I use Ubuntu.
Non-personal porn watching = no touching?
you are great.
Deleted before we saved it.
I don't use Arch on work servers because I'm a responsible sysadmin.
Stability isn't actually the issue, although it's nice. Honestly, I self-package enough stuff on our servers that I'd trade distro-provided stability for ABS, if I had a frozen mirror that I could rely on (which wouldn't be terribly difficult).
CentOS has a dedicated security team; not only do they closely monitor all upstream issues, they (or their RHEL counterparts) discover many of them; this is particularly nice when dealing with distro-specific issues (see: Debian OpenSSL vuln, circa 2008). I monitor the sec or announcement lists of all major things we use, but there's a hell of a lot of userland in Linux, and I don't want to keep track of all that or backport fixes for older versions of software. And yes, sometimes I can't "just upgrade", because the world's a complicated place.
It's also a lot easier to get third-party vendors to give you support when you're using a common system.
I use it on my work desktop. I do system updates on Fridays when I don't want to or don't have much work to do.
I am a GPGPU programmer and I put ArchLinux on all machines that are used exclusively by me. I update about once a month which isn't too bad.
But I also keep track of Arch Linux news to see if there is anything important to note (like moving /lib to /usr/lib). In those cases I update immediately because I am quite forgetful and would not want to go through figuring out what happened several weeks later.
It also helps that my personal machine is also running ArchLinux. I experiment more over there to see how things are as well.
I use it on my work and school laptop which absolutely must remain functional. To date I've had no problems at all with it. I also use it on a test bench LAMP server that in the last 6 months has had no problems either.
Perhaps I'm just not in on the real hardcore IT world but I don't personally see Arch as being any more unstable than Debian or Centos for that matter. So long as it's updated regularly while following the instructions for tricky updates when they arise.
Arch breaks too often, and requires a lot of manual maintenance. Debian and Cent do not.
Yea, a lot of that breakage comes from being on the bleeding edge, which isn't always a desired aspect if you're running something essential, like a production server.
To mitigate this, I sysupgrade my servers about 4 times a year, not nearly as often as I do with my development workstations. Unless there's a glaring security vulnerability that's been acknowledged and patched, there's no compelling reason to sysupgrade every 3 days.
I'm sorry that's been your experience but it hasn't been mine in the slightest.
Definitely. The trade off of always being fresh is that you sacrifice stability, reliability, and dependability.
That's insane that you can get by so easily because I was going to say that the only way to keep an Arch machine stable is to not update it. Hell, on my laptop I have to recompile the kernel every time it gets an update just to keep wifi functional.
I suppose I have the benefit of my work/school laptop being a Thinkpad. It makes working with Linux much easier than your typical $500 piece of crap laptop.
Work laptop.
No concerns. Worst thing if you don't catch an issue pre-reboot, is rescue disc+chroot, and can fix just about anything.
I use it on a work provided ultra book.
I've only had 2 issues in the past year. Most recent was Gnome not starting, but 30 seconds later I was in Cinnamon, so it was fine.
I update about 3x a weekday. I'm a bit overzealous when it comes to bleeding edge.
I have Arch on a few machines:
Workstation vm
LAMP server
VPN (commercial)
Media streaming server
2-4 get a ton of traffic daily, but I think the reason they've got incredible uptime is because I only run one or two services per machine. I don't have a DE on any of them; the VPN box is literally OpenVPN, my scripts for watching for attacks, and that's it; the media streamer just uses SAMBA paired to AD(LDAP) to push the shares to those who need it. It literally just acts as a file server, pretty stable simple technology.
I update my workstation at least once a week and the rest once a month. There is a prep instance of each of them which I update first to check for breakage, and then update the prod instance when I'm satisfied they work.
I definitely manage more Ubuntu and CentOS boxes than Arch though.
EDIT: a word
I love arch on personal machines. But I would never run it on a production server. It is great to never have to worry about out dated packages but there is also the issue of packages that are either too new or break something on reboot.
Just the other day I updated the LVM package and followed the steps that were specified in the RSS feed. The problem was that mkinitcpio was updated and regenerated prior to the lvm package upgrading. After I rebooted, grub loaded the ramdisk but it did not work so I had to boot a recovery image and re-build it.
This is not to say that Arch is unstable - it just requires that you pay a lot more attention to what is going on.
If you want really solid stability, Debian or RHEL/Scientific/CentOS really are some of the best options. If you want something that is still pretty stable but updated relatively frequently, then Ubuntu Server or possibly Fedora Minimal are good choices. With Arch Linux you don't have the liberty of having a stable snapshot release out of the box. If you want that then you need to manage your own repos and keep up to date on all of the packages.
I use Arch on all my workstations and never had any problems with an OS or any of the critical software. Even the transition to systemd was easy and with almost zero downtime.
I considered Arch for production servers, but other guys convinced me to use CentOS and I kinda regret this decision. In order to install more or less modern software like node, nginx, latest opencv, latest tomcats on CentOS you have to use either 3-rd party repos, or install packages manually from upstream, which kills all the purpose of CentOS basically.
OSS development is so rapid and huge this days, the "stable" distro maintainers just can't keep up with it, - software in their repos outdated ages ago and the virtual label "stable" on it doesn't help much anymore. Next time I will use more actual distro, - maybe even Arch with LTS kernel and few security improvements like SELinux.
I use it on my personal computer, I thought it would be trickier to run than it really is, I would probably run Arch on a work computer (not on a server though, I wouldn't want to take care of all the updates on a server).
Two pieces of advice:
run it on BTRFS and do snapshots, if something goes wrong you can always revert to a previous snapshot with minimum amount of time lost.
just in case BTRFS is too "experimental" have some regular backups.
This way you can't really lose data and you'll be back up and running in minutes no matter what happens during updates.
Wouldn't dream of it.
I use it for my daily laptop for university, so it needs to remain stable. I don't do sysupdates very often any more, mainly because I've bricked it twice doing that blindly. Always make sure you have at least 2 days free before you Syu.
I use Arch on my laptop, and it’s the only computer I have access to, so it does need to be dependably stable. That being said, I’ve never had any issues with stability. I update roughly once a week, less so for AUR packages, and have a local-packages ignored group in pacman.conf so I can keep up-to-date ABS versions (typically with extra features enabled or disabled). Even my catalyst driver is stable; I have to be a few versions behind because newer ones don’t allow me to adjust screen brightness. I’d switch to the open-source drivers if they worked for my cards, but I’ve never had much success with them.
Given my successes with Arch over the last three years, I’d definitely use it on production machines, though I realise administrating a production environment is completely different to administrating a personal laptop.
I run Arch just about everywhere. I have about there VPS servers with it, and several websites. Everything I do is fairly custom. In general, I trust no distributions, but Arch in particular is a bit more bleeding-edgey, and the package sanity has gone down hill.
That being said, my operation isn't too important on uptime and if it was, I'd probably do the same thing and just test it a bit more in a pre-production environment.
I have had a couple of nerve wracking breakages, but I currently use it as one of my work computers at uni (and also to carry around with me). What I have found is that as long as you update regularly and follow all the updates on the arch wiki, you should be fine ! But generally, be prepared to sweat !