how to migrate part of a VM to new storage

Posted on 2010-08-30
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
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
  • 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 121

Accepted Solution

Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 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.
Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!


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 121
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 121
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 121
ID: 33684829
told you it was!

We do it all the time!

moving to new larger LUNs.

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

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: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
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:

696 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