Nested Partition - The pvcreate command fails with error: "Device /dev/mapper/mpathXN not found (or ignored by filtering)."
Issue
- The
pvcreatecommand fails amultipathdevice with error:Device /dev/mapper/mpathXN not found (or ignored by filtering).
[root@host]# pvcreate /dev/mapper/mpathXN
Device /dev/mapper/mpathXN not found (or ignored by filtering).
- A similar message may be seen on single path storage devices, eg:
[root@host]# pvcreate /dev/sdXN
Device /dev/sdXN not found (or ignored by filtering).
- Newer kernel versions with new
lvm2packages may have slightly different errors, eg:
~~~pvcreate fails while using multipath device
[root@r93 ~]# pvcreate /dev/mapper/mpathXN
Cannot use /dev/mapper/mpathXN: device is partitioned
~~~~
* A nested GPT label without a partition may also cause this same issue.
Environment
- Red Hat Enterprise Linux 5, 6, 7, 8, 9
- LVM
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.