LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-09-2008, 08:03 AM   #1
jogo
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
[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

Last edited by jogo; 10-09-2008 at 08:05 AM.
 
Old 10-09-2008, 08:42 AM   #2
jogo
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Original Poster
Rep: Reputation: 0
solved!

2 days for a stupid solution. vgscan -ay, *without the name of the VGs*, will activate all VGs discovered. ;-)
 
  


Reply

Tags
clone, iscsi, lun, lvm, vm



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate LVM mab1376 Linux - Software 0 06-26-2008 12:53 PM
LVM2: Renaming VGs and LVs, combining VGs haertig Linux - Software 6 06-30-2007 02:02 PM
LXer: Back Up (And Restore) LVM Partitions With LVM Snapshots LXer Syndicated Linux News 0 04-17-2007 11:16 AM
How to update FC4 -> FC5 with LVM when Anaconda does not exclude other VGs? Why_Why Fedora 3 08-03-2006 05:32 AM
LVM problems (VGs found, but not LVs) jimisola Linux - Software 2 12-11-2005 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration