From owner-freebsd-questions@FreeBSD.ORG Tue Mar 11 00:12:20 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4BCFCA77 for ; Tue, 11 Mar 2014 00:12:20 +0000 (UTC) Received: from mail.dracyrys.com (ppp236-241.static.internode.on.net [203.122.236.241]) by mx1.freebsd.org (Postfix) with ESMTP id F1EE5310 for ; Tue, 11 Mar 2014 00:12:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at dracyrys.com Message-ID: <531E54D4.4020303@dracyrys.com> Date: Tue, 11 Mar 2014 10:42:04 +1030 From: Gitsnik User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Subject: Re: Unlistable, Undeletable File in old-jailed clientmqueue folder References: <531B18B1.6030305@dracyrys.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Mar 2014 00:12:20 -0000 Thanks Tron you have solved my problem, I did not know that you could import without mounting. After the scrub the folders did not show the 3, they showed 2, and I could rm -rf the clientmqueue. Thanks to everyone else who made comments and helped out. On 10/03/2014 7:40 am, Trond Endrestøl wrote: > >> drwxrwx--- 2 root wheel 3 Oct 3 21:26 clientmqueue > ^ > 3 links to this directory? --+ > > ZFS is a bit peculiar as it records the number of links when dealing > with directories. > > Assume for a moment that your clientmqueue directory really is empty. > It should then have a link count of 2; the clientmqueue link and the > dot link (.) inside the clientmqueue directory. > > Back to reality, why are there 3 links, not two, to an otherwise empty > directory? > > Chances are that the qfq8G32oib058119 entry has somehow been > transformed into a directory link pointing to dot. > > This is just speculation on my part. Maybe some bad memory got written > to disk at some point, as ZFS assumes memory (RAM) is 100 % healthy at > all times. > > You should make good backups of the pool's filesystems, export the > pool and try booting from the latest stable/9 snapshot. Try to import > the pool without mounting any of the filesystems (zpool import -N) and > run zpool scrub. If all goes well, export the pool, reboot, and import > the pool. Worst-case scenario is to re-create the pool and restoring > everything from backups. >