From owner-freebsd-questions Thu Jun 29 3:29:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ngo.org.uk (ngo.org.uk [193.62.43.28]) by hub.freebsd.org (Postfix) with ESMTP id 0D92D37BA28 for ; Thu, 29 Jun 2000 03:29:56 -0700 (PDT) (envelope-from mac@ngo.org.uk) Received: (from mac@localhost) by ngo.org.uk (8.9.3/8.9.3) id LAA08370; Thu, 29 Jun 2000 11:30:19 +0100 (BST) From: Mac Message-Id: <200006291030.LAA08370@ngo.org.uk> Subject: Re: Where is the disk pace? In-Reply-To: <395B1D06.DE3EBD51@icave.com.mx> from "Rafael A. Reta Rodriguez" at "Jun 29, 0 04:55:18 am" To: rafareta@icave.com.mx (Rafael A. Reta Rodriguez) Date: Thu, 29 Jun 2000 11:30:19 +0100 (BST) Cc: freebsd-questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > # cd /var/log > > > # du -k > > > 2638 . > > > # df -k > > > Filesystem 1K-blocks Used Avail Capacity Mounted on > > > /dev/wd0s1d 19815 14094 4136 77% /var/log > > > > > > > > > du says that I have 2,638K and df says 14,094K used... What is grong The classic cause of this is a large file that's been deleted (so it doesn't show up in directory listings (or 'du')) but the file's still open and being used by a process somewhere, so the kernel doesn't delete it. Once the process has closed the file, then it will be removed altogether and the disk blocks freed up. One possible cause of this could be some program or other that's rotating log files, but the process doing the logging hasn't let got of the old file yet. If you can umount /var/log then the problem will dissapear, as it will if you kill all processes using files on /var/mail. (anyone know how you find out which processes are uisng files in a mount point?) One other point, is that you _might_ have a corrupt filesystem. If you do get it umount-ed, then run 'fsck' over it as well just to be sure. Mac To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message