Hi there,
I have a usb backup disk with a single zfs pool. After a hanger on the usb bus and a clean reboot of the system (FreeBSD 10.2) the system startet with
listed all partitions and as state "damaged"
so I ran
with executed without any error messages
After a reboot of the system the pool was not mounted. This is what gpart listes:
And here is the output of zpool:
How can I recover the partition without losing any data?
Best regards,
Mike
I have a usb backup disk with a single zfs pool. After a hanger on the usb bus and a clean reboot of the system (FreeBSD 10.2) the system startet with
Code:
the primary GPT table is corrupt or invalid.
using the secondary instead -- recovery strongly advised.
gpart list da0
listed all partitions and as state "damaged"
so I ran
gpart recover /dev/da0
with executed without any error messages
After a reboot of the system the pool was not mounted. This is what gpart listes:
gpart list da0
Code:
Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 15628053133
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: da0p1
Mediasize: 134217728 (128M)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 1024
Mode: r0w0e0
rawuuid: 9ecada67-c562-4fed-801f-15ccbcb13b67
rawtype: e3c9e316-0b5c-4db8-817d-f92df00215ae
label: Microsoft reserved partition
length: 134217728
offset: 17408
type: ms-reserved
index: 1
end: 262177
start: 34
2. Name: da0p2
Mediasize: 8001427603456 (7.3T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
rawuuid: c681ea22-19ab-4e2c-a10b-ac198172961b
rawtype: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
label: Basic data partition
length: 8001427603456
offset: 135266304
type: ms-basic-data
index: 2
end: 15628052479
start: 264192
Consumers:
1. Name: da0
Mediasize: 8001563221504 (7.3T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
zpool status -x
Code:
pool: BackupDisk2015_02
state: UNAVAIL
status: One or more devices could not be opened. There are insufficient
replicas for the pool to continue functioning.
action: Attach the missing device and online it using 'zpool online'.
see: http://illumos.org/msg/ZFS-8000-3C
scan: none requested
config:
NAME STATE READ WRITE CKSUM
BackupDisk2015_02 UNAVAIL 0 0 0
17939114011953584277 UNAVAIL 0 0 0 was /dev/diskid/DISK-NA7DRQC8
pool: BackupDisk2016_01
state: FAULTED
status: One or more devices could not be used because the label is missing
or invalid. There are insufficient replicas for the pool to continue
functioning.
action: Destroy and re-create the pool from
a backup source.
see: http://illumos.org/msg/ZFS-8000-5E
scan: none requested
config:
NAME STATE READ WRITE CKSUM
BackupDisk2016_01 FAULTED 0 0 0
5348198291387904699 UNAVAIL 0 0 0 was /dev/gpt/Basic%20data%20partition
Best regards,
Mike