Debian – Raid 1 with 3 disks of different sizes

debianlvmraid1software-raidssd

I'm new to this site.
I am currently configuring a server, which has these ssd disks:
1X1TB SSD NVme
2X512GB SSD NVMe

Now I would like to create a raid 1 between these disks, in which I would always see the maximum size of 1 TB, but the data will be duplicated on the 1TB disk and on the remaining 2 512GB disks.
I would like to have two blocks of 1TB each, the first block formed by the 1TB disk and the second block composed of the set of two 512 disks, all in RAID 1.
How could I solve this problem?
Do I put the two 512GB disks in an LVM volume and then create a RAID?
Thank you

PS:
the system is Debian Stretch

Best Answer

I would not use LVM to build devices for your array, but instead build the array with mdadm and use it for LVM.

To get an array of 1Tb, you would need to put the 512Gb drives into a RAID 0 array which would give you 1Tb, then use the RAID 0 device and the 1Tb drive in a RAID 1 array. This would avoid "wasting" space, however you are essentially using RAID 10, and should understand how that affects your risk of data loss.