My linux server reports high disk space usage for device /dev/sda4 mounted on / as shown below:
[root@stormtrooper03 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda4 126G 114G 5.5G 96% /
tmpfs 32G 0 32G 0% /dev/shm
/dev/sda2 239M 118M 109M 53% /boot
/dev/sda1 150M 264K 150M 1% /boot/efi
/dev/sda5 63G 52M 60G 1% /home
/dev/sda6 63G 54M 60G 1% /tmp
/dev/sda7 63G 2.6G 58G 5% /usr
/dev/sda3 539G 11G 501G 3% /var
/dev/sdb1 917G 857G 51G 95% /data/1
/dev/sdc1 917G 861G 47G 95% /data/2
/dev/sdd1 917G 282G 627G 31% /data/3
/dev/sde1 917G 861G 47G 95% /data/4
/dev/sdf1 917G 858G 50G 95% /data/5
However, I know there is much less than this amount used by running du -sh /*
as shown below. I need to clean files setting on this device but I can't find them!!
[root@stormtrooper03 /]# du -sh /*
6.7M /bin
116M /boot
3.7T /data
356K /dev
30M /etc
172K /home
638M /lib
20M /lib64
16K /lost+found
4.0K /media
4.0K /mnt
3.8G /opt
0 /proc
42M /root
9.2M /sbin
4.0K /selinux
4.0K /srv
0 /sys
2.1M /tmp
2.5G /usr
11G /var
Update
I have found reason for this: a new disk was mounted on /data/3
which had 110GB of data and became hidden from the filesystem after mounting a disk on it.
The answer to the question why does mount happen over an existing directory explains how to uncover original data using mount --bind
but it doesn't explain how to find if your system has such "shadowed" directories if you don't know ahead of time.
Is there a quick way to a list of disks mounted on non-empty directories without checking each one individually by mount --bind
?
df
reports 114G usage – Majid Alfifi Feb 18 '17 at 02:21