All jobs / DevOps / SRE / cloud / Linux

DevOps / SRE / cloud interview question · 3–5 years

`df -h` says the root volume is 100% full. `du -sh /` adds up to less than half of that.

What is going on, and what do you do?

The strongest answer

A deleted file is still held open — usually a rotated log — so its space is not freed; `lsof +L1` finds the holder, then reopen or truncate via /proc/PID/fd. Also check `df -i` for inodes

Why it works

Exactly — unlinked-but-open files are the classic df/du gap. Find the holder, release it properly, and fix the log rotation so it does not recur.

What a good answer covers

Answers that fall short

Who gets asked this

More Linux questions