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
If both data store shared with host then you can do hot svmotion, other wise shut down vm and migrate on datastore 5
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
If both data store shared with host then you can do hot svmotion, other wise shut down vm and migrate on datastore 5