From owner-freebsd-questions Fri Feb 2 2:58:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 0138D37B401 for ; Fri, 2 Feb 2001 02:58:32 -0800 (PST) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id NAA25611; Fri, 2 Feb 2001 13:06:15 +0100 Message-ID: <3A7A932C.3D434684@i-clue.de> Date: Fri, 02 Feb 2001 11:59:56 +0100 From: Christoph Sold Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: Rob Cc: "freebsd-questions@FreeBSD. ORG" Subject: Re: /var full References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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