All of lore.kernel.org
 help / color / mirror / Atom feed
From: Malahal Naineni <malahal@us.ibm.com>
To: dm-devel@redhat.com
Subject: Re: oblem with lvm and multipath on fedora 13
Date: Sun, 29 Aug 2010 11:39:43 -0700	[thread overview]
Message-ID: <20100829183943.GA22562@us.ibm.com> (raw)
In-Reply-To: <12DC34690DFFAC4FACD7A7255FC5E14A131BCDE0DB@NDJSSCC07.ndc.nasa.gov>

> [root@testfs boot]# mkdir foo
> [root@testfs boot]# cd foo
> [root@testfs foo]# zcat ../initramfs-with-multipath.img | cpio -icd
> 26392 blocks
> [root@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@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.

  reply	other threads:[~2010-08-29 18:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-27 18:03 oblem with lvm and multipath on fedora 13 Stamper, Brian P. (ARC-D)[Logyx LLC]
2010-08-27 18:26 ` Malahal Naineni
2010-08-27 18:57   ` Stamper, Brian P. (ARC-D)[Logyx LLC]
2010-08-27 21:48   ` Stamper, Brian P. (ARC-D)[Logyx LLC]
2010-08-28 17:47     ` Malahal Naineni
2010-08-28 21:48       ` Stamper, Brian P. (ARC-D)[Logyx LLC]
2010-08-29 18:39         ` Malahal Naineni [this message]
2010-08-29 19:08           ` Stamper, Brian P. (ARC-D)[Logyx LLC]
2010-08-29 20:27             ` Malahal Naineni
2010-08-29 21:10               ` Stamper, Brian P. (ARC-D)[Logyx LLC]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100829183943.GA22562@us.ibm.com \
    --to=malahal@us.ibm.com \
    --cc=dm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.