I am having the same issue as this previous post to the lvm list, but cannot find if anyone ever had a solution for it:<br><br><div><b>Author: </b>Tommaso Cecchi<br><b>Date: </b>2006-07-19 11:35<noscript>2006-07-19 16:35</noscript> -500<noscript>UTC</noscript><br>
<b>To: </b>LVM general discussion and development<br><b>Old-Topics: </b><a href="http://archives.free.net.ph/message/20050524.063104.84b50c45.en.html">RE: [linux-lvm] "pvchange --uuid" failed when PV is in use</a><br>
<b>Subject: </b>[linux-lvm] duplicate PV<br></div>Hello everyone,
<br>I have the following problem: I want to use a snapshot mechanism external to
<br>LVM2 (i.e. snapshot from the storage server) so it happens that I access from a
<br>linux box two identical LUNs with the same PVID. It is not a matter of
<br>multipathing, they just are completely different devices with the same content
<br>(and with the same PVID of course).
<br>
<br>What I would like to do is to use and mount the second device on a different
<br>mount point. So:
<br>
<br>/dev/sdd1 is the primary PV
<br>/dev/sdf1 is the snapshot of the primary PV
<br>
<br>The result of pvscan before the discovery is:
<br>
<br>drdb2:~ # pvscan
<br>   PV /dev/sde1   VG drrg2_vg      lvm2 [200.00 GB / 0    free]
<br>   PV /dev/sdd1   VG test_vg       lvm2 [200.00 GB / 0    free]
<br>   PV /dev/sdb1   VG oracledb_vg   lvm2 [220.00 GB / 0    free]
<br>   PV /dev/sdc1   VG oracledb_vg   lvm2 [20.00 GB / 0    free]
<br>   PV /dev/sda3   VG root_vg       lvm2 [59.75 GB / 47.26 GB free]
<br>   Total: 5 [699.73 GB] / in use: 5 [699.73 GB] / in no VG: 0 [0   ]
<br>
<br>after the discovery of the new device is:
<br>
<br>drdb2:~ # pvscan
<br>   Found duplicate PV PnvnzL7YFft76Ky0EaPbOh519SQD5Uxc: using /dev/sdf1 not
<br>/dev/sdd1
<br>   PV /dev/sde1   VG drrg2_vg      lvm2 [200.00 GB / 0    free]
<br>   PV /dev/sdd1   VG test_vg       lvm2 [200.00 GB / 0    free]
<br>   PV /dev/sdb1   VG oracledb_vg   lvm2 [220.00 GB / 0    free]
<br>   PV /dev/sdc1   VG oracledb_vg   lvm2 [20.00 GB / 0    free]
<br>   PV /dev/sda3   VG root_vg       lvm2 [59.75 GB / 47.26 GB free]
<br>   Total: 5 [699.73 GB] / in use: 5 [699.73 GB] / in no VG: 0 [0   ]
<br>
<br>I guess this problem is the same I'd have if I copy any single byte from a 
<br>device to another the last one resulting in having the same LVM label.
<br>
<br>What I tried is to:
<br>
<br>1) vgreduce:
<br>
<br>drdb2:~ # vgreduce test_vg /dev/sdf1
<br>   Found duplicate PV PnvnzL7YFft76Ky0EaPbOh519SQD5Uxc: using /dev/sdf1 not
<br>/dev/sdd1
<br>   Physical Volume "/dev/sdf1" not found in Volume Group "test_vg"
<br>
<br>sdf1 does not belong to test_vg
<br>
<br>2) pvchange --uuid:
<br>
<br>drdb2:~ # pvchange --uuid /dev/sdf1
<br>   Found duplicate PV PnvnzL7YFft76Ky0EaPbOh519SQD5Uxc: using /dev/sdd1 not
<br>/dev/sdf1
<br>   Volume group containing /dev/sdf1 has active logical volumes
<br>   0 physical volumes changed / 1 physical volume not changed
<br>
<br>My idea was to modify the PVID so to let LVM understand they are completely 
<br>different devices.
<br>How can I manage this?
<br>
<br>Thanks for any help you may give me.
<br>Tommaso
<br><br><pre class="art">-- <br>================================================================<br>|     Tommaso Cecchi                          CINECA<br>| System Management Group              Via Magnanelli 6/3 40033<br>
| e-mail: t.cecchi@???             Casalecchio di Reno<br>| Tel: 051/6171411                         Bologna - ITALY<br>| Fax 051/6132198                       <a class="url" href="http://www.cineca.it/">http://www.cineca.it</a><br>
================================================================</pre>
<br><br><pre class="art">_______________________________________________<br>linux-lvm mailing list<br><br>Any help is greatly appreciated.<br><br>Thanks!<br><br>Koree<br>linux-lvm@???<br><a class="url" href="https://www.redhat.com/mailman/listinfo/linux-lvm">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br>
read the LVM HOW-TO at <a class="url" href="http://tldp.org/HOWTO/LVM-HOWTO/">http://tldp.org/HOWTO/LVM-HOWTO/</a></pre><br clear="all"><br>-- <br>Koree A. Smith, RHCE<br>--<br><a href="mailto:koreesmith@gmail.com">koreesmith@gmail.com</a><br>
<a href="mailto:koree@ameth.org">koree@ameth.org</a>