[dm-devel] oblem with lvm and multipath on fedora 13

Malahal Naineni malahal at us.ibm.com
Sun Aug 29 18:39:43 UTC 2010


> [root at testfs boot]# mkdir foo
> [root at testfs boot]# cd foo
> [root at testfs foo]# zcat ../initramfs-with-multipath.img | cpio -icd
> 26392 blocks
> [root at testfs foo]# ls
> bin                emergency  initqueue-finished  mount        proc     tmp
> cmdline            etc        initqueue-settled   pre-pivot    sbin     usr
> dev                init       lib                 pre-trigger  sys      var
> dracut-005-3.fc13  initqueue  lib64               pre-udev     sysroot
> [root at testfs foo]# find . -print | grep -i multi
> ./lib/modules/2.6.33.8-149.fc13.x86_64/kernel/drivers/md/dm-multipath.ko

The dm-multipath.ko kernel module is present. It needs multipath command
calling from an initrd script (/init ???)

> /dev/sdq: UUID="2VqqWi-cWZo-Tu5T-cC40-z4CW-ZOti-aWhi5F" TYPE="LVM2_member"
> /dev/sdr: UUID="JV8nOF-NxdU-WAZP-ZY9h-iXo8-HJWs-CjSjTj" TYPE="LVM2_member"
> /dev/sds: UUID="Crn275-rSvZ-6Bl1-LplP-c0iG-PvtZ-OVofd8" TYPE="LVM2_member"
> /dev/sdc: UUID="2VqqWi-cWZo-Tu5T-cC40-z4CW-ZOti-aWhi5F" TYPE="LVM2_member"
> /dev/sdd: UUID="JV8nOF-NxdU-WAZP-ZY9h-iXo8-HJWs-CjSjTj" TYPE="LVM2_member"
> /dev/sde: UUID="Crn275-rSvZ-6Bl1-LplP-c0iG-PvtZ-OVofd8" TYPE="LVM2_member"

The above drives are added to LVM without any partitions. Everything
else has partitions, so you need to run "kpartx" on each multipath
device to create mappings for partitions. Did you enable multipathd
service (I thought it should call kpartx or maybe a udev rule)?

I saw device mapper reload ioctl failures when you enabled the VGs. The
LVM scan seems to use single paths rather than multipath devices (from
duplicate PV messages).

So run "kpartx -a /dev/mapper/<yourmultipathdevice>" on each multipath
device and then run LVM scan.

If LVM still uses paths and complains about duplicate PVs, then you may
need create a right filter in /etc/lvm/lvm.conf to use intended devices.
I hope this is not necessary.

Thanks, Malahal.




More information about the dm-devel mailing list