-2

df -h in my redhat 7 is reporting its taking 61G of space. This should be wrong because there shouldn't be anything there which is this big. Other server with the same configuration reports only 11G.

Output of df -h:

Output of du -sh /*

Maximum space is consumed by /var and thats only 11g. I checked all the files and directories inside /var but couldn't find anything big.

Please Advise,

1 Answers1

0

Deleted files that are used by processes are not deleted from the filesystem until they are released. (this is a feature in Linux)

Check

# lsof|grep "(deleted)"

Kill the process using some large files (log files?) to free the disk space. (of course you have to face the consequencies)

If you tried reboot then this is not the case for sure.

+1: If you use filesystem (for example btrfs, zfs) there might be snapshots using space but not mounted.

  • I have rebooted this server many times but no luck. I do see some deleted files with lsof like these: sssd 700 root 16r REG 253,1 10406312 68417395 /var/lib/sss/mc/initgroups (deleted) – Leo King Sep 26 '17 at 19:35