View previous topic :: View next topic |
Author |
Message |
junky n00b
Joined: 20 Dec 2002 Posts: 13
|
Posted: Wed Mar 24, 2004 11:48 am Post subject: Duplicate PVs found when using LVM on RAID1 |
|
|
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 |
|
|
Vaughn n00b
Joined: 28 May 2003 Posts: 33
|
Posted: Wed Mar 24, 2004 6:23 pm Post subject: |
|
|
Sure; I have a similar setup, and ran into the same problem. (Although magnified a bit. )
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 |
|
|
Vaughn n00b
Joined: 28 May 2003 Posts: 33
|
Posted: Wed Mar 24, 2004 6:26 pm Post subject: |
|
|
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 |
|
|
junky n00b
Joined: 20 Dec 2002 Posts: 13
|
Posted: Wed Mar 24, 2004 7:19 pm Post subject: |
|
|
Vaughn,
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 |
|
|
|