fmmoraes05
Enthusiast
Enthusiast

copy vmdk to new datastore

Jump to solution

Hello,

I have a virtual machine with three hard disks, 1 - c:\ Operational System (datastore 1), 2 - d:\ Databse (datastore 2) and 3 - e:\ some backups (datastore 3). Now I have to move my vmk from datastore 2 to new datastore (5).

I´ve already created a new datastore in vmware.

Below the script to copy:

-Turn Windows server 2012 off (virtual machine)

-Vmware  vsphere client 5.5 -

     rigth click in the virtual machine- edit settings - select hard disk - remove - remove from virtual machine - ok

     configuration - open the datastore 2 - copy the vmdk

     configuration - open the datastore 5 - create a folder - Paste the vmdk

     after the copy - right click in the virtual machine- edit settings - add - hard disk - use and existing virtual disk - browse datastore 5 and ok.

- Turn Windows server 2012 on (virtual machine)

Is ti correct?

Thanks Fabio

0 Kudos
1 Solution

Accepted Solutions
RajeevVCP4
Expert
Expert

If both data store shared with host then you can do hot svmotion, other wise shut down vm and migrate on datastore 5

Rajeev Chauhan
VCIX-DCV6.5/VSAN/VXRAIL
Please mark help full or correct if my answer is use full for you

View solution in original post

2 Replies
rcporto
Leadership
Leadership

Are you using vCenter to manage that host? If yes, just do a Storage vMotion for that particular disk, if not, see the following VMware KB article: Moving or copying virtual disks in a VMware environment (900) | VMware KB

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
RajeevVCP4
Expert
Expert

If both data store shared with host then you can do hot svmotion, other wise shut down vm and migrate on datastore 5

Rajeev Chauhan
VCIX-DCV6.5/VSAN/VXRAIL
Please mark help full or correct if my answer is use full for you

View solution in original post