I am experiencing a very weird behaviour of my backup drive that I can neither explain nor get fixed.
I have an external drive mounted via NFS. I regularly call rsync
jobs that backup files from my server to that drive. In order to save space, I am only copying new/changed files and hard link the others to the previous backup.
My problem is: After two backups my 100G drive is full (according to df
). However, a du -hs
tells me that the first backup takes about 15G of space while the second only takes 45M (because of the hard links).
This is what I checked so far:
I unmounted and mounted the drive, but the problem remained.
I checked
lsof
andlsof +L1
but it didn't show any deleted files that were still lingering around. Unmounting should have taken care of that anyway.
Edit: I also checked, but forgot to mention
The number of available inodes: I have enough.
Whether something was in the directory before it got mounted: The directory is empty.
Does anybody have an idea what else I could check or what the problem could be? Any help is greatly appreciated.