[linux-lvm] LVM and Device Mapper
Zac Slade
krakrjak at volumehost.net
Fri Jun 16 18:13:22 UTC 2006
On Thursday 15 June 2006 22:14, C'est Pierre wrote:
> Hello,
>
> I've setup multipath with multipath-tools and I guess everything is OK
> there. However, I can't get lvm to recognize the multipath'ed devices:
Need to check that your /etc/lvm/lvm.conf file is accepting those devices.
> # dmsetup ls
> 3600508b40010130d00006000011c0000p1 (253, 4)
> system-lv03 (253, 2)
> system-lv01 (253, 1)
> system-lv00 (253, 0)
> dm-3p2 (253, 7)
> dm-3p1 (253, 6)
>
> cabtagdb01:~ # fdisk -l /dev/dm-3
>
> Disk /dev/dm-3: 53.6 GB, 53687091200 bytes
> 64 heads, 32 sectors/track, 51200 cylinders
> Units = cylinders of 2048 * 512 = 1048576 bytes
>
> Device Boot Start End Blocks Id System
> /dev/dm-3p1 1 1 1008 83 Linux
> /dev/dm-3p2 2 51200 52427776 8e Linux LVM
> cabtagdb01:~ # fdisk -l /dev/mapper/3600508b40010130d00006000011c0000
>
> Disk /dev/mapper/3600508b40010130d00006000011c0000: 53.6 GB, 53687091200
> bytes 64 heads, 32 sectors/track, 51200 cylinders
> Units = cylinders of 2048 * 512 = 1048576 bytes
>
> Device Boot Start
> End Blocks Id System
> /dev/mapper/3600508b40010130d00006000011c0000p1 1
> 1 1008 83 Linux
> /dev/mapper/3600508b40010130d00006000011c0000p2 2
> 51200 52427776 8e Linux LVM
>
>
> # pvcreate /dev/dm-3p2
> Device /dev/dm-3p2 not found.
So you need something like:
filter = [ "a|dm-.*|", <other rules here> ]
In the devices {} section of your /etc/lvm/lvm.conf file so it will accept the
device.
--
Zac Slade
krakrjak at volumehost.net
ICQ:1415282 YM:krakrjak AIM:ttyp99
More information about the linux-lvm
mailing list