`df -h` says `/` is 100% full, but `du -sh /*` only adds up to 30% of the disk.
BeginnerTroubleshootingDisk, memory and CPU
Answer
Likely causes → A process still holds a deleted file open. Someone ran rm on a huge log, but the process keeps writing to the file handle, so the blocks are not freed until the process closes it.
Diagnose →
sudo lsof +L1 | sort -k7 -nr | head
# or
sudo find /proc/*/fd -ls 2>/dev/null | grep '(deleted)'
Fix → Restart or reload the process holding the file (systemctl reload nginx), or truncate it through its file descriptor without restarting: : > /proc/<pid>/fd/<fd>.
Prevent → Rotate logs with logrotate and a proper postrotate signal (or copytruncate for apps that can't reopen files), and never rm an active log; truncate it instead.
More on Disk, memory and CPU
The app fails to write with "No space left on device", but `df -h` shows the volume is only 40% used.BeginnerA server shows load average 40 on 8 cores, but `top` shows CPU 60% idle and the app is crawling.BeginnerPods are being evicted with "The node was low on resource: ephemeral-storage. Container app was using 18Gi, which exceeds its request of 0."IntermediateCI build agents running Docker fail with "no space left on device" while pulling images; `/var/lib/docker` is 95% full.IntermediatePostgres on a VM died overnight; `dmesg` shows "Out of memory: Killed process 2314 (postgres) total-vm:..., anon-rss:...".IntermediateA Java pod keeps getting OOMKilled at its 2Gi limit, even though `-Xmx2g` is set and the heap graph never reaches 2 GB.Intermediate