From owner-freebsd-fs@FreeBSD.ORG Thu Nov 27 18:32:50 2003 Return-Path: <owner-freebsd-fs@FreeBSD.ORG> Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8630C16A4CF for <freebsd-fs@freebsd.org>; Thu, 27 Nov 2003 18:32:50 -0800 (PST) Received: from bilver.wjv.com (user38.net339.fl.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 065DF43FE0 for <freebsd-fs@freebsd.org>; Thu, 27 Nov 2003 18:32:48 -0800 (PST) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by bilver.wjv.com (8.12.10/8.12.10) with ESMTP id hAS2Wjm7061257 for <freebsd-fs@freebsd.org>; Thu, 27 Nov 2003 21:32:45 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.10/8.12.10/Submit) id hAS2Wjjl061256 for freebsd-fs@freebsd.org; Thu, 27 Nov 2003 21:32:45 -0500 (EST) (envelope-from bv) Date: Thu, 27 Nov 2003 21:32:45 -0500 From: Bill Vermillion <bv@wjv.com> To: freebsd-fs@freebsd.org Message-ID: <20031128023245.GA61208@wjv.com> References: <F7D4BDA0E5A1D14B99D32C022AEB7366FE10D4@alis-2k.alis.domain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <F7D4BDA0E5A1D14B99D32C022AEB7366FE10D4@alis-2k.alis.domain> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on bilver.wjv.com Subject: Re: mfs is getting full (/etc/rc.diskless2) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Filesystems <freebsd-fs.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-fs>, <mailto:freebsd-fs-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-fs> List-Post: <mailto:freebsd-fs@freebsd.org> List-Help: <mailto:freebsd-fs-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-fs>, <mailto:freebsd-fs-request@freebsd.org?subject=subscribe> X-List-Received-Date: Fri, 28 Nov 2003 02:32:50 -0000 Earlier in the linear time track, on approximately Thu, Nov 27, 2003 at 18:26 , Vincent Goupil divulged this public information: > I've setup a firewall with a compact flash instead of a hard-drive. This is > the output of mount: > /dev/ad0s2a on / (ufs, local, read-only) > mfs:17 on /var (mfs, asynchronous, local) > procfs on /proc (procfs, local) > mfs:36 on /dev (mfs, asynchronous, local) > As you see, I mount the compact flash as read-only and I setup a memory > filesystem for /var > In my rc.conf file: > diskless_mount="/etc/rc.diskless2" > varsize="131072" > Output of: df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s2a 229942 197570 13978 93% / > mfs:17 63471 56584 1810 97% /var > procfs 4 4 0 100% /proc > mfs:36 1503 66 1317 5% /dev > > Output of: df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/ad0s2a 225M 193M 14M 93% / > mfs:17 62M 55M 1.8M 97% /var > procfs 4.0K 4.0K 0B 100% /proc > mfs:36 1.5M 66K 1.3M 5% /dev > > Output of: du -h -d 1 /var > 364K /var/db > 1.0K /var/account > 3.0K /var/at > 1.0K /var/backups > 1.0K /var/crash > 2.0K /var/cron > 1.0K /var/empty > 5.0K /var/games > 1.0K /var/heimdal > 3.2M /var/log > 31K /var/mail > 2.0K /var/msgs > 1.0K /var/preserve > 47K /var/run > 1.0K /var/rwho > 16K /var/spool > 3.0K /var/tmp > 1.0K /var/yp > 1.6M /var/mrtg > 2.0K /var/ucd-snmp > 5.3M /var > > Output of: du -d 1 /var > 364 /var/db > 1 /var/account > 3 /var/at > 1 /var/backups > 1 /var/crash > 2 /var/cron > 1 /var/empty > 5 /var/games > 1 /var/heimdal > 3299 /var/log > 31 /var/mail > 2 /var/msgs > 1 /var/preserve > 47 /var/run > 1 /var/rwho > 16 /var/spool > 3 /var/tmp > 1 /var/yp > 1670 /var/mrtg > 2 /var/ucd-snmp > 5456 /var > It seems to have a big difference between > the output of df and du (I know, I read > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html# > DU-VS-DF ), but it's now explaining everything. I could be the > way I setup it. > My problem is, my /var partition is getting filled very quickly > and I don't know why ? I don't know what to clean. I've already > deleted some log, but I saved only 2% of free space or 1000 > block. > I don't know what is taking all this space ? Any ideas ? It sounds like you deleted some log file that the system keeps open. So it will keep using up disk space even though the name is gone. A file is not deleted until the last link is gone and if the file is opened for loging by a program that never releases the file that is your problem. At that point the easiest way is to reboot. Then find out what you are logging and stop the things you don't need. When a log gets full DO NOT remove it. Null it out. Just doing > <logfilename> should empty the log and reset the pointer back to the first of the file and release all blocks in use. Bill -- Bill Vermillion - bv @ wjv . com