I have a NAS running FreeBSD 10.1 with 3 disks: ada2 is the boot device, ada0 and ada1 are a ZFS mirror.
I tried to recover the GPT tables with
How can I recover the primary GPT tables for ada0 and ada1?
dmesg
shows this for the ZFS mirror:
Code:
GEOM: ada0: the primary GPT table is corrupt or invalid.
GEOM: ada0: using the secondary instead -- recovery strongly advised.
GEOM: ada1: the primary GPT table is corrupt or invalid.
GEOM: ada1: using the secondary instead -- recovery strongly advised.
gpart recover
but gpart(8) won't find the ZFS mirror. gpart show
result (finds only the boot disk):
Code:
=> 34 625142381 ada2 GPT (298G)
34 1024 1 freebsd-boot (512K)
1058 8388608 2 freebsd-swap (4.0G)
8389666 616752749 3 freebsd-zfs (294G)
gpart list
result:
Code:
Geom name: ada2
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 625142414
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada2p1
Mediasize: 524288 (512K)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 17408
Mode: r0w0e0
rawuuid: 781290a4-8fb8-11e4-b9cd-9cb65404591a
rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
label: gptboot0
length: 524288
offset: 17408
type: freebsd-boot
index: 1
end: 1057
start: 34
2. Name: ada2p2
Mediasize: 4294967296 (4.0G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 541696
Mode: r1w1e0
rawuuid: 782b183f-8fb8-11e4-b9cd-9cb65404591a
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: swap0
length: 4294967296
offset: 541696
type: freebsd-swap
index: 2
end: 8389665
start: 1058
3. Name: ada2p3
Mediasize: 315777407488 (294G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 541696
Mode: r1w1e2
rawuuid: 78436d97-8fb8-11e4-b9cd-9cb65404591a
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: zfs0
length: 315777407488
offset: 4295508992
type: freebsd-zfs
index: 3
end: 625142414
start: 8389666
Consumers:
1. Name: ada2
Mediasize: 320072933376 (298G)
Sectorsize: 512
Mode: r2w2e4
Last edited by a moderator: