View previous topic :: View next topic |
Author |
Message |
speak_see_hear Apprentice
Joined: 12 Feb 2003 Posts: 168 Location: New Jersey
|
Posted: Sun Oct 17, 2004 3:36 pm Post subject: /var keeps filling up |
|
|
I reinstalled Gentoo yesterday, I have a 9G /var partition. I installed, apache2, php, python, perl, ruby, mysql, postgre, webmin. and then I get notice that my /var partition is full. How on earth did 8 programs take up 9.0 gig? What am I doing wrong. This happened before and I went and put a larger hard drive in the box thinking that would solve it, but alas it hasn't. Please help.
Thanks |
|
Back to top |
|
|
SerfurJ l33t
Joined: 10 Apr 2004 Posts: 824 Location: Texas
|
Posted: Sun Oct 17, 2004 4:12 pm Post subject: |
|
|
everything in /var/tmp/portage/* can be deleted. use this command to see what's using up space:
du --max-depth=1 /var| sort -n |
|
Back to top |
|
|
labrador Guru
Joined: 04 Oct 2003 Posts: 316
|
Posted: Mon Oct 18, 2004 1:02 am Post subject: 8 programs, or the data with 8 programs? |
|
|
There is lots of application data stored under /var so
you should look at what is happening on the system rather
than buying more disks.
Print spooling is storied under /var, as well as database files, as
well as email, and web page space, and logs, portage
dist files, etc.
Start at /var, and as root user drill down through the biggest
disk consumers you find. This command was mentioned in the
Linux Server Hacks book by O'Reilly:
If you add an 'h' flag in there, the size summary
comes up in a human readable format. cd to the largest
disk consumers, and repeat the du cks * again to see
what folder from there is eating up disk space.
Eventually you will have a specific folder or several
that consume the disk space. At that point either you will
go "ah ha!" or you can come back here with more specific
info on what folders were overloaded. |
|
Back to top |
|
|
|
|
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
|
|