Solved

Linux Filesystem ext3 usage reach 100%. The space would not free up after remove some files.

Posted on 2014-01-01
5
957 Views
Last Modified: 2014-01-21
The filesystem is ext3 and 12G. When it reached 100% today, I removed three 300M files.But df -h ./ still shows the usage is 100%. After I removed one 2G file, the df -h ./ shows normal.
This problem is not related with process. I did not find any process which used these files.
df  command should read the superblock to calculate the filesystem usage. Looks like the superblock would not be refreshed after I removed three 300M files. Remove file means that the entry for this file will be deleted from the inode of the directory. The inode for this file is still there. The filesystem should notice this. I don't get why.  Is there a way to correct this ?Thanks.
0
Comment
Question by:c11v11
5 Comments
 
LVL 29

Expert Comment

by:fosiul01
ID: 39750107
you could of try df with sync option to see if that shows the right amount

i would not worry about that. also it could be, it took bit time to flushed the buffer hence it was not showing the right amount. also you can try to check health of the hard rive.
0
 
LVL 62

Expert Comment

by:gheist
ID: 39750399
Space is not freed if you delete open files.
0
 

Author Comment

by:c11v11
ID: 39750455
it is not open file for my case.  when i run rm. file,  the command return success quickly.  looks like it didnt do anything. although the file is removed, the space is not free.
0
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 39750530
try lsof +L1, that should show deleted but open files (by you, coworker or a faulty script)
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39784930
Agree with gheist... #lsof can show you correct status
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question