[ZFS] recover destroyed zpool - what are the available options?
Volodymyr Kostyrko
c.kworr at gmail.com
Fri Apr 5 08:31:32 UTC 2013
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.
More information about the freebsd-questions
mailing list