Using df -Th
show /
folder usage 100%:
[root@gridtb007 ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 60G 58G 0 100% /
tmpfs tmpfs 24G 0 24G 0% /dev/shm
/dev/sda1 ext4 1008M 62M 896M 7% /boot
/dev/sda6 ext4 183G 188M 173G 1% /scratch
/dev/sda5 ext4 9.7G 150M 9.0G 2% /var/cache/openafs
/dev/sdb1 ext4 917G 526G 346G 61% /data
AFS afs 8.6G 0 8.6G 0% /afs
Then, I delete in /root
dir, however, df -TH
still show /
folder usage 100%. and I use lsof | grep delete
show the lock process, and I Kill all the showd process, now lsof | grep delete
show nothing, however, df -TH
still show /
folder usage 100%. Then I reboot the server, df -TH
still show /
folder usage 100%. So I don't know how to handle it.
df -Th /root
shows this:
[root@gridtb007 ~]# df -Th /root
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 60G 58G 0 100% /
df -Th /root
tell you?Use%
is the non-reserved part. That means that at 57GB used and beyond, your FS will be shown as 100% full even though you (as root but not as a user) can write another 3GB to it. This also means that if 60GB is used and 3GB is deleted, it'll remain unchanged at 100% (but Used will go down).find / -xdev -size +1000000 -ls
to find all large files (>512MiB) on that filesystem. If you have questions about which files can safely be removed, the folks over on unix.stackexchange.com can help..