From owner-freebsd-fs@FreeBSD.ORG Thu Nov 8 14:37:30 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A92C65C6 for ; Thu, 8 Nov 2012 14:37:30 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (mail.in-addr.com [IPv6:2001:470:8:162::1]) by mx1.freebsd.org (Postfix) with ESMTP id 6CC168FC12 for ; Thu, 8 Nov 2012 14:37:30 +0000 (UTC) Received: from gjp by noop.in-addr.com with local (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1TWTEV-000DGz-1R; Thu, 08 Nov 2012 09:37:27 -0500 Date: Thu, 8 Nov 2012 09:37:26 -0500 From: Gary Palmer To: Beeblebrox Subject: Re: [ZFS] How to fix corrupt ZDB Message-ID: <20121108143726.GB24320@in-addr.com> References: <1352294866076-5758864.post@n5.nabble.com> <509A66D2.5060706@gmail.com> <8F907219A6904829A66E1E9A01696CF4@multiplay.co.uk> <1352356496801-5759081.post@n5.nabble.com> <1352370415751-5759123.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1352370415751-5759123.post@n5.nabble.com> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on noop.in-addr.com); SAEximRunCond expanded to false Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2012 14:37:30 -0000 On Thu, Nov 08, 2012 at 02:26:55AM -0800, Beeblebrox wrote: > *** correction on previous post *** > > > Beeblebrox wrote > > This command also did not change the corrupt entry for an old pool: > * > > # zdb -c * > * > > zdb: can't open 'asp': No such file or directory > > It turns out, ZDB just looks in the first folder / file name it runs into > when running this command. So change to a different folder, run the command > and the error message changes to complain about a different folder. I was > running that command at the top-level and I have a folder named "asp" there > as well. > > So disregard that bit... More correctly, the * was expanded by the shell as a list of files/directories in the pwd for you and then passed to zdb as arguments. Regards, Gary