From owner-freebsd-questions@FreeBSD.ORG Sun Sep 6 10:18:00 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2F57106566B for ; Sun, 6 Sep 2009 10:18:00 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 863F08FC16 for ; Sun, 6 Sep 2009 10:18:00 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MkEop-0001uZ-Sp for freebsd-questions@freebsd.org; Sun, 06 Sep 2009 03:17:59 -0700 Message-ID: <25316313.post@talk.nabble.com> Date: Sun, 6 Sep 2009 03:17:59 -0700 (PDT) From: jaymax To: freebsd-questions@freebsd.org In-Reply-To: <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jaymax36@gmail.com References: <25314145.post@talk.nabble.com> <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> Subject: Re: Inconsistency in root partition size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2009 10:18:00 -0000 Mel Flynn-2 wrote: > > On Sunday 06 September 2009 04:34:20 jaymax wrote: >> I apparently have open file handles in my / partitions. >> It was partitioned at 512 Mb size, used about 150Mb >> df shows >> Filesystem Size Used Avail Capacity Mounted on >> /dev/ad0s1a 496M 492M -36M 108% / > >> adjkerntz 147 root 0u VBAD >> (revoked) adjkerntz 147 root 1u VBAD > > >> Can't really identify lines I can say does not belong so I don't have any >> rational basis to kill any process. All seems legit! >> >> Rebooting does not correct the descrepancy > > For one, you could've used fstat -f / to reduce the noise. Secondly, since You were correct fstat -f / showed no open files handles rebooting does not help, open files are not the cause. Rather the VBAD up > there. Do an fsck -y. Chances are your file system got filled, a hardware > write error occurred and the kernel could therefore not return the space > to > the disk. > If you still have logs, I would grep for WRITE_DMA in > ran fsck on / mounted partition, is that reasonable or possible, since it is / or do I have to use a livefs disk like Fixit or Frenzy for this # fsck -vy -B /dev/ad0s1a start / wait fsck_ufs -y -F /dev/ad0s1a start / wait fsck_ufs -y -B /dev/ad0s1a /: write failed, filesystem is full CANNOT CREATE SNAPSHOT //.snap/fsck_snapshot: No space left on device ** /dev/ad0s1a (NO WRITE) ** Last Mounted on / ** Root file system ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts UNREF FILE I=3417 OWNER=root MODE=100400 SIZE=0 MTIME=Sep 6 02:41 2009 RECONNECT? no CLEAR? no UNREF FILE I=3495 OWNER=root MODE=140666 SIZE=0 MTIME=Sep 5 01:17 2009 CLEAR? no UNREF FILE I=3524 OWNER=root MODE=100644 SIZE=154 MTIME=Sep 5 01:23 2009 RECONNECT? no CLEAR? no ** Phase 5 - Check Cyl groups FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? no 16849 files, 251849 used, 1966 free (1966 frags, 0 blocks, 0.8% fragmentation) ----- # grep -in WRITE_DMA /var/log/messages Yielded nothing either Rebooted - came back up with the same condition. On rebooting, doesn't the system run fsck -y before mounting the disks Still stuck, at least we have eliminated the "open file handler" belief Thanks -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25316313.html Sent from the freebsd-questions mailing list archive at Nabble.com.