What is LVM's filter setting, and how do I configure it in RHEL?

Solution Verified - Updated -

Issue

  • The server has multiple disks attached, not all of which are assigned to LVM.
  • The default LVM filter filter = [ "a/.*/" ] and global_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 pvs and pvscan commands 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content