LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 04: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, 05:12 AM   #2
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
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, 05:18 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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, 05: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 06:02 AM.
 
Old 03-03-2013, 06:37 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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, 07: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



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-26-2010 11:19 PM
Will Debian 6 stable have ext4 filesystem? Mr. Alex Debian 10 12-14-2010 07:42 PM
support for ext4 filesystem info1686 Programming 2 06-30-2009 11:49 PM
LXer: The Ext4 Filesystem LXer Syndicated Linux News 1 12-25-2008 02:58 PM
LXer: Linux: ext4 Filesystem LXer Syndicated Linux News 0 06-30-2006 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:09 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
Open Source Consulting | Domain Registration