I encountered the following events on Linux:Please let me know if you know.
df-h command mounts a volume of 50 GB.
When I checked the total size of the directory mounted with the
du-h command, it was 59GB.
Why did the results calculated in du exceed the volume size?
Are these two commands calculated differently?
That's all I can think of.
There is a file that is still open and deleted.
lsof/path/to/mount/point | grep'(deleted)$
There are many files with a large number of extended attributes (including SELinux labels).
There are many files with a large number of ACLs.
The file system is corrupted.
I think there are 1 and 4 in most cases, but I have never seen 2 and 3.
By the way, extended attributes and ACLs are stored in inode if they are small in number and size.(Depends on file system type and inode size.XFS or ext4)
If you are mounting another volume in a subdirectory in the mounting point (=measurement point) directory of a volume, you may expect the result of
du to exceed the result of
For example, the result of
du exceeds the result of
© 2022 OneMinuteCode. All rights reserved.