Linux and hosts
The layer under the cluster: kernels and patching, memory pressure and OOM, virtualization and node maintenance.
11 posts
- A sleep(3) race, proven with a dose-response testAbout a third of workspace provisioning runs failed with two unrelated-looking errors, and the CI retry made it worse. Both came from one fixed timer racing systemd inside an LXC container. Changing the timer from 3 to 5, 7 and 10 seconds turned a correlation into proof.
- I moved one NVMe to another slot, and GPU passthrough stole another VM's diskAfter a hardware window two VMs on a Proxmox host refused to start. One error looked like a storage fault. The real cause: a VM passed its GPU through by PCI address, the bus got renumbered, and vfio grabbed the NVMe that held the other VM's volume group.
- RabbitMQ in Kubernetes: a memory alarm that can never fire, and a config that never loadsThree quiet defaults of a RabbitMQ Helm chart: the memory watermark is computed from the node, not the container, so the OOM killer always wins; a ConfigMap change does not restart the broker; and the volume is deleted together with its PVC.
- systemd-resolved was disabled, and still took port 53 after the Ubuntu 26.04 upgradeAfter a release upgrade a DNS container could not bind :53 because systemd-resolved was listening there, although it had been disabled for years. On 26.04 resolved also wakes up through its own sockets, and only mask stops that.
- multipathd hijacked a Longhorn volume: "mount point busy" while nothing was mountedA pod sat in Init for five days, 2413 mount retries, and a full power cycle did not help. multipathd had built a map over the Longhorn iSCSI device and held it open.
- The loading screen was a retry loop, not a hang — and the reboot was never neededA game on my Linux workstation froze on its loading screen, and the known fix was a full reboot. Five seconds of /proc counters showed a hot retry loop that a single SIGTERM could end.
- NotReady for six hours, and the node was alive the whole timeEvery signal said the node was dead. It was thrashing on memory, and the obvious fix — delete the node and force-detach the volume — was one command away from corrupting a database.
- "Kernel drift" was uptime drift: patches landed, nothing rebootedThree different kernels across seven nodes looked like unfinished patch waves and sent an investigation down a false trail. Every node had the same patches; only uptime differed.
- Vault kept sealing itself. The cause was a 15-minute VM freeze below the clusterFour Vault seals in three weeks, each treated as a separate incident. A journald gap analysis showed the hypervisor stunning the VM during backups, and Longhorn turning that into a cascade.
- Updating the OS on seven Kubernetes nodes without anyone noticingA rolling Ubuntu point update across a cluster that holds all its own state. The pre-flight checks turned a scary job into a boring one, and Longhorn decided the pace.
- The "disk errors" were an OOM: how Longhorn volumes lost their backendEIO (input/output error), read-only ext4, a corrupted MySQL datadir and a sealed Vault looked like a failing disk. kubectl debug node and host dmesg showed a node-wide OOM: the OOM killer took out the Longhorn instance-manager first.