LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 03-03-2013, 05:01 AM   #1
farazinux
LQ Newbie
 
Registered: Dec 2012
Posts: 23

Rep: Reputation: Disabled
problem with ext4 filesystem


Hi,

When a partition with ext4 filesystem, was filled, and I clean some unnecessary files manually, " df -h " command doesn't show free space and it needs to reboot! why? how fix?

Thanks :-)
 
Old 03-03-2013, 06:12 AM   #2
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,270

Rep: Reputation: 99
Quote:
Originally Posted by farazinux View Post
Hi,

When a partition with ext4 filesystem, was filled, and I clean some unnecessary files manually, " df -h " command doesn't show free space and it needs to reboot! why? how fix?

Thanks :-)
I never faced this issue. Please let us know the OS and its version.
 
Old 03-03-2013, 06:18 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by farazinux View Post
When a partition with ext4 filesystem, was filled, and I clean some unnecessary files manually, " df -h " command doesn't show free space
You might have deleted a file (or files) that was still in use by a running program. If that is the case then the file seems gone (not present in ls output) but the space it takes isn't freed up yet.

The space is freed once you stop or restart the program or, as you have noticed, reboot (which is in essence a restart).
 
Old 03-03-2013, 06:57 AM   #4
farazinux
LQ Newbie
 
Registered: Dec 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Restart service or program doesn't solve this problem. Some files which was deleted, is log of services!

OS : Ubuntu server 12.04 - 64 bit

Last edited by farazinux; 03-03-2013 at 07:02 AM.
 
Old 03-03-2013, 07:37 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by farazinux View Post
Restart service or program doesn't solve this problem. Some files which was deleted, is log of services!
The main problem is removing a file that is being used (kept open) by a program, which you shouldn't do.

You can do one of two things when you want to remove open file(s):
- stop the program, remove file and then start the program again,
- don't remove the file, but make it empty (> name.of.file instead of rm name.of.file).

I also noticed that restarting a service after removing an open file doesn't always free up the space. A reboot is the only thing you can do to solve that.
 
Old 03-03-2013, 08:57 AM   #6
farazinux
LQ Newbie
 
Registered: Dec 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
I think "stop service, make it empty and start service" is a good solution.
I use making empty for deleting log files always
Thanks.
I check it and notify the result.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Space missing from ext4 filesystem Ubuntu 10.10 Intiakel Linux - Software 2 12-27-2010 12:19 AM
Will Debian 6 stable have ext4 filesystem? Mr. Alex Debian 10 12-14-2010 08:42 PM
support for ext4 filesystem info1686 Programming 2 07-01-2009 12:49 AM
LXer: The Ext4 Filesystem LXer Syndicated Linux News 1 12-25-2008 03:58 PM
LXer: Linux: ext4 Filesystem LXer Syndicated Linux News 0 06-30-2006 12:33 PM


All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration