Below is how I created lvm software raid10.
Create Physical Volumes
pvcreate /dev/nvme0n1 /dev/nvme1n1 /dev/nvme2n1 /dev/nvme3n1
Create Volume Group
vgcreate my_vol_grp /dev/nvme0n1 /dev/nvme1n1 /dev/nvme2n1 /dev/nvme3n1
Create a logical volume with RAID10 from the already created volume group
lvcreate --type raid10 -m 1 -i 2 -l 100%FREE -n lvm_raid10 my_vol_grp
Create ext4 filesystem on the logical volume that you have created
Now the question is, how do I recover and re-establish raid10 after 1 drive failure on lvm raid10 configuration. I can find a lot of information online about how to create lvm raid10. However, I can not find much information about how to recover in case the drive fails.
Also my server supports hot-swap. Thanks in advance.