`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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.