Erik Karlin wrote:
on top. The raid one was made from hdb1 and hdc1. Recently when I was
trying to change the size of a logical volume. I noticed that my vg was
using /dev/hdc1 as a physical volume instead of /dev/md0.
I'm running debian sarge and I have/had a 200GB raid 1 devices with LVM2
before we go further, I had to do two tweaks to the /etc/lvm/lvm.conf.
First, you need to make sure you've got:
md_component_detection = 1
Then, I needed to add a filter to remove all of my /dev/hd* drives so
that lvm would only be allowed to see the /dev/md* "drives". There was
already a line there to remove /dev/cdrom, so I hijacked that:
filter = [ "r|/dev/cdrom|", "r|/dev/hd.*|" ]
In the end, I'm left with the following in my /etc/lvm/.cache
# This file is automatically maintained by lvm.
persistent_filter_cache {
valid_devices=[
"/dev/md5",
"/dev/md0",
"/dev/md1"
]
}
md0 is raid1 /, md1 is raid1 swap, and md5 is raid10 over md2/3/4
That resolved my found duplicate PV issues
Thanks...its seems like this will prevent my current predictament from
occuring again. I'll implement it after I fix the raid issue at hand.
Any comments on my recovery procedure?
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]