Partition could appear to be full even after removing all large filesThere is no free space on the disk partition, even though all large files were removed. In all examples in this article we suppose that the /var partition appears to be full.
- Running the df -h command shows the /var partition to be 100% full
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/d1vg-lv1 2.0G 2.0G 2.0G 100% /var
- Running du -sh */ command in the /var directory does not show the space being used.
- No large file could be found when running ls -l command
This issue may occur if an active process is using a deleted file. Such a file in use is blocked by the process and occupies disk space even if it appears to be deleted.
Use the lsof command to determine if some process is using the deleted files and then stop that process: