I have CentOS 7, and I want lvm mirrors on my root logical volume.
I had some panic after I used "lvconvert -m3 cl_excalibur/root" to create two mirrors, and it would not boot. The logical volume does not activate at boot when it is raid1. I booted from a liveUSB, and used "lvconvert -m0" to convert it back to un-mirrored, and all seems well. But I'm back to square one.
I expect I must use
dracut -f --add<-drivers?> <name of the lvm raid kernel module>
, but I don't know the exact arguments I need.
During a failed boot, in the dracut lvm tool, I tried lvchange -ay cl_excalibur/root
, but lvm complained that the module "dm-raid" was not in the kernel. So that's what I think I need to install.
I found the file
/usr/lib/modules/3.10.0-1062.1.1.el7.x86_64/kernel/drivers/md/dm-raid.ko.xz
.
However, I don't know which add flag to use, nor how to go from the filename above to the argument dracut requires.
This host is important to our infrastructure, so I have not yet tried anything. I've now built a virtual CentOS 7 server so I can hack around with dracut and grub2, but I'll appreciate any help :)