I have a Linux CentOS server, the OS+packages used around 5GB. Then, I transferred 97GB data from a Windows server to two folders on this Linux server, after calculated the disk usage, I see the total size of the two folders is larger than the disk used size.
Run du -sh
on each folder, one use 50GB, the other one use 47GB
But run df -h
, the used space is 96GB. (50GB + 47GB + 5GB) > 96GB
Is there any problem? Those two folders contain lots of files (1 million+). Thanks.
du
anddf
on the copy on your Linux file system, or are you running them on a Windows/Samba mount point? – Mikel Mar 19 '11 at 01:13lsof|grep deleted which showed some very large files open by nginx, so I restarted
service restart nginxand I had a
tail -f` process still open on that file in a tmux terminal, so I stopped that. see https://unix.stackexchange.com/questions/766326/why-does-du-xshc-report-only-35gb-usage-while-my-100gb-disk-is-showing-as-full/766327#766327 – rubo77 Jan 06 '24 at 22:34