Storage VMotion of a machine on the same ESX Server


CASE: We had set up a local environment with 1 ESX server. therefore we used local storage for the VM’s. Expansion and the request for DRS and HA brought us to 3 ESX servers and a W2K8 Storage Server as iSCSI SAN. Now we needed to bring the Virtual Machines from local storage to shared storage. This is how I did it:

1) download and install remote Command Line Interface (RCLI)
2) run this code:

C:\Program Files\VMware\VMware VI Remote CLI\bin> svmotion.pl –interactive
Entering interactive mode. All other options and environment variables will be
ignored.

Enter the VirtualCenter service url you wish to connect to: VCENTER
Enter your username: DOMAIN\USER

Enter your password: *****

Attempting to connect to https://vcenter/sdk. Connected to server.

Enter the name of the datacenter: DATACENTER01
Enter the datastore path of the virtual machine: [ESX01:storage1]
VMachine01/VMachine01.vmx
Enter the name of the destination datastore: MySAN_LUN0

You can also move disks independently of the virtual machine. If you want the disks to stay with the virtual machine, then skip this step..
Would you like to individually place the disks ? no

Performing Storage VMotion. 0%
|——————————————————-|100%
################################################################

Storage VMotion completed succesfully.

Disconnecting.

C:\Program Files\VMware\VMware VI Remote CLI\bin>

Waaw, what more can a man ask for!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.