Solved

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

Posted on 2014-01-01
5
970 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

710 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