This scheme is used to avoid the Microsoft Windows type issues where it won't let you delete a file because some unspecified program still has it open.
An easy way to observe this is to do the following Until the background process is terminated the file space used by /tmp/cat-test will remain allocated and unavailable as reported by df(1) but the du(1) command will not be able to account for it as it no longer has a filename.
I tried by giving sync, and even remounted that by giving foll command mount -o remount /usr Still , Its showing the old status, but When I check using `du -sh` , it shows the right status, Why `df -k` is not giving the right status But Is their any command,to update so.
We have a web server which has 0 disk usage on some partitions because of the webserver logs.
When I delete some of the log files with rm command to free up disk space, nothing changed on output of the df command.
In this troubleshooting guide, I will walk you through steps which will help you to reclaim space on disk after deleting files.
Here we will learn how to remove deleted open files in Linux.
After a test run, I delete the files (sometimes without having imported into the database).
I notice that there is a steady decrease in the amount of free space on my disk (as reported by ).This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant.They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.EDIT: You might want to either vacuum and reindex the database, or dump and restore.In BSD a directory entry is simply one of many references to the underlying file data (called an inode).Most of the time files are deleted manually but processes using those files are keep them open and hence space is not reclaimed.