Need help for a ZFS partition recovery

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
Chavell3
Posts: 1
Joined: 25 Apr 2021, 20:12

Need help for a ZFS partition recovery

#1 Post 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

recuperation
Posts: 2718
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Need help for a ZFS partition recovery

#2 Post 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.

Locked