A Linux server's disk is 100% full and the app is down. Fix it in 10 minutes.
BeginnerHands-onLive debugging tasks
Answer
df -h # which mount
df -i # or inodes exhausted?
sudo du -xh --max-depth=1 /var | sort -rh | head
sudo journalctl --vacuum-size=500M
sudo find /var/log -name '*.gz' -mtime +7 -delete
sudo lsof +L1 # deleted files still held open by a process
docker system df && docker system prune -f
Key trick → If df says full but du doesn't add up, a process is holding a deleted file open (lsof +L1). Truncate it with : > /proc/<pid>/fd/<n> or restart that process.
More on Live debugging tasks
A pod is in CrashLoopBackOff. You have 10 minutes. Walk through your commands.BeginnerThe pod shows `OOMKilled`. Diagnose and fix it.BeginnerA pod is stuck in `ImagePullBackOff`. Fix it.BeginnerA pod is `Pending` forever. What do you check?AdvancedThe Service returns "connection refused" but pods are Running. Debug it.IntermediateA Docker container exits immediately after `docker run -d`. Find out why.Beginner