LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-02-2013, 02:11 PM   #1
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 286

Rep: Reputation: 3
Disk Full


I am using Ubuntu 11.10 and my disk usage analyzer says that 441.4 GB out of an available 467.9 GB is being used. But the room directory only shows 18.4 GB with 100% usage. Typing df at the / directory shows

Quote:
/dev/sda6 456890664 433681912 0 100% /
There was a huge file, /var/log/apache2/error.log which which may have been close to 400 GB and I deleted it and emptied the recycle bin. But I still have 433681912 kb of disk space in use.

I typed

Code:
sudo find / -type f -size +1000000k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'
but all I got back was

Quote:
/proc/kcore: 1020M
I would be most grateful for any assistance.
Peter.

Last edited by OtagoHarbour; 02-02-2013 at 02:23 PM.
 
Old 02-02-2013, 02:42 PM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,143

Rep: Reputation: 133Reputation: 133
there are no files but disk space is still used? same problem here on my mint/ubuntu install. Have tried rebootin? that solves problem here.
 
1 members found this post helpful.
Old 02-02-2013, 05:52 PM   #3
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 286

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by yooy View Post
there are no files but disk space is still used? same problem here on my mint/ubuntu install. Have tried rebootin? that solves problem here.
That fixed the problem. Thanks very much! The disk usage went from close to 100% to 8%. I wonder if there is a way to fix the problem w/o rebooting.

Thanks again,
Peter.

Last edited by OtagoHarbour; 02-02-2013 at 06:08 PM.
 
Old 02-02-2013, 08:35 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 11,544

Rep: Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405
I was wondering that too.
 
Old 02-03-2013, 09:16 AM   #5
sangfroid
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
Yupes there is way...

Actually, your apache server was holding that file even though you deleted it. That is why, you were seeing 100%usage still after deletion. If you had restarted ONLY apache process, you would have observed same results as if you had rebooted

Also, to avoid such issue in future, I will recommend you to rotate logs and zip them.
 
2 members found this post helpful.
Old 02-03-2013, 09:20 AM   #6
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,839

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
The problem is even though you deleted the file, the reference to it was kept open because apache was still writing to it. Rebooting the computer obviously frees up that reference to give you the space, but you probably could have just restarted Apache and accomplished the same thing.

Edit: too slow...
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk full KennyV Suse/Novell 4 07-12-2011 07:15 AM
/ disk full jenser2 Linux - Newbie 7 03-19-2009 09:05 AM
Disk full - what do I do now? rwhitworth Suse/Novell 8 10-21-2007 01:19 AM
Disk full... cactusface Linux - Newbie 5 08-02-2007 03:48 PM
disk stats not updating after deletion of file.. disk full joecool118 Linux - General 2 04-10-2006 12:23 PM


All times are GMT -5. The time now is 01:12 AM.

Main Menu
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