From: "Stamper, Brian P. (ARC-D)[Logyx LLC]" Subject: Re: oblem with lvm and multipath on fedora 13 Date: Fri, 27 Aug 2010 16:48:55 -0500 Message-ID: References: <20100827182634.GB31618@us.ibm.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3246361058636824756==" Return-path: In-Reply-To: <20100827182634.GB31618@us.ibm.com> Content-Language: en List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids --===============3246361058636824756== Content-Language: en Content-Type: multipart/alternative; boundary="_000_C89D80D710732brianpstampernasagov_" --_000_C89D80D710732brianpstampernasagov_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Here's what I've found: If I vgchange the 2 affected VGs to inactive, multipath will pick up the de= vices. However, once I do that, I can't seem to get the VGs reactivated in= such a way to make the volumes mountable. I use vgchange -a y to make the= VG active, then do "vgscan -mknodes". That doesn't seem to create the dev= ices in /dev, only in /dev/mapper, so I've tried issuing /etc/init.d/udev-p= ost reload, which does create the volumes in /dev//. The issue is,= it has no blkid. And if I try to mount the mapper device directly, mount = doesn't know what filesystem type it is. I'm not an lvm pro, so it's possi= ble I'm missing a step or two, but in the past when moving around snapshots= of lvms, vgscan -mknodes has always been sufficient. As for not having multipath in initrd, I have created an initrd image with = the following: mkinitrd /boot/initramfs-with-multipath.img 2.6.33.8-149.fc13.x86_64 --with= =3Ddm-multipath I then created a grub entry for it, booted off it, and no change in behavio= r. Is that what you had in mind? -Brian On 8/27/10 11:26 AM, "Malahal Naineni" wrote: If you can, deactivate the affected VG, restart multipath (it should be able to load maps now) and then activate the VG. If this works, then there is something that is causing LVM to claim devices before multipath does. Thanks, Malahal. PS: If you don't have multipath in initrd, LVM *may* claim paths as PV's before the multipath from active root can claim them. Don't have enough info on Fedora13 initrd if this can happen though. -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel --_000_C89D80D710732brianpstampernasagov_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: [dm-devel] oblem with lvm and multipath on fedora 13
Here’s what I’ve found:

If I vgchange the 2 affected VGs to inactive, multipath will pick up the de= vices.  However, once I do that, I can’t seem to get the VGs rea= ctivated in such a way to make the volumes mountable.  I use vgchange = –a y to make the VG active, then do “vgscan —mknodes̶= 1;.  That doesn’t seem to create the devices in /dev, only in /d= ev/mapper, so I’ve tried issuing /etc/init.d/udev-post reload, which = does create the volumes in /dev/<vg>/<lv>.  The issue is, = it has no blkid.  And if I try to mount the mapper device directly, mo= unt doesn’t know what filesystem type it is.  I’m not an l= vm pro, so it’s possible I’m missing a step or two, but in the = past when moving around snapshots of lvms, vgscan —mknodes has always= been sufficient.

As for not having multipath in initrd, I have created an initrd image with = the following:

mkinitrd /boot/initramfs-with-multipath.img 2.6.33.8-149.fc13.x86_64 --with= =3Ddm-multipath

I then created a grub entry for it, booted off it, and no change in behavio= r.  Is that what you had in mind?

-Brian

On 8/27/10 11:26 AM, "Malahal Naineni" <malahal@us.ibm.com> wrote:

If you can, deactivate the affected VG, restart multipath (it should be
able to load maps now) and then activate the VG. If this works, then
there is something that is causing LVM to claim devices before multipath does.

Thanks, Malahal.
PS: If you don't have multipath in initrd, LVM *may* claim paths as PV's before the multipath from active root can claim them. Don't have enough
info on Fedora13 initrd if this can happen though.

--
dm-devel mailing list
dm-devel@redhat.com
https://www.re= dhat.com/mailman/listinfo/dm-devel

--_000_C89D80D710732brianpstampernasagov_-- --===============3246361058636824756== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3246361058636824756==--