LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-28-2021, 08:54 PM   #1
waninick
LQ Newbie
 
Registered: May 2016
Posts: 3

Rep: Reputation: Disabled
Trying to move a VG from one VM to another with the data intact


I have a virtual RHEL 6 machine with a volume group (vg01) that spans two vdisks. The 4 logical volumes that I want to move are on those vdisks.

The receiving VM is a RHEL 8 with a single volume group (vg00) and several logical volumes for the standard OS disk layout.

I have gone through the process detailed below:

umount all 4 mount points
vgchange -an vg01
vgexport vg01

shutdown losing system
removed the 2 vdisks from the vm

attached the 2 vdisks to the RHEL 8 vm
ls /sys/class/scsi_host | while read host ; do echo "- - -" > /sys/class/scsi_host/$host/scan; done

pvs
vgimport vg01

vgs

vgchange -ay vg01

At this point, I ran into issues with duplicate UUIDs that caused the attachment to fail. I tried to reverse the process and re-attach the vdisks back to the RHEL 6 machine, but now that VM won't start due to file locking issues. Quite the mess.

I guess I was wondering if the process I had gleaned from research was not correct for moving a VG that spanned more that one vdisk.

I will save the vm-not-starting issue for another forum.

In any case, ideas would be welcome. Currently this is within our test environment, but will need to use something similar in the production environment soon.

Thanks in advance for any feedback.

TimG
 
Old 05-29-2021, 12:07 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by waninick View Post
At this point, I ran into issues with duplicate UUIDs that caused the attachment to fail.
Which part of that do you not understand ?. The chances of a collision for validly generated UUID are vanishing small. Might be time to check where the clash is, and how it could have happened. How the two systems were created (copied ?) would be a reasonable start maybe.
 
  


Reply



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
[SOLVED] why when i change the partition table the data above stays intact? jzoudavy Linux - Newbie 4 02-28-2017 03:19 AM
best way to move data from one disk to another unix1adm Red Hat 2 01-30-2014 09:52 AM
[SOLVED] How do I recover an ext4 filesystem where all the data are intact? shachter Linux - General 3 05-06-2012 07:50 PM
Increasing HDD size while keeping data intact WojtekO Linux - Server 1 06-15-2010 09:47 PM
Can I install RedHat on an existing partition leaving data intact? prcarp Linux - Newbie 1 02-09-2004 08:00 AM

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

All times are GMT -5. The time now is 05:37 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