Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FS full: where's the beef?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Wed Nov 24, 2004 11:08 am    Post subject: FS full: where's the beef? Reply with quote

After a failed compile, I was surprised to find it was due to a full file system.

My root file system on a 10 GB partition with no X and all the GIU gear. I had a X system runned on a 10 GB drive(!) for more than a year without size problems.

It was the recently installed Nagios that was logging the same error every second or so and filled the drive (maybe it should do something like "message repeated n times", à la Metalog).

I made some clean up, but I can't interpret this discrepancy in size reporting:

If I ask the sizes with df:
Code:
# df | sed '1,2!d'
Sys. de fich.        1K-blocs       Occupé     Disponible Capacité Monté sur
/dev/hda3            9288684        6349576    2939108    69%      /
(or, 6349576 used).

If I ask the sizes with du:
Code:
# cd /; du -s
3370810 .
Almost half of the size!!!

Who can explain the difference?
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Nov 24, 2004 3:11 pm    Post subject: Reply with quote

Check block size, inode counts and reserved space; man tune2fs and man df for how.

It may be that the block sizes used by the two utils are different; in fact, it almost seems that way.

Run
Code:
du -chs /*

instead, to get totals for each directory; then repeat down the tree as needed to see where the space really goes.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
kd03
n00b
n00b


Joined: 21 Nov 2004
Posts: 69

PostPosted: Wed Nov 24, 2004 7:25 pm    Post subject: Reply with quote

Another reason for such discrepency is that some process might have opened the files that you deleted. So unless those processes exit, the disk-space wont be reclaimed. Try to see if any such process is running (e.g. the program that generated the logfile) and kill it.

-k
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum