My system is CentOS 6 x86_64 with root partition formatted as ext4.
df
reports around 3Gb as used space:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md1 20158260 3433724 15700540 18% /
but du -sm -x /
claims less than a single Gb is used actually:
[root@xxxx ~]# du -sm -x /
948 /
I wonder what is going on here. Usage numbers changed right after reboot. The filesystem claims it's clean, no errors in logs. I found this, but it did not explain a root of the problem. Should I just reformat the partition? Is there any way to track down this extra usage?
I also did the following to check that I don't have any data hidden from du
by mounts on top of non-empty mountpoints:
[root@xxxx ~]# mount -o bind / /mnt/root
[root@xxxx ~]# du -sm /mnt/root/
949 /mnt/root/
[root@xxxx ~]#
No, that's not my case.