Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Duplicate PVs found when using LVM on RAID1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
junky
n00b
n00b


Joined: 20 Dec 2002
Posts: 13

PostPosted: Wed Mar 24, 2004 11:48 am    Post subject: Duplicate PVs found when using LVM on RAID1 Reply with quote

Hi,
I've done lots of searching and can't find any reports of this problem. Any help you can offer would be appreciated. I have two 160GB disks in my machine, partitioned as so follows

hda1 hdc1 RAID1 Set 100MB md1
hda2 hdc2 RAID1 Set 2GB md2
hda3 hdc3 RAID1 Set using rest of disk md3

Then I do a pvcreate which completes without errors

pvcreate /dev/md3

Then I do a vgcreate which fails with errors

vgcreate -Ay rootvg /dev/md3
Found Duplicate PV PVID:<blah blah blah> using hda3 not hdc3

It seems that although I specifcied md3 as the target device its done a scan of all other devices including hda3 and hdc3 and found duplicate PVs (which it would). But for some reason it doesn't like this.

Can anyone advise on a solution ?

Thanks

Junky
Back to top
View user's profile Send private message
Vaughn
n00b
n00b


Joined: 28 May 2003
Posts: 33

PostPosted: Wed Mar 24, 2004 6:23 pm    Post subject: Reply with quote

Sure; I have a similar setup, and ran into the same problem. (Although magnified a bit. :P )

You need to put some incantations in /etc/lvm/lvm.conf; the man page is pretty clear on it, but I'll paste my own here so you can use that as a base.

Here you go:

Code:
devices { filter=["r|sd[a-z]|", "r|hd[a-z]|"] }

#devices { filter=["r|.*discs.*|"] }
#devices { filter=["r|hd[a-z]|"] }


The latter two are commented out, as you can see.
More to the point, only one filter command (possibly device command) will actually work, but you can put multiple statements in it, like I have.
Back to top
View user's profile Send private message
Vaughn
n00b
n00b


Joined: 28 May 2003
Posts: 33

PostPosted: Wed Mar 24, 2004 6:26 pm    Post subject: Reply with quote

Oh, and make sure you copy this file to /etc/lvm on your root partition before rebooting, or you will lose your install and have to start over.

And, BTW, no Root-on-LVM-on-RAID for you. At least not without putting that same incantation in /etc/lvm in the initrd image manually. ;)
Back to top
View user's profile Send private message
junky
n00b
n00b


Joined: 20 Dec 2002
Posts: 13

PostPosted: Wed Mar 24, 2004 7:19 pm    Post subject: Reply with quote

Vaughn,

8) Kewl. I thought I had read just about every word written on this subject, obviously not quite. Thanks for your help with this. I'll give it a try at the weekend.

Thanks again.

Junky
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum