I want to create a lvm2 raid1 with a single disk and later add the mirror disk.
With mdadm, I can do this with the following command:
mdadm –create / dev / md0 -R –car md –level = 1 – RAID-devices = 2 / dev / sda1 is missing
This creates a RAID 1 with 2 drives, the second drive is missing. I can add it later.
I tried it with lvm2
lvcreate –type raid1 – reflects 1 volgroup
but it does not work because the second drive is missing. If I remove –mirrors 1, I can not create any at all. Is there a way to go through Creration without a second ride?