`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.

All Real-World Interview questions Roadmap: Interview readiness

More on Disk, memory and CPU