Subject: Re: need room on /
To: James K. Lowden <jklowden@schemamania.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 02/07/2003 23:05:23
On Thu, Feb 06, 2003 at 06:27:56PM -0500, James K. Lowden wrote:
> Hello, 
> 
> My disk is shrinking.  
> 
> The last few days, I've had (small) trouble with my box because the root
> partitition is full.  In desperation, I moved all of /var/db to /usr, and
> made a symlink to it.  That barely got my head out the water.  
> 
> Time was, I'd get this problem and have to truncate my apache logs.  Now,
> I'm down to ... not much, really.  I don't know where to make room, what
> to move.  AFAICT, my root partition is something like 95% binaries.  And
> that's the weird part: the system has been more or less happy since 1999. 
> 
> 
> What would you do?
> 
> $ df -k;  pwd; ls  |grep -Ev 'usr|mnt' |xargs sudo du -xskc |sort -rn 
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/wd0a       84327    78768     1342    98%    /
> /dev/wd0e     9319453  5742359  3111121    64%    /usr
> /dev/wd0f     9904956  1605674  7804034    17%    /usr/local/play
> kernfs              1        1        0   100%    /kern
> /dev/wd1e     9319453  5745232  3108248    64%    /mnt
> /
> 14660   total

There's a problem here, the du total doesn't match at all the size on your 
disk. I guess you have some deleted files which are still open (try to restart
syslog, apache, and whatever else could have a log file open).

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--