The Second Cable Broke the Intranet: Route Isolation on Multi-Homed Linux Hosts and the Trade-offs of Three Approaches

Overview Two NICs in one server — one on the office network, one on a dedicated line — looks like the simplest topology in the world. But the moment you put a gateway on that second NIC as well, or add a default route to “send some traffic over the dedicated line”, the entire egress path can flip without warning: ping works for some destinations and not others, existing connections keep running, and every new connection times out....

November 27, 2026 · 42 mins · 8734 words · Xu Baojin

Four Egress IPs Caved Under 20K Long-Lived Connections: Diagnosing SNAT Port Exhaustion and 5 Production Decisions for Cloud Egress Governance

Overview At 01:47 the payment channel’s callbacks started failing. Not a full outage — intermittent: seven or eight out of ten succeeded, the remaining two or three timed out on connect. Egress QPS on the application was flat, node CPU, memory and bandwidth were all normal, ss on the hosts showed only a few hundred TIME_WAIT sockets, and ephemeral port usage was sparse. The on-call engineer’s first instinct was that the counterparty’s endpoint was flapping....

November 10, 2026 · 39 mins · 8247 words · ABao

Cloud Disk Attach Stuck for 30 Minutes: 6 Engineering Decisions for K8s CSI Storage, from Ghost VolumeAttachments to Self-Healing

Overview It was 2:40 AM when the on-call phone rang. A StatefulSet running the order database was doing a rolling update, and two of its three replicas were stuck in ContainerCreating for twenty minutes straight. kubectl describe pod gave only a vague FailedMount, kubectl get events was spamming FailedAttachVolume, and nobody could say which step it was stuck on. I have run into this failure more than once. And the interesting part is that, every time, the root cause was almost never “the storage broke” — the disk was fine, and the cloud console happily showed the volume as healthy....

November 3, 2026 · 37 mins · 7783 words · Xu Baojin

Disk Space and inode Management: A Complete Troubleshooting Guide from df to lsof

Overview 3 AM, you get paged — the production database can’t write, Nginx won’t start, SSH is sluggish. You log in and df -h shows the root partition at 100%. Every ops engineer has been there. Disk full is one of the most frequent production incidents — based on real-world operations statistics, disk-related alerts account for roughly 15%-20% of all alerts. But the 100% you see in df -h may not be the full picture:...

July 23, 2026 · 19 mins · 3914 words · ABao

DNS Resolution and Troubleshooting: A Practical Guide from resolv.conf to systemd-resolved

Overview It’s 2 AM and alerts are firing. Your service can’t connect to the database, curl times out, but ping to the IP works fine. Is it a network issue or an application issue? Nine times out of ten, it’s DNS resolution gone wrong. DNS resolution is the most fundamental yet most overlooked piece of Linux infrastructure. Nobody thinks about it until it breaks—and when it does, the entire system acts like it suddenly has amnesia: every domain becomes unrecognizable....

July 18, 2026 · 17 mins · 3531 words · ABao

Linux Network Packet Capture and Protocol Analysis: A Practical Troubleshooting Guide from tcpdump to Wireshark

Overview 2 AM. Your phone rings. The order system is timing out across the board — CPU is fine, memory is fine, disk I/O is fine. Restarting services does nothing. Rolling back does nothing. You stare at the dashboard; every metric is green. Only the users are screaming. Nine times out of ten, it is a network-layer problem. And what you need is a pair of eyes that can actually see the packets....

July 14, 2026 · 20 mins · 4177 words · ABao

LLM-Assisted Troubleshooting: From Log Analysis to Root Cause Identification

Overview LLM-Assisted Troubleshooting: From Log Analysis to Root Cause Identification is an essential skill in SRE operations. In production environments, mastering these techniques can significantly improve system stability and operational efficiency. Why LLM-Assisted Troubleshooting Matters As systems grow in scale and complexity, traditional operations approaches struggle to meet the demands of modern distributed systems. LLM-Assisted Troubleshooting helps operations teams: Rapid Problem Resolution: Systematic tools and methods reduce troubleshooting time Improved System Visibility: Establish comprehensive monitoring and observability Proactive Fault Prevention: Identify and fix potential risks before they cause outages Resource Optimization: Allocate and schedule resources efficiently Core Concepts and Principles Basic Concepts The core of LLM-Assisted Troubleshooting lies in establishing standardized processes and automated toolchains....

June 13, 2026 · 3 mins · 566 words · ABao

Kubernetes Pod Troubleshooting Cheatsheet

Troubleshooting Path kubectl get pods → check status kubectl describe pod → check Events kubectl logs → check logs Common Pod States State Meaning Common Cause Pending Not scheduled Insufficient resources, scheduling constraints CrashLoopBackOff Crash loop App error, config issue ImagePullBackOff Image pull failed Image not found, auth failure OOMKilled Out of memory Memory limit too low CrashLoopBackOff Most common issue. Troubleshooting steps: # Check previous crash logs kubectl logs <pod> --previous # Check exit code kubectl get pod <pod> -o jsonpath='{....

May 8, 2024 · 2 mins · 280 words · ABao