First RHV upgrade changes OS physical volume name on the virtualization host

Posted on

Environment: RHV-4.1 or RHV-4.2
Storage Domain Type: Fiber Channel
LVM Filter: in place, configured according to How to configure LVM filters in RHV 4.1 and higher?

Issue:

When RHV host is setup initially with default settings, its OS physical volume is referred as /dev/sda2, so the LVM filter is:

filter = ["a|^/dev/sda2$|", "r|.*|"]

Once RHV is upgraded (4.1->4.2, or 4.2->4.3), the physical volume changes its name to something like /dev/mapper/41006578977815b7f10p2. Upon reboot, the host doesn't see its LVs and boots into the recovery mode.

Solution:
In recovery mode, modify the filter in /etc/lvm/lvm.conf:

filter = ["a|^/dev/mapper/41006578977815b7f10p2$|", "r|.*|"]

and reboot again.

Responses