[ZFS] How to fix corrupt ZDB
Gary Palmer
gpalmer at freebsd.org
Thu Nov 8 14:37:30 UTC 2012
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
More information about the freebsd-fs
mailing list