I am aware of the expected reasons that du and df will report differences, however I cannot imagine these would justify the discrepancy I am seeing:
[root@example.com mynfsmount]# df -h /opt/mynfsmount
Filesystem Size Used Avail Use% Mounted on
192.168.0.92:/data/export/examplecom
3.0T 2.7T 391G 88% /opt/mynfsmount
[root@example.com mynfsmount]# du -sh /opt/mynfsmount
13G /opt/mynfsmount
i.e. df is reporting ~300 times the usage du reports.
It may be significant that the NFS server is a Synology box, the host is Centos 5.11 (erk!) and there is no lost+found directory in /opt/mynfsmount. This is a system I have inherited and there is little information available about how much data is expected to be there.
Currently lsof only reports a single deleted file still open.
Any suggestions of what I try next?
du
ordf
on the NFS server? – muru Jun 27 '19 at 09:55