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
  • 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 119

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.
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.


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

We do it all the time!

moving to new larger LUNs.

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now