From owner-freebsd-questions@FreeBSD.ORG Mon Jan 24 13:16:31 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B408C16A4CE for ; Mon, 24 Jan 2005 13:16:31 +0000 (GMT) Received: from dexter.starfire.mn.org (starfire.skypoint.net [66.93.17.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5BA343D31 for ; Mon, 24 Jan 2005 13:16:30 +0000 (GMT) (envelope-from john@dexter.starfire.mn.org) Received: (from john@localhost) by dexter.starfire.mn.org (8.11.3/8.11.3) id j0ODGS003691; Mon, 24 Jan 2005 07:16:28 -0600 (CST) (envelope-from john) Date: Mon, 24 Jan 2005 07:16:28 -0600 From: John To: heccj Message-ID: <20050124071628.B3660@starfire.mn.org> References: <41F4CD7F.6050308@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <41F4CD7F.6050308@gmail.com>; from heccjj@gmail.com on Mon, Jan 24, 2005 at 06:27:11PM +0800 cc: freebsd-questions@freebsd.org Subject: Re: /var is lack of space!! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 13:16:31 -0000 On Mon, Jan 24, 2005 at 06:27:11PM +0800, heccj wrote: > > My box has Apahce,PureFtp,MySql services, it's hardware:128M memory, > i386 FSB 800Mhz,18G SCSI disk,FreeBSD 5.3.It's slice: > / 256M > /swap 256M > /tmp 256M > /var 300M > /usr others > After installation,the useage is about 20%.But after few days, > it increases 50%,so i moved the http and ftp logs,mysql data to another > slice,but after several days it increases to 70%,now almost 90%.Perhaps > my box will crash serveral days.I checked the /var/log,it only use about > 20M,/var/tmp only 100k.So who and where used the space?How should I do? > > thanks every one,itis the first time i use freebsd's mailist. This is a good way to find out "where" the storage is being used: cd /var ; du -s * | sort -nr | more That will give you a list, sorted from most storage to least, of each directory (or file) at the /var level. You can then choose to descend into one of those, and run the command again, to drill deeper. This is slightly manual, but I find it helpful to stop and think at each level what it is telling me and what it means. -- John Lind john@starfire.MN.ORG