[ZFS] recover destroyed zpool - what are the available options?

Volodymyr Kostyrko c.kworr at gmail.com
Fri Apr 5 10:43:15 UTC 2013


05.04.2013 11:54, Beeblebrox:
>>> Actually if you see all 4 labels correctly you can try to proceed as ZFS
> would guess the correct disk size anyway.
>
> I should clarify:  # zdb -l /dev/ada0p2 => all 4 LABELS visible and correct
> (zpool name: bsdr)
> # zdb -l /dev/ada0p1 => all 4 LABELS visible and correct (zpool name: asp)
> # zdb -l /dev/ada0 => only LABEL #2 visible (this is an OLDER zpool with
> GUID 5853256800575798014, also named bsdr, the pool was whole-disk-as-raw)
> This is the gpt table + partitions as I re-created them immediately after
> the gpt delete. It looks like I have re-created the gpt partitions
> correctly...
>
> I don't understand what you mean by "you can try to proceed"?
> # zpool import -D -f -R /bsdr -N -F -n -X bsdr
> cannot import 'bsdr': a pool with that name already exists. use the form
> 'zpool import <pool | id> <newpool>' to give it a new name

Ok, let's check a few things:

zpool import

zpool import -D

 From your previous mails I saw that pool bsdr is FAULTED but not 
deleted. If the system would list bsdr on `zpool import` you should 
remove -D from the command.

-- 
Sphinx of black quartz, judge my vow.


More information about the freebsd-questions mailing list