Linux `df -h` Shows 100% Full While `du -sh` Shows Plenty of Free Space

A running daemon still holds an open file descriptor to a huge deleted log file.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Linux `df -h` Shows 100% Full While `du -sh` Shows Plenty of Free Space Platform: Linux
Common Root Causes:
  • A running daemon still holds an open file descriptor to a huge deleted log file.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Reload/restart the holding daemon (e.g. `nginx -s reopen` or `logrotate copytruncate`) to release the inode.
Safe Diagnostic Command:
sudo lsof +L1
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

A running daemon still holds an open file descriptor to a huge deleted log file. Recommended diagnostic: `sudo lsof +L1`. Remediation: Reload/restart the holding daemon (e.g. `nginx -s reopen` or `logrotate copytruncate`) to release the inode.

Worked Examples

  • Run `sudo lsof +L1` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-linux-df-vs-du-deleted-open-file · Independently verified: 2026-11-25

Related Resources