Advertisements

Tag Archives: lvm

Error: pvcreate: Device /dev/mapper/software01p1 not found

When trying to run pvcreate on a partition that exists on the system, it says that device is not found.

root@linux:/ # pvcreate /dev/mapper/software01p1
Device /dev/mapper/software01p1 not found.

The device exists on the system

root@linux:/ # ls -l /dev/mapper/software01*
brw——- 1 root root 253, 7 Jul 27 10:23 /dev/mapper/software01
brw——- 1 root root 253, 8 Jul 27 10:27 /dev/mapper/software01p1

The problem was that the LVM filter is not configured to consider it as a valid device.

Edit the file /etc/lvm/lvm.conf and edit the parameter filter accordingly. I used the filter below:

root@linux:/ # vi /etc/lvm/lvm.conf
filter = [ “a|cciss/.*|” “a|/dev/mapper/.*|”, “r|/dev/sd.*|”, “r|/dev/dm-.*|” ]

Advertisements

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-.*|” ]

OCFS2 Support for LVM/LVM2

Here is the official document about Oracle Linux Support for GFS, LVM and LVM2 (Doc ID 423207.1)

As of latest update of this document any combination of OCFS2 with LVM or LVM2 is not supported including clustered and single node configurations.

%d bloggers like this: