From owner-freebsd-questions Thu Nov 16 7:32: 1 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cortez.sitemajic.net (unknown [208.153.40.60]) by hub.freebsd.org (Postfix) with ESMTP id 3C2DA37B4C5 for ; Thu, 16 Nov 2000 07:31:58 -0800 (PST) Received: (from apache@localhost) by cortez.sitemajic.net (8.11.1/8.11.1) id eAGFZL521804 for freebsd-questions@FreeBSD.ORG; Thu, 16 Nov 2000 10:35:21 -0500 (EST) From: Chris Jesseman To: freebsd-questions@FreeBSD.ORG Subject: du -df inconsistency - get fsck to fix? Message-ID: <974388921.3a13feb94702b@www.sitemajic.net> Date: Thu, 16 Nov 2000 10:35:21 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.3 X-Originating-IP: 204.38.56.104 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Good day, My /var is full and I can't figure out how to release [mis]used space. I suspected an open accounting file because a few weeks ago I started moving the accounting, logs & email files over to /usr and just linking them from /var... However, I am unsure how to regain the space. fsck docs(Appendix A) imply that to clean the file the file system has to be unmounted. Is this correct? Please advise an optimal solution. Thank you, Chris Jesseman [0] /var#fsck /dev/da0s1e ** /dev/da0s1e (NO WRITE) ** Last Mounted on /var ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts UNREF FILE I=94 OWNER=root MODE=100644 SIZE=18173952 MTIME=Nov 15 22:09 2000 CLEAR? no ** Phase 5 - Check Cyl groups 55 files, 17867 used, 1948 free (108 frags, 230 blocks, 0.5% fragmentation) Misc. info from my 4.1.1 Stable box: [0] /var#fsck -p /dev/da0s1e /dev/da0s1e: NO WRITE ACCESS /dev/da0s1e: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. [8] /var#cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/da0s1e /var ufs rw 2 2 [0] /var#mount /dev/da0s1e on /var (ufs, local, writes: sync 1486005 async 715463, reads: sync 20046 async 6527) [0] /var#du -h /var 1.0K /var/at/jobs 1.0K /var/at/spool 3.0K /var/at 2.0K /var/crash 4.0K /var/cron/tabs 5.0K /var/cron 2.0K /var/msgs 1.0K /var/preserve 52K /var/run 1.0K /var/rwho 1.0K /var/tmp/vi.recover 3.0K /var/tmp 20K /var/yp 1.0K /var/pwcheck 91K /var [0] /var#df -H Filesystem Size Used Avail Capacity Mounted on /dev/da0s1e 20M 18M 372K 98% /var To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message