RHEL9 lvm2 cannot find imported VG physical volumes.
Issue
- When trying to import foreign VG’s, while the physical volumes for the VG's are present in
lsblkandlsscsithey are not found by LVM2. - After the system's OS has been fully reinstalled, LVM is not able to find non-root VGs that should still be present.
pvscan --cachereportsexcluded by devices file (checking PVID).- A virtual disk or Raw Device Mapping (RDM) LUN is detached from one server (e.g., RHEL 7 or RHEL 8) and attached to a RHEL 9 server for VM migration, data recovery, or disaster recovery (DR) purposes.
- LVM commands like
pvs,vgs, orlvssilently ignore the newly attached disk and its volume groups, even thoughblkidlists the partitions with validTYPE="LVM2_member"signatures and the devices are present in/dev/.
Environment
- Red Hat Enterprise Linux 8, 9, 10
- lvm2-2.03.12-10.el8 and later
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.