Visible Yet Missing Logical Volumes
While working on an automated install script for an embedded board, I hit an issue with the logical volumes never showing up in /dev/mapper, and in turn unable to be mounted. This left me in the dracut emergency shell (after about three minutes), with little to go on beyond the following error:
After booting into a live CD I checked to make sure the volume group showed up under pvscan like so:
And the logical volumes were also showing up with lvscan:
Notice that they are both marked inactive? That's our issue. To fix it we can mark all logical volumes under our volume group as active (replace "system" with your volume group name):
|
|
This didn't fix the LVM volumes showing up at boot but it did allow me to get back into my root filesystem as a chroot so I could investigate the issue which I've finished documenting in another post.