Андрей Василишин wrote: > Usually df -h and du -hs shows the same used space. But now I have a > problem. I am using two SSD for a cache. Script all time writes and deletes > files. > > df -H > /dev/sdc1 237G 178G 47G 80% /megastorage1 > /dev/sdb1 237G 177G 48G 79% /megastorage2 > > du -hs /megastorage1 > 24G /megastorage1 > > du -hs /megastorage2 > 23G /megastorage2 > > > mount | grep megastorage > /dev/sdc1 on /megastorage1 type ext4 (rw,noatime,data=ordered) > /dev/sdb1 on /megastorage2 type ext4 (rw,noatime,data=ordered)
I don't see a problem in the above. That df and du displays different information is an FAQ. Does this reference help you? https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#df-and-du-report-different-information That FAQ doesn't consider hardlinks. I suppose it should be updated to mention the difference there too. Bob