Reclaiming Disk Space from Open-but-Deleted Files
A Linux file can disappear from every directory listing and still occupy disk space. This happens when a process already has the file open: rm removes the directory entry, but the inode remains until the last file descriptor is closed. The result is a classic incident where df reports a full filesystem while du cannot find the files consuming it. Knowing how to identify and release those hidden blocks is a useful operational skill.
Why df and du disagree
df asks the filesystem how many blocks are allocated. du walks directory entries and sums the sizes of files it can see. If a file has been unlinked but is still open, du cannot find it, while df still counts its blocks.
1df -h /var