From owner-freebsd-questions@FreeBSD.ORG Sun Jan 30 00:44:14 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 3014316A4CF for ; Sun, 30 Jan 2005 00:44:14 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2024A43D2D for ; Sun, 30 Jan 2005 00:44:13 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j0U0iBYs016488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 29 Jan 2005 16:44:12 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j0U0iBqE016486; Sat, 29 Jan 2005 16:44:11 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Sat, 29 Jan 2005 16:44:11 -0800 From: "Loren M. Lang" To: "GRF ." Message-ID: <20050130004411.GA16264@alzatex.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C cc: freebsd-questions@freebsd.org Subject: Re: /var Full ? 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: Sun, 30 Jan 2005 00:44:14 -0000 On Sat, Jan 29, 2005 at 05:48:26PM -0500, GRF . wrote: > I am running FBSD 5.2.1 and my /var partition is giving me cannot write > to disk errors, disk is full. I cleared out what I could and got it down > to about 98% but I have some strange findings which I will show below. > [/var]> df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/ad0s1a 248M 55M 173M 24% / > devfs 1.0K 1.0K 0B 100% /dev > /dev/ad0s1e 248M 38K 228M 0% /tmp > /dev/ad0s1f 70G 53G 11G 83% /usr > /dev/ad0s1d 248M 223M 4.5M 98% /var > > #cd /var > # du -hd1 > 2.0K ./account > 6.0K ./at > 16K ./backups > 4.0K ./crash > 390K ./cron > 5.8M ./db > 2.0K ./empty > 2.0K ./heimdal > 508K ./log > 1.9M ./mail > 4.0K ./msgs > 2.0K ./preserve > 40K ./run > 2.0K ./rwho > 66K ./spool > 1.3M ./tmp > 20K ./yp > 2.0K ./games > 1.0M ./ftp > 394K ./usermin > 2.0K ./.snap > 11M . > > Now how can /var be 11Meg and also fill up 98% or 223 Meg at the same time? > What is eating up my partition space? Uptime is 149 days and I suppose I'm > due for a reboot but I have others with processes going on the box and I > hate to reboot. Why are you due for a reboot? I'd at least aim for 200+ days, and then probably more. Files that are deleted in UNIX but still held open by a process will take up all their space still, but not show up in du since they've been deleted from the filesystem. Once the process closes the file or exits the space will be deleted. If you can figure out which process it is, then try killing the process. sysutils/lsof is a great utility for telling you about deleted files and how much space they take up. > > > _______________________________________________ > 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" -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C