What is LVM's filter setting, and how do I configure it in RHEL?
Issue
- The server has multiple disks attached, not all of which are assigned to LVM.
- The default LVM filter
filter = [ "a/.*/" ]andglobal_filter = [ "a/.*/" ]causes unnecessary I/O scanning across devices at boot. - LVM commands report I/O errors against passive paths of multipath devices.
- LVM commands report "Found duplicate" UUID detection events
-
The
pvsandpvscancommands display warnings similar to the following:WARNING: Not using lvmetad because duplicate PVs were found. : WARNING: PV <uuid> on /dev/sdX was already found on /dev/mapper/mpatha. WARNING: PV <uuid> prefers device /dev/mapper/mpatha becasue device is used by LVM.
Environment
- Red Hat Enterprise Linux (RHEL) 8
- Red Hat Enterprise Linux (RHEL) 7
- Red Hat Enterprise Linux (RHEL) 6
- Red Hat Enterprise Linux (RHEL) 5
- Logical Volume Manager (LVM/LVM2)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.