r/Ubuntu•
86Razor

Create RAID 0+1 (3 disk)

Hi,

I'm looking to create a nested raid array 0+1. Two SSD 1To in raid 0 (2To) in a raid 1 with one SDD 2 To.

Is that possible ? I've try from the ubuntu install disk management but without success (With the new installer and the old). Mdadm have a parameter for RAID10 but not RAID01

Thank you ! (AskUbuntu is in maintenance)

Posted Oct 1, 2021, 2:47 AM UTC

14
SubparMacro•

No that isn't possible.

RAID 1 implies a mirroring operation. Both sides of the RAID array are therefore identical. More importantly, they are the same size. One drive is selected as the 'primary' and copies over data to the 'secondary' on each write transaction.

This works for RAID 10 because there are two RAID 1 arrays (two drives each) that are then striped together for faster reading between the two drive spans. Also again, identical size.

What you're describing is trying to copy the data of two drives over to a third drive.

If you want redundancy for the RAID with three drives an easier option would be to set up RAID 5.

RAID 5 enforces parity and sequences the data of each 'slice' of the RAID across all three drives. This gives the benefit that even if one drive fails, the data of the entire array can be rebuilt. Additional drives in the RAID 5 increase the fault tolerance / number of drives that can fail before the data is impossible to retrieve.

1
86RazorOP•

Thanks for the informations !

RAID 5 seems interesting, but 3 disk ( 2 x 1To, 1 x 2To ) without the same size is possible ?

If i'm right, they need to be the same size ; So i lose 1To on my 2To disk or i create a LVM with the two 1To disk but i end with 2 "virtual" disk. Possible to create RAID 1 with LVM (2 x 1To) and 2To disk ?

Is there a solution that allow redundant storage on non-equal volume ?

Thank you for your answer, i'm a little lost on this.

1
SubparMacro•

Yes, the drives all need to be the same size and you essentially sacrifice capacity for redundancy across all three drives.

You *can* do a raid 0 + 1 with mdadm but may not be able to during the installer. However this will be three drives that are mirroring a raid 0 (or more accurately, two mirrors of the primary raid 0).

I don't really think you can do a raid 1 on two drives and then stripe that with a standalone drive. That's closer to a raid 10 but requires two raid 1s that are striped together for faster read operations.

mdadm supported raids: https://raid.wiki.kernel.org/index.php/A\_guide\_to\_mdadm#Raid\_1.2B0

1
86RazorOP•

I don't really think you can do a raid 1 on two drives and then stripe that with a standalone drive.

RAID 0+1

In my head i wanted to create a RAID 0 on two disk 1To and after create a RAID 1 with the RAID 0 and the 2To disk. (Like the image but the right branch is only my 2To disk)So in theory with mdadm this is possible.

I'll probably save me hours of headache and invest in a second 2To M.2. Thank you for the precision. I'll to make this running just to try it eventually. RAID is a weird compromise between software and hardware.

♥

1