• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1036
  • Last Modified:

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

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
c11v11
Asked:
c11v11
1 Solution
 
fosiul01Commented:
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
 
gheistCommented:
Space is not freed if you delete open files.
0
 
c11v11Author Commented:
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
 
gheistCommented:
try lsof +L1, that should show deleted but open files (by you, coworker or a faulty script)
0
 
SandyCommented:
Agree with gheist... #lsof can show you correct status
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now