Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Apr 2013 11:31:27 +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:  <515E8BDF.9070403@gmail.com>
In-Reply-To: <1365092775955-5801588.post@n5.nabble.com>
References:  <1364711810171-5800299.post@n5.nabble.com> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
04.04.2013 19:26, Beeblebrox:
>>> test them with `zdb -l device`. When the output would be correct - you
> guessed your slice!
>
> LABEL 1
> --------------------------------------------
>      version: 28
>      name: 'bsdr'
>      state: 2
>      txg: 10
>      pool_guid: 12018916494219117471
>      hostid: 2193536600
>      hostname: 'mfsbsd'
>      top_guid: 17860002997423999070
>      guid: 17860002997423999070
>      vdev_children: 1
>      vdev_tree:
>          type: 'disk'
>          id: 0
>          guid: 17860002997423999070
>          path: '/dev/ad6p2'
>          phys_path: '/dev/ad6p2'
>          whole_disk: 1
>          metaslab_array: 30
>          metaslab_shift: 31
>          ashift: 9
>          asize: 287855869952
>          is_log: 0
>          create_txg: 4
>
> Do you mean that in this case 'asize 287855869952' is what I should look at?
> But 287855869952 /1024 /1024 /2 => 137.260GB is far smaller than I recall
> the geom part to be...

I can't has the math. But looking at ashift I can guess your disk should 
be 287855869952/2**9 == 562218496. Is this one right?

Actually if you see all 4 labels correctly you can try to proceed as ZFS 
would guess the correct disk size anyway.

-- 
Sphinx of black quartz, judge my vow.



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