How do you mount logical volume from a duplicate PV? The duplicate PV here is a VMware VM vmdk restored from a NAS datastore snapshot, NAS datastore snapshot being the backup method for VM in our NAS cluster.
1) I use the datastore browser to copy the vmdk from [datastore].snapshot/snapshot_time_folder/vmname/diskname.vmdk to a folder in [datastore]vmname/backup
2) I attach the copied vmdk to the VM
3) After this, LVM commands inside the Guest OS reports a duplicate PV and I cannot access the VGs and LVs from the restored disk. The reason being that the PV, LV and VG has the same UUID as the original ones still mounted. Continue reading