`pvcreate /dev/sdX` fails with `Device /dev/sdX not found (or ignored by filtering).`

Solution Verified - Updated -

Issue

  • How to create a PV on the devices that are blacklisted from lvm filter in /etc/lvm/lvm.conf file?
  • Created new partition on /dev/sda device. That worked well. While running pvcreate on this partition, pvcreate failed with
pvcreate /dev/sda2
Device /dev/sda2 not found (or ignored by filtering).

Further it was observed that LVM filter is configured such that /dev/sda device should not be recognized.

Environment

  • Red Hat Enterprise Linux.
    • LVM

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