Solved

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

Posted on 2014-01-01
5
951 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 61

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 61

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now