From owner-freebsd-questions@freebsd.org Mon Feb 8 23:44:03 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8FEAEAA13A2 for ; Mon, 8 Feb 2016 23:44:03 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7495B1643 for ; Mon, 8 Feb 2016 23:44:03 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: by mailman.ysv.freebsd.org (Postfix) id 7209DAA13A1; Mon, 8 Feb 2016 23:44:03 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 57DC5AA13A0 for ; Mon, 8 Feb 2016 23:44:03 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 206771642 for ; Mon, 8 Feb 2016 23:44:02 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-44-23.dynamic.qsc.de [92.195.44.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 756EE276F4; Tue, 9 Feb 2016 00:37:15 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u18NbFdI002784; Tue, 9 Feb 2016 00:37:15 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 9 Feb 2016 00:37:15 +0100 From: Polytropon To: Paul Beard Cc: FreeBSD-questions Subject: Re: fsck is failing to clean a filesystem Message-Id: <20160209003715.86885013.freebsd@edvax.de> In-Reply-To: <15664107-4DD3-4717-9E3E-128507A3434B@gmail.com> References: <201B1734-C8F3-439A-B788-AC177D1280C3@gmail.com> <15664107-4DD3-4717-9E3E-128507A3434B@gmail.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2016 23:44:03 -0000 On Mon, 8 Feb 2016 15:25:41 -0800, Paul Beard wrote: > > > On Feb 8, 2016, at 2:36 PM, Anton Sayetsky wrote: > > > > Do you have free space on partition? > > Yes. After mounting readonly and starting networking, I can get better information. > > Filesystem Size Used Avail Capacity Mounted on > /dev/gpt/gprootfs 1.9G 847M 974M 47% / > devfs 1.0K 1.0K 0B 100% /dev > /dev/gpt/gptmpfs 248M 52K 228M 0% /tmp > /dev/gpt/gpvarfs 4.8G 4.5G 338K 100% /var > fdescfs 1.0K 1.0K 0B 100% /dev/fd > /dev/gpt/gpusrfs 53G 42G 7.1G 85% /usr > > Not sure what to make of "BAD TYPE VALUE FOR '..’ “ This indicates that the inode entry for "..", the parent directory, does not have a valid node type (file, directory, special, link, etc.). So fsck doesn't know how to "re-instantiate" this particular ".." entry, as it seems. Your /usr partition has 7 GB free space. > [root@ ~]# fsck -fy /usr > ** /dev/gpt/gpusrfs > ** Last Mounted on /usr > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > BAD TYPE VALUE FOR '..' I=5628928 OWNER=www MODE=40775 > SIZE=512 MTIME=Jan 2 20:15 2016 > DIR=? > > FIX? yes > > BAD TYPE VALUE I=5605455 OWNER=www MODE=100644 > SIZE=64694 MTIME=Jan 9 16:02 2016 > FILE=? > > FIX? yes > > ** Phase 3 - Check Connectivity > UNREF DIR I=5628928 OWNER=www MODE=40775 > SIZE=512 MTIME=Jan 2 20:15 2016 > RECONNECT? yes > > SORRY. NO SPACE IN lost+found DIRECTORY > > UNREF DIR I=2520064 OWNER=www MODE=40755 > SIZE=512 MTIME=Mar 4 21:20 2015 > RECONNECT? yes > > SORRY. NO SPACE IN lost+found DIRECTORY > > ** Phase 4 - Check Reference Counts > ** Phase 5 - Check Cyl groups > 876428 files, 21855071 used, 5942870 free (79838 frags, 732879 blocks, 0.3% fragmentation) > > ***** FILE SYSTEM STILL DIRTY ***** > > ***** FILE SYSTEM WAS MODIFIED ***** > > ***** PLEASE RERUN FSCK ***** It looks like fsck needs more free space for entries to create in the lost+found/ subdirectory. However, the fsck output indicates a quite heavy file system inconsistency problem. In worst case, mount -o ro, copy all files, re-initialize the filesystem with newfs, and then copy the files back. Use tar or rsync or cpio to make sure all the file attributes are properly transferred. This should be possible in case you cannot resolve the filesystem problem. And check if /usr/lost+found does already contain something. Just in case. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...