pvcreate failed with error "Device /dev/sdX not found (or ignored by filtering)."

Solution Verified - Updated -

Issue

  • pvcreate failed with error Device /dev/sdX not found (or ignored by filtering).
#  pvcreate   /dev/sdb
  Device /dev/sdb not found (or ignored by filtering).
#  pvcreate -vvv   /dev/sdb
        Processing: pvcreate -vvv /dev/sdb
        O_DIRECT will be used
      Setting global/locking_type to 1
      Setting global/wait_for_locks to 1
      File-based locking selected.
      Setting global/locking_dir to /var/lock/lvm
      metadata/pvmetadataignore not found in config: defaulting to n
      metadata/pvmetadatasize not found in config: defaulting to 255
      metadata/pvmetadatacopies not found in config: defaulting to 1
      Locking /var/lock/lvm/P_orphans WB
        _do_flock /var/lock/lvm/P_orphans:aux WB
        _do_flock /var/lock/lvm/P_orphans WB
        _undo_flock /var/lock/lvm/P_orphans:aux
        /dev/sdb: Added to device cache
        Opened /dev/sdb RO O_DIRECT
      /dev/sdb: size is 285671424 sectors
        /dev/sdb: block size is 4096 bytes
        Closed /dev/sdb
      /dev/sdb: size is 285671424 sectors
        Opened /dev/sdb RO O_DIRECT
        /dev/sdb: block size is 4096 bytes
        Closed /dev/sdb
        dm version   OF   [16384]
        dm status   (253:27) OF   [16384]
        /dev/sdb: Skipping mpath component device
        /dev/sdb: Skipping (cached)
      Setting devices/ignore_suspended_devices to 0
      Setting devices/cache_dir to /etc/lvm/cache
      Setting devices/write_cache_state to 1
        Opened /dev/sdb RO O_DIRECT
      /dev/sdb: size is 285671424 sectors
        /dev/sdb: block size is 4096 bytes
        Closed /dev/sdb
        dm status   (253:27) OF   [16384]
        /dev/sdb: Skipping mpath component device
  Device /dev/sdb not found (or ignored by filtering).
      Unlocking /var/lock/lvm/P_orphans
        _undo_flock /var/lock/lvm/P_orphans

Environment

  • Red Hat Enterprise Linux (RHEL) 5, 6, 7, 8
  • lvm2
  • device-mapper-multipath

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