* Re: [linux-lvm] Exposing the same VG from two different disks
@ 2009-06-16 12:45 liam
2009-06-16 14:08 ` [linux-lvm] pvcreate --uuid and keep data jose nuno neto
0 siblings, 1 reply; 2+ messages in thread
From: liam @ 2009-06-16 12:45 UTC (permalink / raw)
To: linux-lvm
Thanks to everyone who replied. The vgimportclone worked really well and I can recommend it to anyone who is in my situation.
I have a follow up question about how the LVM filter works in the script. Should I post here or to the LVM Devel list instead?
Just in case here is the right place !!! My question is, I have multiple paths to the same disks so I have masked the individual paths (the sd devices) and just exposed the logical deives (the emcpower devices). The script loses this filter and complains about lots of duplicate PV ids as it runs through. This "problem" is purely cosmetic and doesn't seem to in anyway effect the script from working. If this is not expected behaviour and the fix is fairly straight forward I'd be more than happy to test any fix. I've had a look at trying to see where the errors are coming from but I have to admit my LVM knowledge isn't up to it.
Thanks again to everyone for their hope,
Liam
>On Fri, 2009-06-05 at 15:18 +0200, liam@landv.org.uk wrote:
>> Hi,
>>
>> I'm not sure if what I'm trying to do is possible or not but hopefully
>> someone out there can help!!
>>
>> I have a volume group which consists of a LUN (/dev/emcpowerv1) in an
>> EMC cabinet. To backup up the disk I use EMC technology to synchronise
>> a second LUN (/dev/emcpoweraf1) with the first, when the
>> synchronisation is complete I then break the connection. At this point
>> I have two identical volume groups exposed to the same host. What I
>> would like to do is rename the second volume group and mount its
>> logical volumes. However I can't because (understandably) LVM doesn't
>> like having two identical volume groups so when I issue pvchange -u I
>> get...
>>
>>
>> # pvchange -u /dev/emcpoweraf1
>> Found duplicate PV dXiYI6nVqu8UpXO2mlaWiKKPKSBPrRbn: using /dev/emcpowerv1
>not /dev/emcpoweraf1
>> get_pv_from_vg_by_id: vg_read failed to read VG !
>> /dev/emcpowerv1: write failed after 0 of 4096 at 4096: Operation not
>permitted
>> pv_write with new uuid failed for /dev/emcpowerv1.
>> 0 physical volumes changed / 1 physical volume not changed
>>
>> Notice I issue the command against /dev/emcpoweraf1 but it complains about
>writing to /dev/emcpowerv1.
>
>Take a look at the vgimportclone script posted to the lvm-devel list
>last month:
>
>http://www.redhat.com/archives/lvm-devel/2009-May/msg00130.html
>
>Regards,
>Bryn.
>
>
>_______________________________________________
>linux-lvm mailing list
>linux-lvm@redhat.com
>https://www.redhat.com/mailman/listinfo/linux-lvm
>read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [linux-lvm] pvcreate --uuid and keep data
2009-06-16 12:45 [linux-lvm] Exposing the same VG from two different disks liam
@ 2009-06-16 14:08 ` jose nuno neto
0 siblings, 0 replies; 2+ messages in thread
From: jose nuno neto @ 2009-06-16 14:08 UTC (permalink / raw)
To: LVM general discussion and development
Hellos
I've got a error on vgdisplay saying that a physical volume is lost
vgdisplay --partial oracle
Partial mode. Incomplete volume groups will be activated read-only.
Couldn't find device with uuid '1dIe2G-QEtx-MGsI-DGF1-Lk10-nl8E-eg1Bb6'.
Checked the archive/backup metadata info and it's not up2date, so can't
issue a vgcfgrestore, right?
I googled and found this aproach
pvcreate --uuid LOST ID
My question is, what about the date in the partiton? is it kept? no
problemos with it?
Thanks
Jose
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-16 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-16 12:45 [linux-lvm] Exposing the same VG from two different disks liam
2009-06-16 14:08 ` [linux-lvm] pvcreate --uuid and keep data jose nuno neto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).