LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-18-2016, 07:40 AM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Recommdations/Best Practices on moving hard disks between different RHEL VMs?


I don't know if I'm asking this question correctly, so please bear with me. I don't see a best practice from VMWare online.

From searching online, I see that Windows Admins are able to move Virtual Disks from one VM to another and I was wondering if there were any recommendations/best practices when it came to moving hard disks from one RHEL VM to another RHEL VM.

https://communities.vmware.com/threa...art=0&tstart=0

Quote:
1) Power off the VM from where the HDD need to be moved

2) Remove Virtual Hard Disk from VM

3) go to the other VM and right click and edit settings

4) go to hard disk option and add the existing VMDK.from the datastore.

5) power on the VM.

I'm thinking it won't be as straight forward with RHEL VMs. I was thinking of some of the variables when moving from one RHEL VM to another RHEL VM, such as:

Underlying storage of SAN (format of LUNs)
Different versions of RHEL (5, 6 and 7)
Different file system types (say moving an EXT3 hard disk to an OS that only has EXT4, and taking into account xfs)
Different hardware architecture (such as x32 and x86_64)
What the purpose of that hard disk or what was stored on it (say hard disks that were dedicated to Oracle and then moved to another RHEL VM that has Oracle running on it, say as a host backup, possibly)

Maybe I'm overthinking this, however I don't think it will be to easy to just power off the RHEL VM and then move it to another RHEL VM.

I'm just wondering what others have done or if there is a good way to do this going from one RHEL VM to another RHEL VM.

thanks
 
Old 07-18-2016, 09:40 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by JockVSJock View Post
  1. Underlying storage of SAN (format of LUNs)
  2. Different versions of RHEL (5, 6 and 7)
  3. Different file system types (say moving an EXT3 hard disk to an OS that only has EXT4, and taking into account xfs)
  4. Different hardware architecture (such as x32 and x86_64)
  5. What the purpose of that hard disk or what was stored on it (say hard disks that were dedicated to Oracle and then moved to another RHEL VM that has Oracle running on it, say as a host backup, possibly)
1 Shouldn't make any difference, it'll be seen as a local disk
2 Also shouldn't make any difference if this is a data drive and you're not going to attempt to run any executable from it.
3 Unlikely to be an issue, OS's will generally support "back" a few generations. Also shouldn't be a problem to add support for a particular fs if it IS an issue
4 Assuming the same OS it won't make a difference if it's just data that's being stored.
5 Would depend on the application, and again whether or not you are going to try and run executables off it.

Why not make copies of the disk and a clone of the "target" system and test it to see what happens? We do that all the time here with XenServer as it's as easy as running up a snapshot instance and leaving the networking off.
 
Old 07-18-2016, 05:07 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Some products let you move a vm live.

If you power off a VM client and the drive is not a snapshot type you have in a real sense a powered down system. When you move the client image or physical drive the only difference now will be location. If you move between hardware there could be some issues.
 
Old 07-18-2016, 06:40 PM   #4
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by jefro View Post
Some products let you move a vm live.

If you power off a VM client and the drive is not a snapshot type you have in a real sense a powered down system. When you move the client image or physical drive the only difference now will be location. If you move between hardware there could be some issues.
I think you might be referring to vMotion. I am familiar with that and we use that to move VM between different vCenters, say production and dev environment.

Right now I was wanting to move a VM hard disk between production and dev, so we could shorten the time it takes to set up a test system, and have a slice of production data, without trying to do some sort of export.

Or, say if a production VM OS went belly up, we could spin up a new VM, transfer the data disk to the new VM and then do forensics on the belly up VM to figure out what went wrong.
 
Old 07-20-2016, 07:20 AM   #5
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Just thought of this, what if one of the hard disk is part of LVM?

Is there a way to handle this?

EDIT:

Found this URL, however it doesn't mention anything about moving a disk from one VM to another. So I'm thinking these might be the steps taken one a a disk has been moved?

Last edited by JockVSJock; 07-20-2016 at 08:03 AM. Reason: found a URL
 
  


Reply

Tags
hard disks, rhel, virtualization, vmware



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Practice in Cloning RHEL VMs in VMWare JockVSJock Linux - Enterprise 5 08-05-2016 12:03 AM
RHEL 6.4 64bit Desktop Mutiple Hard Drive configuration... Best Practices??? capperdog Linux - Newbie 8 01-24-2014 01:57 PM
[SOLVED] RAID 5 with 4 hard disks... array started with only 3 out of 4 disks kikinovak Slackware 9 08-11-2012 06:33 AM
Problem using LILO then moving hard disks around edenyard Linux - General 3 06-15-2010 12:34 PM
Moving hard drive with RHEL 4 from one machine to another. thephilly Linux - Newbie 6 06-11-2009 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

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