I have the exact problem described here:
https://forums.freebsd.org/threads/need-help-to-recover-data-from-damaged-zfs-pool.49782/
Basically, I had my boot device fail, sadly it died during an upgrade to the latest stable update. I shut the machine off until I could secure a new boot device.
Once I got the new boot device, I did a fresh install of 9.3 (FreeNAS-9.3-STABLE-201512121950) and now it cannot see my old pool.
zdb -lll /dev/<disk> return this on all the disks and all the partitions on the disks:
My partitions appear to be intact:
But a zpool import does nothing. zpool import with -D and -d options also does nothing.
My data drives are in good condition. The data is still on there. There has to be a way to recover this. Somehow. Is there a way to force ZFS to scan the whole drive and rebuild any metadata it needs?
The Data disks were in the system during the re-install. I've not attempted any operations that should have written to them, though.
Help!
https://forums.freebsd.org/threads/need-help-to-recover-data-from-damaged-zfs-pool.49782/
Basically, I had my boot device fail, sadly it died during an upgrade to the latest stable update. I shut the machine off until I could secure a new boot device.
Once I got the new boot device, I did a fresh install of 9.3 (FreeNAS-9.3-STABLE-201512121950) and now it cannot see my old pool.
zdb -lll /dev/<disk> return this on all the disks and all the partitions on the disks:
Code:
[root@cloud] ~# zdb -lll /dev/ada0p2 -------------------------------------------- LABEL 0 -------------------------------------------- failed to unpack label 0 -------------------------------------------- LABEL 1 -------------------------------------------- failed to unpack label 1 -------------------------------------------- LABEL 2 -------------------------------------------- failed to unpack label 2 -------------------------------------------- LABEL 3 -------------------------------------------- failed to unpack label 3 [root@cloud] ~#
My partitions appear to be intact:
Code:
[root@cloud ~]# for i in 0 1 2 3;do gpart show /dev/ada$i;done => 34 1953525101 ada0 GPT (931G) 34 94 - free - (47k) 128 4194304 1 freebsd-swap (2.0G) 4194432 1949330703 2 freebsd-zfs (929G) => 34 1953525101 ada1 GPT (931G) 34 94 - free - (47k) 128 4194304 1 freebsd-swap (2.0G) 4194432 1949330703 2 freebsd-zfs (929G) => 34 1953525101 ada2 GPT (931G) 34 94 - free - (47k) 128 4194304 1 freebsd-swap (2.0G) 4194432 1949330696 2 freebsd-zfs (929G) 1953525128 7 - free - (3.5k) => 34 1953525101 ada3 GPT (931G) 34 94 - free - (47k) 128 4194304 1 freebsd-swap (2.0G) 4194432 1949330703 2 freebsd-zfs (929G) [root@cloud ~]#
But a zpool import does nothing. zpool import with -D and -d options also does nothing.
Code:
[root@cloud] ~# zpool status pool: freenas-boot state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM freenas-boot ONLINE 0 0 0 gptid/45e4ca81-b4eb-11e5-8acb-d050997344a8 ONLINE 0 0 0 errors: No known data errors [root@cloud] ~# zpool import -D [root@cloud] ~# zpool status pool: freenas-boot state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM freenas-boot ONLINE 0 0 0 gptid/45e4ca81-b4eb-11e5-8acb-d050997344a8 ONLINE 0 0 0 errors: No known data errors [root@cloud] ~#
My data drives are in good condition. The data is still on there. There has to be a way to recover this. Somehow. Is there a way to force ZFS to scan the whole drive and rebuild any metadata it needs?
The Data disks were in the system during the re-install. I've not attempted any operations that should have written to them, though.
Help!