Solved

how to migrate a particular virtual disk ESXi v4.1 - no vmotion

Posted on 2014-03-03
4
395 Views
Last Modified: 2014-03-08
What's the easiest way to migrate a particular virtual disk to another datastore?  The source and target data stores are from local LUNs on the ESXi host.  I do not have vMotion.
0
Comment
Question by:gopher_49
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 4

Expert Comment

by:aa-denver
ID: 39901628
You will have to shut the VM down for this copy.  Using the VMware infrasturcture client, browse the storage drive on the first server.  Copy the directory containing all the VM files of the machine you want to move to your local PC.  Then browse the storage drive on the second server and copy the directory back up to the second server.  When the copy is done, use the browse storage window to drill down into the folder on the second server and double-click the vmx file.  VMware should then register the computer on the new vmware host.  Power on the new copy and make sure it works.  Then go back to the old server and either remove from inventory and/or delete from disk using the vmware menu tree on the left.  This will unregister the vm from the old host.

If you have NFS storage, you can connect both hosts to an NFS share and use that for copying.  Connect to the NFS share with the Infrastructure client.   If you have an unused Windows computer you can set up an NFS share on it.  W2008 or newer is easier to create NFS shares than older windows versions.
0
 

Author Comment

by:gopher_49
ID: 39901647
I'm only wanting to copy one virtual drive.  Not the others..  They are over 1TB.. Too big and can't waste that much time.  Can't I just copy the one virtual disk? The data is being copied within the same ESXi server.  I think the copy feature will show both the source and target folder since it's the same ESXi server.  I'll give it a shot.
0
 
LVL 13

Expert Comment

by:Abhilash
ID: 39902240
Yes. If its the same ESXi host you can copy the disk from one datastore to another.
0
 
LVL 29

Accepted Solution

by:
Michael Worsham earned 500 total points
ID: 39903452
Rather than using the vSphere client, a faster approach would be to ssh into the ESXi 4.1 host, then use the "vmkfstools" command:

vmkfstools -i "/vmfs/volumes/Datastore/examplevm/examplevm.vmdk" "/vmfs/volumes/Datastore 2/newexamplevm/newexamplevm.vmdk" -d thin

If you need additional info on using the vmkfstools command, check here:

Cloning and converting virtual machine disks with vmkfstools (1028042)
http://bit.ly/1i3C4TP
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question