Linux RAID subsystem development
 help / color / mirror / Atom feed
* Recover data from accidentally created raid5 over raid1
@ 2023-04-11 18:11 Moritz Rosin
  2023-04-11 19:47 ` John Stoffel
  0 siblings, 1 reply; 14+ messages in thread
From: Moritz Rosin @ 2023-04-11 18:11 UTC (permalink / raw)
  To: linux-raid

Hey there,

unfortunately I have to admit, that I learned my lesson the hard way 
dealing with software raids.

I had a raid1 running reliable over month using two 4TB HDDs.
Since I ran short on free space I tried to convert the raid1 to a raid5 
in-place (with the plan to add the 3rd HDD after converting).
That's where my incredibly stupid mistake kicked in.

I followed an internet tutorial that told me to do:
mdadm --create /dev/md0 --level=5 --raid-devices=2 /dev/sdX1 /dev/sdY1

I learned that I re-created a raid5 array instead of converting the 
raid1 :-(

Is there any chance to un-do the conversion or restore the data?
Has the process of creation really overwritten data or is there anythins 
left on the disk itself that can be rescued?

Any help would be appreciated. Thanks!!!

Moritz

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Recover data from accidentally created raid5 over raid1
@ 2023-04-11 18:12 Moritz Rosin
  0 siblings, 0 replies; 14+ messages in thread
From: Moritz Rosin @ 2023-04-11 18:12 UTC (permalink / raw)
  To: linux-raid

Hey there,

unfortunately I have to admit, that I learned my lesson the hard way 
dealing with software raids.

I had a raid1 running reliable over month using two 4TB HDDs.
Since I ran short on free space I tried to convert the raid1 to a raid5 
in-place (with the plan to add the 3rd HDD after converting).
That's where my incredibly stupid mistake kicked in.

I followed an internet tutorial that told me to do:
mdadm --create /dev/md0 --level=5 --raid-devices=2 /dev/sdX1 /dev/sdY1

I learned that I re-created a raid5 array instead of converting the 
raid1 :-(

Is there any chance to un-do the conversion or restore the data?
Has the process of creation really overwritten data or is there anythins 
left on the disk itself that can be rescued?

Any help would be appreciated. Thanks!!!

Moritz

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-04-13 14:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-11 18:11 Recover data from accidentally created raid5 over raid1 Moritz Rosin
2023-04-11 19:47 ` John Stoffel
2023-04-12  0:18   ` Wol
2023-04-12  0:26     ` Phil Turmel
2023-04-12 10:15       ` Moritz Rosin
2023-04-13  6:10         ` Moritz Rosin
2023-04-13 12:10           ` Phil Turmel
2023-04-12 10:22     ` Reindl Harald
2023-04-12 12:21       ` Phil Turmel
2023-04-12 20:22         ` Mark Wagner
2023-04-13  8:05           ` Wols Lists
2023-04-13 12:12             ` Phil Turmel
2023-04-13 14:58               ` Wols Lists
  -- strict thread matches above, loose matches on Subject: below --
2023-04-11 18:12 Moritz Rosin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox