Page 1 of 1

Need help for a ZFS partition recovery

Posted: 26 Apr 2021, 20:52
by Chavell3
Hi,

I need some urgent helpt for one of my ZFS data disks, a single disk ZFS pool.
After I tried some new Storage-server for my ZFS volumes, I tried to use some disk passthrough feature with that storage-server

Unfortunatly that passthrough was no really passthrough and it formated my ZFS volume and now I need to recover it.
From one of the other threads I found that there is some script for ZFS but I don't know how to use, maybe someone can help me how to use it.
https://git.cgsecurity.org/cgit/testdisk/tree/src/zfs.c

With Wipefs I found some ZFS information, but actually I don't know how to use that...
Image

Also gpart finds some other partition, what are similiar to those Testdisk found
Image
Image

The point with those partitions is, that there hasn't been a 60GB Partition on that disk.
Testdisk even found multiple 60GB Partitions...
Is it maybe possible that Testdisk would find VMDK partitions as physical partitions? As on this disk vSphere VMs had been placed.

does anybody has an idea how I can recover my partition?

Thanks

Re: Need help for a ZFS partition recovery

Posted: 27 Apr 2021, 09:38
by recuperation
Chavell3 wrote: 26 Apr 2021, 20:52 Hi,

I need some urgent helpt for one of my ZFS data disks, a single disk ZFS pool.
For urgent matters please contact a professional recovery service that will charge you an urgence-based markup.
After I tried some new Storage-server for my ZFS volumes, I tried to use some disk passthrough feature with that storage-server

Unfortunatly that passthrough was no really passthrough and it formated my ZFS volume and now I need to recover it.
From one of the other threads I found that there is some script for ZFS but I don't know how to use, maybe someone can help me how to use it.
https://git.cgsecurity.org/cgit/testdisk/tree/src/zfs.c
This is not a script. This is C code. Do not go there unless you are a programmer. As a user either run precompiled versions of Testdisk or download and compile.

...
The point with those partitions is, that there hasn't been a 60GB Partition on that disk.
Testdisk even found multiple 60GB Partitions...
Is it maybe possible that Testdisk would find VMDK partitions as physical partitions?
From my own experience, yes.
does anybody has an idea how I can recover my partition?
Make sure that you are using a Sun ZFS implementation:
https://www.cgsecurity.org/wiki/TestDisk

To verify that repeat the steps how you created your ZFS pool using an empty disk. You would then need to delete MBR and GPT and check if Testdisk finds the partition.

Apart from that, you can always run Photorec or use the built-in recovery abilities from ZFS. I am not aware of recovery software for ZFS nor do I know how to recover stuff from ZFS. Testdisk can only help you to find a Sun ZFS partition if your partition table is broken. It does not go beyond that.