Date: Thu, 29 Jun 2000 11:30:19 +0100 (BST) From: Mac <mac@ngo.org.uk> To: rafareta@icave.com.mx (Rafael A. Reta Rodriguez) Cc: freebsd-questions@freebsd.org Subject: Re: Where is the disk pace? Message-ID: <200006291030.LAA08370@ngo.org.uk> In-Reply-To: <395B1D06.DE3EBD51@icave.com.mx> from "Rafael A. Reta Rodriguez" at "Jun 29, 0 04:55:18 am"
next in thread | previous in thread | raw e-mail | index | archive | help
> > > # 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006291030.LAA08370>