Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2012 09:37:26 -0500
From:      Gary Palmer <gpalmer@freebsd.org>
To:        Beeblebrox <zaphod@berentweb.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: [ZFS] How to fix corrupt ZDB
Message-ID:  <20121108143726.GB24320@in-addr.com>
In-Reply-To: <1352370415751-5759123.post@n5.nabble.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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121108143726.GB24320>