Restore RAID0 volume

Hello,

unfortunately, I made a mistake: I accidentally removed a hard drive from the RAID volume. However, the hard drive itself was never formatted, no data was ever deleted from it, and no new data was written to it. Is it possible to restore the RAID volume and recover the data on it? Unfortunately, I do not have a corresponding snapshot. Thank you very much in advance!

With RAID0, you should always have a full backup available (playing with fire)

It’s best to open a ticket with QNAP.

1 Like

Could you describe how you delete the RAID0 disk without destroy the data? It maybe important to know to decide whether it’s possible to recover it.
ps. please submit a support ticket to following up actions

Hallo @Madpadd ,

vielen Dank, dass Sie uns auf Ihr Anliegen bezĂŒglich der Wiederherstellung Ihres RAID 0-Volumes aufmerksam gemacht haben. Wir verstehen die Dringlichkeit dieser Situation und die Bedeutung Ihrer Daten.

Wir möchten Sie darĂŒber informieren, dass wir fĂŒr diesen kommenden Montag eine formelle technische PrĂŒfung dieses Falls angesetzt haben. Um sicherzustellen, dass wir Ihre Festplattenkonfiguration und die Protokolle grĂŒndlich analysieren können, bitten wir Sie um Ihre UnterstĂŒtzung bei der Eröffnung eines Support-Tickets ĂŒber unser Service-Portal: https://service.qnap.com/

Ein offizielles Ticket mit Ihren Systeminformationen ist fĂŒr unser Team unerlĂ€sslich, um Ihnen wĂ€hrend unserer Sitzung am Montag die bestmögliche UnterstĂŒtzung bieten zu können. Wir danken Ihnen herzlich fĂŒr Ihre Geduld und Zusammenarbeit in diesem Prozess.

@Lucas & @mikenien

great of you to reply, but sadly again in the wrong language (this one way AI auto translate is making all these language categories a farse, can at least automatic post tranalation be added (otherwise people just reply in their own langauage as the AI translation just translates the posts to the forum profile default language)

=====

Schön, dass ihr geantwortet habt, aber leider wieder in der falschen Sprache (diese Art der KI-Übersetzung macht all diese Sprachkategorien zu einer Farce; könnte man wenigstens eine automatische (schteib!) BeitragsĂŒbersetzung hinzufĂŒgen? (Ansonsten antworten die Leute einfach in ihrer eigenen Sprache, da die KI-Übersetzung die BeitrĂ€ge einfach in die Standardsprache des Forumprofils ĂŒbersetzt.)

1 Like

Hello dolbyman,

Thank you very much for your valuable feedback regarding the language issue. We sincerely apologize for the inconvenience caused by the current limitations of AI translation. We have taken note of your suggestion for automatic post translation and will definitely forward this feedback to our forum team to achieve further improvements. Once again, thank you for helping us improve the community!

1 Like

Hello,

First, I would create a full backup of the hard drive on another PC. This can be done, for example, under Linux with dd or under Windows with Acronis.

Then - AT YOUR OWN RISK - the RAID0 can be reassembled with the following commands:

mdadm --examine /dev/sda /dev/sdb

This first checks whether both drives still have the RAID’s magic key. If so, the RAID0 can possibly be restored with the following command:

mdadm --assemble /dev/md1 /dev/sda3 /dev/sdb3

If no magic key is detected anymore, you can force the assembly of the RAID0 with the following command - AT YOUR OWN RISK:

mdadm --assemble --run /dev/md1 /dev/sda3 /dev/sdb3

Now the RAID can be checked with the following command:

mdadm --detail /dev/md1

If no errors are displayed here either, you can try mounting the volume to see if the data is still accessible:

mkdir /mnt/test
mount /dev/md1 /mnt/test

Now with

cd /mnt/test
ls

check if the data is still there.

Since the OP didn’t mention a NAS model, I wouldn’t mount md1 for now; with a CAT1, it would be md0. That’s why: open a ticket.

NAS-Model: QNAP TS-231P2

@dolbyman, can you say more about the QNAP NAS model: TS-231P2?

md1 should then be correct; you can check this on the NAS via md_checker.

But a ticket should still be opened.

Ticket is opened. I am already communicating with QNAP support. Are the steps recommended by Ihsei still feasible, at your own risk? It would just be good to know how high the probability is that the data will be partially or even completely lost. Thank you very much in advance!

The steps do include a dd copy of the drives beforehand, so the risk is low; however, with RAID0, there definitely should have been a full backup at all times (often a painful and/or costly mistake).

It might be possible to reassemble the RAID this way, but the file system is another matter—so it’s better to wait for the ticket.