Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Feb 2001 11:59:56 +0100
From:      Christoph Sold <so@server.i-clue.de>
To:        Rob <rob@robhulme.com>
Cc:        "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: /var full
Message-ID:  <3A7A932C.3D434684@i-clue.de>
References:  <LPBBLIHFHEKDFLJEBFJGOEHACGAA.rob@robhulme.com>

next in thread | previous in thread | raw e-mail | index | archive | help


Rob schrieb:
> 
> Hi,
> 
> I'm fairly new to BSD - I recently got this in my daily report:
> 
> > pid 5099 (mail.local), uid 0 on /var: file system full
> 
> [snip]
> 
> I went in and deleted all the mail I had in my mail box and I was left with
> this:
> 
> www# df -k
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/ad0s1a     49583    30925    14692    68%    /
> /dev/ad0s1f  28526055  3832007 22411964    15%    /usr
> /dev/ad0s1e     19815    16321     1909    90%    /var
> procfs              4        4        0   100%    /proc
> 
> Can I resize /var, or what solution do I need to use to get more space?

First look which directory in there eats your var space:

# cd /var
# du -k . | sort -n
[lots of output deleted]
17568   ./db/mysql
23823   ./db
24027   ./log
50112   .

Ummm, there's a lot of logs today... clean up there. Remember: log files
are open, just rm'ing them does not help:
  cat /dev/null > big.logfile
makes them empty again.

N.B: Never, ever, clean up /var/db/pkg: this is where FreeBSD manages
information about installed packages.

HTH
-Christoph Sold


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A7A932C.3D434684>