Using Storage VMotion

Storage VMotion allows you to move a running virtual machine from one VMFS volume to another. Taking the virtual machine or its associated storage offline is not required. All datastore types are supported, including local storage, VMFS, and NAS (network attached storage).
You can place the virtual machine and all its disks in a single location, or select separate locations for the virtual machine configuration file and each virtual disk. The virtual machine remains on the same host during Storage VMotion.
To perform storage VMotion, you use the
VirtualMachine.RelocateVM
_
Task
method. The
RelocateVMSpec
passed in to the method allows you to specify the target datastore and target host or resource pool.