LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-21-2013, 08:10 PM   #1
canopus69
Member
 
Registered: Sep 2013
Posts: 72

Rep: Reputation: Disabled
Cloning and VG UUIDs change


When we clone Redhat VMs we end up getting same uuid for VG, PV and LVs across all cloned VMs.

Is it important to change the UUIDs and how do we change them ?

Last edited by canopus69; 11-21-2013 at 11:08 PM. Reason: typo
 
Old 11-21-2013, 10:36 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Code:
blkid
uuidgen
this will generate a random UUID
sudo tune2fs /dev/sdX? -U new_uuid_string
 
Old 11-21-2013, 11:24 PM   #3
canopus69
Member
 
Registered: Sep 2013
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by andrewthomas View Post
Code:
blkid
uuidgen
this will generate a random UUID
sudo tune2fs /dev/sdX? -U new_uuid_string
Thanks it worked for LVs and /boot.

Is there any way to change root volume group uuid and boot disk uuid ?
 
Old 11-21-2013, 11:29 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
"man vgchange"
 
Old 11-22-2013, 12:02 AM   #5
canopus69
Member
 
Registered: Sep 2013
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
"man vgchange"
Problem with that is, it doesn't help to change root vg which is always online unless the system is down or in some sort of boot mode.
 
Old 11-22-2013, 12:03 AM   #6
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by canopus69 View Post
Thanks it worked for LVs and /boot.
You're welcome. Glad to be of help.
 
Old 11-27-2013, 06:55 PM   #7
canopus69
Member
 
Registered: Sep 2013
Posts: 72

Original Poster
Rep: Reputation: Disabled
I finally worked out the solution using rescue method. It is for Redhat VM.

Connect OS DVD file in vCenter CDROM icon.
Upon boot press F2 to go into Virtual BIOS Setup.
Change order to boot from DVD drive. Save and exit.
In new screen select
“Rescue installed system.”
Then “English”
Then “us”
Then “Local cd/dvd”
Then “Networking” -> No
Then “Rescue”  Skip
Then “shell Start shell”.
Now at Command line
vgchange –uuid vg00
vgchange –uuid /dev/sda2
reboot
Press [F2] and put back the old boot order in Bios. Save and exit.
Disconnect OS-DVD-file from vCenter.
That is all.

Last edited by canopus69; 11-27-2013 at 06:56 PM. Reason: typo
 
Old 11-28-2013, 10:21 AM   #8
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
Check this HOWTO LUNs on Linux using native tools
Close to end of blog, there are about cloning.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How is this possible UUIDs changing every reboot mrminty Linux - General 3 08-01-2011 04:25 AM
Linux UUIDs tinyTux Linux - Server 3 03-23-2011 11:51 AM
Problem using UUIDs Aldeb Linux - Hardware 11 10-27-2008 10:27 AM
LXer: What UUIDs can do for you LXer Syndicated Linux News 0 09-11-2008 03:40 PM
Can Ubuntu 7.10 be run without UUIDs? taylorkh Ubuntu 5 04-28-2008 12:23 PM

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

All times are GMT -5. The time now is 07:00 AM.

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