Learn how to a build a cloud-first strategyRegister Now


how to migrate part of a VM to new storage

Posted on 2010-08-30
Medium Priority
Last Modified: 2012-05-10
Hello,  I need to move part of a VM from local to shared storage.  The VM in question has 1 scsi drive (40gb) sitting on private storage, and a second SCSI drive on public storage.  I have several public storage drives defined, including 1 that has enough space to host ALL of the drives on this image.    I'd prefer to not have to move a 2Tb VMDK if I can help it.  the scsi disk 1 is only 40gb and that's really the only one I want to move.

Is there a way to do this with storage Vmotion?  or will I have to manually move the VMDK files for the image and then reconnect it?  If so what happens to the second SCSI image? (it's my data drive, shared with multiple levels of permissions set and I'd hate to have to reset all the perms after the move! )


Question by:pcmm
  • 4
  • 3
  • 2
  • +1
LVL 28

Expert Comment

ID: 33559287
Storage VM should would just fine, assuming that's a part of your license, which it probably is. IF for some reason it's not then you would need to do it manually.

To do it manually you need to shut down the VM and disconnect the large data drive. Do a manual storage move and when it's done, reconnect the data drive and bring it up. I just did this the other day and it worked perfectly; nothing to reconfig after the move.

Expert Comment

ID: 33559337
Without going into discussing the implications of a 2TB volume issues etc..
The short answer is the 40GB VMDK can be moved. You can't do it via Storage vMotion but you maybe able to do it via vmktools.
I would advise against this and schedule an outage of the said server. Power it off.
you can either CP it from the Service console or via vCenter copy the VMDK.
Once complete, remove the original VMDK via editing the guest configuration and add the copied VMDK which is now on your shared storage.
If you follow this routine you have a back out plan if the copy fails or for some reason is not addressable.
LVL 124

Accepted Solution

Andrew Hancock (VMware vExpert / EE MVE^2) earned 1500 total points
ID: 33559502
Simple - whether you do it with the VM on or off is up to you and whether you have Storage VMotion.

But all you have to do is use the Migrate Option, specify the new datastore (or same datastore that holds the current second scsi drive) vCenter will know the current second scsi drive is already on this datastore and will just move the 40GB (1st scsi drive).

Just make sure the new datastore has enough space for both the new vmdk (40GB) and existing 2 scsi drive.
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.


Author Comment

ID: 33560650
thank you all,  I might have ommitted a detail.  the second scsi disk (2Tb on, I know, I know...there are isssues with a vmdk that large)  I don't want or need to move it.  I just wnat to move the first scsi disk.  I suspect I'll have to move it manually.  
LVL 124
ID: 33560837
I thought the second scsi disk is already on the target datastore?

and you want to move the first scsi disk onto the same datastore as the second scsi disk?

Use MIgrate, it will just Migrate (move) the first scsi disk onto the same datastore as the second scsi disk
LVL 124
ID: 33560841
it will leave and not touch the second scsi disk already on the target datastore.

Expert Comment

ID: 33564582
So to clarify
You have 2 VMDK's lets call it VMDK1 which is 2TB and VMDK2 wjich is 40GB
Currently they are running on local storage.
You want to move the 40GB to shared storage?
There are many options but I'm going to only talk about what I would do.
Shut the server down.
Via the VC (vCenter and VI Client) browse to the 40GB VMDK2 and copy it.
Now browse to the shared storage Create a folder of the guest host name and paste the copied 40GB VMDK2 into it.
About 40-60 minutes later the copy will be complete.
Edit the powered down guest removing but not deleting the original 40GB VMDK2. Now Add a hard drive, chose an existing disk and browse to your copy of the 40GB VMDK2. Add it OK your changes and your done.
Power it up.
LVL 28

Expert Comment

ID: 33566027
I looked back at my original reply and realized that I might need to clarify.  I have a similar situation. I have a VM with a small C: drive and a large  (2 TB) data drive. I wanted to move the C: drive to another LUN. Because of the ESX server it's on and our licensing, storage vMotion was not possible. So I manually moved it. I shut down the VM and disconnected the data drive from the VM. Then I was able to manually, through Virtual Center, migrate the C: drive to a different data store.  Once that was done, I added back in new hard drive specifying that I wanted to use an already established VMDK file and then I choose the data drive. Once that was done I power the VM back on and all was OK.  I did not have to do anything within the VM in order to reestablish the data drive.

Author Comment

ID: 33683174
Guys,  I figured it out the solution to the problem.  It's simple!  Just do the Vsotrage migration like normal,  just select the "advanced" button at the "Select Datastore" window and then just choose what datastore I want the individual components to go to!

Author Closing Comment

ID: 33683197
correct result
LVL 124
ID: 33684829
told you it was!

We do it all the time!

moving to new larger LUNs.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
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…
Suggested Courses

810 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