Bug 117966 - Request for patch to LVM
Summary: Request for patch to LVM
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: lvm
Version: 3.0
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Heinz Mauelshagen
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2004-03-10 16:16 UTC by William C. Mount
Modified: 2007-11-30 22:07 UTC (History)
4 users (show)

Clone Of:
Last Closed: 2005-05-20 03:25:51 UTC

Attachments (Terms of Use)
Add vpath support to lvm tools (1.35 KB, patch)
2004-04-01 16:50 UTC, Tom "spot" Callaway
no flags Details | Diff
IBM SDD support: /dev/vpath and multiple path (2.78 KB, patch)
2005-01-27 13:46 UTC, Pierre Wendling
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2005:182 low SHIPPED_LIVE lvm bug fix update 2005-05-19 04:00:00 UTC

Description William C. Mount 2004-03-10 16:16:17 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; 

Description of problem:
When a box is attached to IBM Shark Storage, to take advantage of the 
multipathing, we must install IBM's SDD driver.  this makes the 
multipath devices show up as a /dev/vpath device.  I can perform all 
disk related tools on that device, fdisk, mkfs, etc.  I can use them 
in a software raid array.  However, I cannot use them with LVM.  LVM 
complains that it is not a valid scsi device.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Install SDD on ES3 with a box connected to shark.
2.Configure the SDD vpath devices
3.attempt to run pvcreate -f /dev/vpath...

Additional info:

Comment 1 Tom "spot" Callaway 2004-04-01 16:50:31 UTC
Created attachment 99047 [details]
Add vpath support to lvm tools

This patch should enable vpath support in the lvm tools.

Comment 2 Tom "spot" Callaway 2004-04-01 17:24:56 UTC
Also, test packages are available here:


Could you please test them and see if this enables the lvm tools to
operate on the vpath device?

Comment 3 William C. Mount 2004-04-01 21:39:35 UTC
So far so good.  I was able to create a volume group and logical 
volumes without any problems whatsoever.  I've got a few other things 
to test, but I'll keep you in the loop.

Thanks for your help!

Comment 4 Pierre Wendling 2005-01-27 13:46:47 UTC
Created attachment 110296 [details]
IBM SDD support: /dev/vpath and multiple path

Comment 5 Pierre Wendling 2005-01-27 13:49:43 UTC
pvcreate is ok since 1.0.8-9

multiple path problem in all versions up to and including 1.0.8-9:

after reboot or vgscan, the underlying /dev/sdX is used instead of
/dev/vpath, thus loosing failover and load balancing

steps to reproduce:
- pvcreate /dev/vpatha
- vgcreate myvg /dev/vpatha
- vgdisplay -v myvg
so far, so good (you see /dev/vpatha as PV Name in the Physical Volumes

- vgchange -a n myvg
- vgscan
- vgchange -a y myvg
- vgdisplay -v myvg
you'll see /dev/sdX in the PV Name field in the Physical Volumes

I've got a patch that might be used as a starting point. It works for
us. I've attached is to this case as attachment #110296 [details]

Comment 6 Heinz Mauelshagen 2005-01-27 14:22:59 UTC
Patch incorparated and extended to cover EMC Powerpath too.

Comment 7 Dennis Gregorovic 2005-05-20 03:25:51 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Comment 8 John Taber 2005-06-13 17:52:05 UTC
I seem to still have a problem with pvcreate after patching...:

[root@pni-dvnbu04 dev]# rpm -qi lvm
Name        : lvm                          Relocations: (not relocatable)
Version     : 1.0.8                             Vendor: Red Hat, Inc.
Release     : 12.2                          Build Date: Fri 18 Feb 2005 
07:43:33 AM MST
Install Date: Mon 13 Jun 2005 10:00:08 AM MST      Build Host: 
Group       : System Environment/Base       Source RPM: lvm-1.0.8-12.2.src.rpm
Size        : 1241387                          License: GPL
Signature   : DSA/SHA1, Wed 11 May 2005 05:46:08 PM MST, Key ID 219180cddb42a60e
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.sistina.com/products_lvm.htm
Summary     : Linux Logical Volume Manager utilities.
Description :
LVM includes all of the support for handling read/write operations on
physical volumes (hard disks, RAID-Systems, magneto optical, etc.,
multiple devices (MD), see mdadd(8) or even loop devices, see
losetup(8)), creating volume groups (kind of virtual disks) from one
or more physical volumes and creating one or more logical volumes
(kind of logical partitions) in volume groups.

[root@pni-dvnbu04 dev]# pvcreate /dev/emcpowera
pvcreate -- invalid physical volume "/dev/emcpowera"

Am I doing something wrong?

Note You need to log in before you can comment on or make changes to this bug.