Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Apr 2013 13:44:58 +0300
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        Beeblebrox <zaphod@berentweb.com>, freebsd-questions@freebsd.org
Subject:   Re: [ZFS] recover destroyed zpool - what are the available options?
Message-ID:  <51629FAA.1070007@gmail.com>
In-Reply-To: <1365160406005-5801734.post@n5.nabble.com>
References:  <1365002276096-5801335.post@n5.nabble.com> <515C4B14.80300@gmail.com> <1365004246715-5801356.post@n5.nabble.com> <1365087055.99393.YahooMailRC@web184303.mail.ne1.yahoo.com> <1365090630957-5801568.post@n5.nabble.com> <1365091829108-5801581.post@n5.nabble.com> <1365092775955-5801588.post@n5.nabble.com> <515E8BDF.9070403@gmail.com> <1365152049024-5801716.post@n5.nabble.com> <515EAABF.6020300@gmail.com> <1365160406005-5801734.post@n5.nabble.com>

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



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