View previous topic :: View next topic |
Author |
Message |
tecknojunky Veteran
Joined: 19 Oct 2002 Posts: 1937 Location: Montréal
|
Posted: Wed Nov 24, 2004 11:08 am Post subject: FS full: where's the beef? |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Wed Nov 24, 2004 3:11 pm Post subject: |
|
|
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
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 |
|
|
kd03 n00b
Joined: 21 Nov 2004 Posts: 69
|
Posted: Wed Nov 24, 2004 7:25 pm Post subject: |
|
|
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 |
|
|
|