recovering partitions from synology raid ?

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
yathus
Posts: 2
Joined: 15 May 2023, 10:37

recovering partitions from synology raid ?

#1 Post by yathus »

Hello,

I used an old Synology with 9 disks in raid 5 (i know it's my primary error to have a raid 5 with so much disks) and i lost 2 disks in same time, Raid failed and Synology was unabled to rebuild it.
Raid volume was used as iSCSI target for VMFS Datastore, but disk are not physically damaged or noisy, Smart data are fine.

I put all disks in Windows with a SATA Controller :

Image

I load TestDisk and i try to recover partition on disk0 and disk1.

disk0

Image

disk1

Image

If i continue with "Enter" i have only one partition (same on disk0 / disk1) :

Image

I did the test on others disks and i have same result, only one partition is displayed at this step.

Do you think i can continue with "write" or it's better to move to Ubuntu to have "mdadmin" tools too ?

Aonther solution could be to replicate partition table from a working disk (with sgdisk for example)

Thank you in advance,

Yathus

yathus
Posts: 2
Joined: 15 May 2023, 10:37

Re: recovering partitions from synology raid ?

#2 Post by yathus »

I did some test with a virtuabox VM and sgdisk did the job.

My "POC":

- VM ubuntu 22.04 with a raid1 + swap + raid5 with 4 disks (in GPT mode)
- i copied some data in raid1 and raid5 mount
- disconnect one disk and removing all partitions with another VM.
- replug "broken" disk => raid failed (1 disk offline)
- restore configuration with sgdisk -R and reboot
- raid is back without resync.

and for information testdisk print the same result, it find 3 partitions but is only able to restore last one.

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

Re: recovering partitions from synology raid ?

#3 Post by recuperation »

Thank you for your follow-up posting.

Locked