[LVM] duplicate VGs
Hi all!
I have cloned a LUN. This LUN has a Linux VM with LVM. The new cloned LUN has been mapped to a server and discovered with iSCSI. I need to mount the filesystem in a Dom0 because is necessary change some files (network). When I run a vgscan the new VG is found with its own orignal name "vg00". The VG created in Dom0 is called vg00 too and here start the problem: # vgscan Reading all physical volumes. This may take a while... Found volume group "vg00" using metadata type lvm2 Found volume group "vg00" using metadata type lvm2 # pvs PV VG Fmt Attr PSize PFree /dev/sda2 vg00 lvm2 a- 67.62G 33.66G /dev/sdbc2 vg00 lvm2 a- 7.88G 0 I could change the name of the VG using the UUID but if I do that the VM wont boot because vg00 is not found. Of course the vg00 active (dom0 system) could not be renamed because of its state. I can't activate the VG (vgchange -ay vg00) because vg00 (Dom0) is already activated. It is not possible mount /dev/iscsi/xxx/part because is LVM formated Any idea about how to mount the inactive vg00? thanks in advance |
solved!
2 days for a stupid solution. vgscan -ay, *without the name of the VGs*, will activate all VGs discovered. ;-) |
All times are GMT -5. The time now is 01:54 AM. |