I have file servers which are used to store files. Files might reside there for a week, or for a year. Unfortunately, when I remove files from the server, df
command doesn't reflect the freed up space. So eventually, the server gets filled up (df
shows 99%), and my script doesn't send any more files there, except there might be a few dozen GB of free space on there.
I got noatime
flag on the mounted partitions if that makes any difference.
Answer
Deleting the filename doesn't actually delete the file. Some other process is holding the file open, causing it to not be deleted; restart or kill that process to release the file.
Use
lsof +L1
to find out which process is using a deleted (unlinked) file.
No comments:
Post a Comment