From owner-freebsd-questions@FreeBSD.ORG Fri Dec 21 16:12:22 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDB7316A41A for ; Fri, 21 Dec 2007 16:12:22 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 5AC5813C4CC for ; Fri, 21 Dec 2007 16:12:22 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id lBLGBQfS054917; Fri, 21 Dec 2007 11:11:26 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id lBLGBQe0054916; Fri, 21 Dec 2007 11:11:26 -0500 (EST) (envelope-from jerrymc) Date: Fri, 21 Dec 2007 11:11:26 -0500 From: Jerry McAllister To: zbigniew szalbot Message-ID: <20071221161126.GG54667@gizmo.acns.msu.edu> References: <476B587D.9060000@szalbot.homedns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <476B587D.9060000@szalbot.homedns.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: /var growing too fast X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Dec 2007 16:12:22 -0000 On Fri, Dec 21, 2007 at 07:09:01AM +0100, zbigniew szalbot wrote: > Hello, > > I thought I would ask your advice. I only have a 2 GB /var slice and > space is shrinking fast. I see that most space is taken by /var/db. > > $ du -hs /var/db > 1.4G /var/db > > $ du -hs /var > 1.7G /var > > $ df > /dev/ad0s1e 2178510 1738396 265834 87% /var > > Is it possible to release some space from /var/db? I seem to recall that > /var/db is pretty important and I better not lose it... Yes, if you are running some database, it can grow fast. Do you have a large, catch-all, partition, such as /home? If go, move /var/db to and make a symlink. You should be able to copy it all with tar. Pick a make-sense name for the directory in the new directory such as 'var.db' Then, in the original /var directory, rename db temporarily - mv db olddb for example and make the link. ln -s /home/var.db db (presuming that you put it in /home) If it all seems good, then rm the olddb and all should be well. ////jerry > > It may be that something else is eating up available space but I am not > sure how to measure it. Every day about 1% more of available space is taken. > > Many thanks for ideas what to do (apart from bying a bigger drive :) > > And season greetings to you all! > > Zbigniew Szalbot > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"