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

Volodymyr Kostyrko c.kworr at gmail.com
Mon Apr 8 10:45:03 UTC 2013


05.04.2013 14:13, Beeblebrox:
> Thank you for your help Volodymyr,
>
> 1. ZPOOL LIST shows that the pool is listed
> NAME    SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
> bsdr       -      -      -      -      -  FAULTED  -
> tank0  49.8G  13.3G  36.5G    26%  1.00x  ONLINE  -
>
> 2. ZPOOL IMPORT => no pools available to import
> 3. zpool import -D -f -R /bsdr -N -F -n -X bsdr =>
> Gives error because of condition (#1)
> 4. ZPOOL IMPORT -D shows 2 BSDR pools:
> A) config:	bsdr                   UNAVAIL  insufficient replicas
> 	  5853256800575798014  UNAVAIL  cannot open  (THIS IS NOT THE POOL I WANT -
> THIS ONE IS OLDER POOL, WHOLE-DISK-RAW)
> B) config:	bsdr                    UNAVAIL  insufficient replicas
> 	  17860002997423999070  UNAVAIL  cannot open (THIS SHOULD BE THE POOL I
> NEED, BUT LOOK AT PROBLEM IN #5)
> 5. ZPOOL STATUS -V BSDR shows different guid!!
> config:	bsdr                    UNAVAIL      0     0     0
> 	  12606749387939346898  UNAVAIL      0     0     0  was /dev/ada0p2 (THIS
> GUID DOES NOT MATCH THE GUID OF 4-B)
> It is normal in my opinion that the guid should not match, but that is why I
> cannot import pool 4-B. I must either delete the BSDR POOL that is shown as
> "on-line", or import 4-B with another name I think.

Personally I feel you should destroy current BSDR pool before importing 
older one or at least export current one. I don't think ZFS will reuse 
devices that are already used for other pools.

-- 
Sphinx of black quartz, judge my vow.


More information about the freebsd-questions mailing list