/usr is growing and growing

Bill Moran wmoran at potentialtech.com
Tue Oct 5 08:09:22 PDT 2004


bill <william at TechServSys.com> wrote:

> uname -a:
> 
> FreeBSD serve.TechServSys.com 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Wed Aug 14 21:23:26 GMT 2002     murray at builder.freebsdmall.com:/usr/src/sys/compile/GENERIC  i386
> 
> This box is a web server only.  The web files are on their own filesystem
> which is at 8% utilization.
> 
> I have watched the /usr file system grow from about 69% utilization to
> 85% utilization over 2 years and can not figure out what is taking the
> space.  Doing a find . -mtime -2 -print yields no files modified.
> A find . -size +2000 -print yields only expected files.
> 
> Would someone be kind enough to give me suggestions as to what is using
> up the space and/or how to find out ?

[Please wrap you lines around 72 chars:
 see http://www.lemis.com/questions.html ]

I don't have a guess as to the specific problem.  I assume you've checked
to see where your web server is logging to, and ensured that you're
managing it.

When I have problems like this, I start with:
du -hd1 /usr

Then I look at directory sizes, and possibly narrow it down more:
du -hd1 /usr/local

... etc. ... until I've located the large files on the filesystem. I
can then usually determine what is causing those large files.

If I had to make a guess ... I would suspect that something is logging
to /usr somewhere, without you realizing it.  But I can only guess.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com


More information about the freebsd-questions mailing list