Error adding disk partition to LVM – Device /dev/mapper/mpath1p1 not found (or ignored by filtering)

I’ve tried to add a disk partition to the LVM but I was receiving the message “Device /dev/mapper/mpath1p1 not found (or ignored by filtering)”

root@linux:~ # multipath -ll mpath1
mpath1 (360060e800573b800000073b800001703) dm-24 HP,OPEN-V*3
[size=500G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 0:0:0:4 sdi 8:128 [active][ready]
\_ 1:0:0:4 sdk 8:160 [active][ready]

I created a new msdos label on this disk, partitioned the disk and then I ran kpartx to make the partition available to the operating system

root@linux:~ # kpartx -a /dev/mapper/mpath1

The device file was created

root@linux:~ # ls -l /dev/mapper/mpath1*
brw-rw—- 1 root disk 253, 24 Feb 22 17:22 /dev/mapper/mpath1
brw-rw—- 1 root disk 253, 27 Feb 22 17:24 /dev/mapper/mpath1p1

Checking the disk partition

root@linux:~ # fdisk -l /dev/mapper/mpath1

Disk /dev/mapper/mpath1: 536.8 GB, 536871567360 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/mapper/mpath1p1 1 65270 524281243+ 8e Linux LVM

I running into trouble to add this disk partition to the LVM.

root@linux:~ # pvcreate /dev/mapper/mpath1p1
Device /dev/mapper/mpath1p1 not found (or ignored by filtering).

This problem was resolved by editing the file /etc/lvm/lvm.conf and configuring the following filter

filter = [ “a|cciss/.*|”, “a|mapper/.*|”, “r|/dev/sd.*|”, “r|/dev/dm-.*|” ]