Christian Lehnert — Linux, Hacking & Faith

tag: #linux

10 posts
2 months ago halt vs shutdown - The Case for the Simpler Command

shutdown is the command operators reach for out of habit when they want to bring a system down. For the common case (a single-user workstation, a headless server, an ad-hoc maintenance window), halt does the same orderly shutdown with less ceremony and a simpler invocation. The reason shutdown won the muscle memory is historical and no longer applies on modern systemd systems.

#linux #freebsd #sysadmin
2 months ago Reboot Last - The Windows Habit That Hurts Linux and FreeBSD Operators

Consumer operating systems trained an entire generation of operators to reach for the reboot button as the first step of any debugging session. On Windows this is occasionally the right answer. On Linux and FreeBSD it is almost always the wrong one, because the reboot destroys the evidence you needed to fix the problem in the first place.

#linux #freebsd
2 months ago adduser vs useradd - The Debian Trap

On Debian and Ubuntu, two commands look like they do the same thing. They do not. adduser is a Perl wrapper from the adduser package. useradd is the raw binary from upstream shadow-utils. The difference catches operators who write portable scripts and expect either name to work the same way on RHEL or Alpine.

#linux #debian #ubuntu #tip-of-the-week
2 months ago Backup at 64 KB/s - When CIFS Stops Being a Backup Protocol

A chunk-store backup that was projected to take ten days for sixty six gigabytes. The protocol was CIFS over rsync. The fix was rclone over SFTP with parallel transfers. The same data, the same network, the same off-site target, moved 280 times faster. The reason is a protocol property that does not show up in any "which backup software" comparison but that decides whether your backup can actually finish before tomorrow.

#linux #backup #sysadmin #networking #homelab
2 months ago systemd boot instead of grub

GRUB has been the default Linux bootloader for two decades. For most of those decades it was the right default. On a modern UEFI system that runs exactly one operating system, it is not. The smaller, simpler, UEFI-native alternative has been mature for years and should be the choice that an engineer makes deliberately rather than the default that lands on the disk because nothing pushed back.

#linux #uefi #boot #systemd
3 months ago A Proxmox Hypervisor Down - Recovery, Postmortem, and the Hardening That Followed

This afternoon the primary Proxmox hypervisor in the homelab refused to boot. Several VMs went offline. Hours of recovery later, every service was back up and no VM data had been lost. This post is the writeup of what failed, what saved the data, and the three hardening layers that have been permanently added so that the next incident in this family does not reach the "blind boot from a serial console" stage.

#proxmox #linux #sysadmin #prometheus #recovery
< newer 2/6 older >