All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] duplicate PV error with 2.6.1 and lvm2
@ 2004-01-30 11:56 David Powers
  2004-01-30 12:08 ` Luca Berra
  0 siblings, 1 reply; 3+ messages in thread
From: David Powers @ 2004-01-30 11:56 UTC (permalink / raw)
  To: linux-lvm

I am attempting to create a simple volume on a soft raid 1 device 
(/dev/md1) on a gentoo linux box running 2.6.1.  The pvcreate seems to 
go fine but when I then attempt to create the volume group I get an odd 
error about duplicate PV's.  It seems as if the code is sometimes 
treating the device as a single device and sometimes seeing the 
underlying disks.  Any help would be appreciated.

disk1 root # cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb1[1] sda1[0]
      244179840 blocks [2/2] [UU]

md0 : active raid1 hdg3[1] hde3[0]
      76035520 blocks [2/2] [UU]

unused devices: <none>
disk1 root # pvcreate /dev/md1
  Physical volume "/dev/md1" successfully created
disk1 root # vgcreate filestore /dev/md1
  Found duplicate PV 5c5olnVSu9cpsAmJ6trmPopx1Hv4ZGv4: using /dev/sdb1 
not /dev/sda1
  Found duplicate PV 5c5olnVSu9cpsAmJ6trmPopx1Hv4ZGv4: using /dev/sdb1 
not /dev/sda1
  Found duplicate PV 5c5olnVSu9cpsAmJ6trmPopx1Hv4ZGv4: using /dev/sdb1 
not /dev/sda1
  Volume group "filestore" successfully created

-David Powers

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] duplicate PV error with 2.6.1 and lvm2
  2004-01-30 11:56 [linux-lvm] duplicate PV error with 2.6.1 and lvm2 David Powers
@ 2004-01-30 12:08 ` Luca Berra
  2004-01-31  9:17   ` [linux-lvm] duplicate PV error with 2.6.1 and lvm2 - resolved David Powers
  0 siblings, 1 reply; 3+ messages in thread
From: Luca Berra @ 2004-01-30 12:08 UTC (permalink / raw)
  To: linux-lvm

On Fri, Jan 30, 2004 at 11:55:08AM -0500, David Powers wrote:
>I am attempting to create a simple volume on a soft raid 1 device 
>(/dev/md1) on a gentoo linux box running 2.6.1.  The pvcreate seems to 
>go fine but when I then attempt to create the volume group I get an odd 
>error about duplicate PV's.  It seems as if the code is sometimes 
>treating the device as a single device and sometimes seeing the 
>underlying disks.  Any help would be appreciated.
>
either modify /etc/lvm/lvm.conf in order to ignore the devices that are
part of your md array or look at the patch i posted to this list under
the subject: "[patch] lvm2 and md component devices"

L.

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] duplicate PV error with 2.6.1 and lvm2 - resolved
  2004-01-30 12:08 ` Luca Berra
@ 2004-01-31  9:17   ` David Powers
  0 siblings, 0 replies; 3+ messages in thread
From: David Powers @ 2004-01-31  9:17 UTC (permalink / raw)
  To: linux-lvm

That worked like a charm - thank you very much.  I added:

devices { filter=["r|sd[a-z]|"] } to /etc/lvm/lvm.conf (to ignore /dev/sda and /dev/sdb) and everything else fell into place.

-David Powers



Luca Berra wrote:

> On Fri, Jan 30, 2004 at 11:55:08AM -0500, David Powers wrote:
>
>> I am attempting to create a simple volume on a soft raid 1 device 
>> (/dev/md1) on a gentoo linux box running 2.6.1.  The pvcreate seems 
>> to go fine but when I then attempt to create the volume group I get 
>> an odd error about duplicate PV's.  It seems as if the code is 
>> sometimes treating the device as a single device and sometimes seeing 
>> the underlying disks.  Any help would be appreciated.
>>
> either modify /etc/lvm/lvm.conf in order to ignore the devices that are
> part of your md array or look at the patch i posted to this list under
> the subject: "[patch] lvm2 and md component devices"
>
> L.
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-31  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-30 11:56 [linux-lvm] duplicate PV error with 2.6.1 and lvm2 David Powers
2004-01-30 12:08 ` Luca Berra
2004-01-31  9:17   ` [linux-lvm] duplicate PV error with 2.6.1 and lvm2 - resolved David Powers

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.