LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 10-09-2008, 09:03 AM   #1
jogo
LQ Newbie
 
Registered: Oct 2008
Posts: 2
Thanked: 0
[LVM] duplicate VGs


[Log in to get rid of this advertisement]
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 09:05 AM..
jogo is offline  
Tag This Post , , , ,
Reply With Quote
Old 10-09-2008, 09:42 AM   #2
jogo
LQ Newbie
 
Registered: Oct 2008
Posts: 2
Thanked: 0

Original Poster
solved!

2 days for a stupid solution. vgscan -ay, *without the name of the VGs*, will activate all VGs discovered. ;-)
jogo is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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-27-2008 10:44 PM
LVM2: Renaming VGs and LVs, combining VGs haertig Linux - Software 6 06-30-2007 03:02 PM
LXer: Back Up (And Restore) LVM Partitions With LVM Snapshots LXer Syndicated Linux News 0 04-17-2007 12:16 PM
How to update FC4 -> FC5 with LVM when Anaconda does not exclude other VGs? Why_Why Fedora 3 08-03-2006 06:32 AM
LVM problems (VGs found, but not LVs) jimisola Linux - Software 2 12-11-2005 12:59 PM


All times are GMT -5. The time now is 06:19 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration