Storage VMotion is a great feature... but usage is hell

Storage VMotion is a great feature... but usage is hell

Just my two cents about svmotion.

It's working in my test lab. I just did some copy job to the vm I svmotion. No Problem

BTW if u rename a VM before you svmotion it, then the folder and files change to the new name as well. (nice)

BUT I tried the --interactive mode...... and you need to enter to full path to the vmx like in old vmware-cmd times...


like....... \[san01_vendor_metalun_R5\] My_great_running_Win2003_with_VC25/My_great_running_Win2003_with_VC25.vmx


...... and if use miss somthing or did not know its "CASE SENSITIVE" you need to type it in again....


Conclusion. Only use the interactive mode to get familar with the  required options and for productive use the command line switches ....  (there you have history of your tries)


Could you please post the exact command line statement you used to get  it to work.  The examples in the PDF are horrible, I keep getting "Argument to --vm is not in the correct format." no matter what I do.  Thanks.


It's not documented, but you don't have to give the name of the .vmx file. So in your example, you can just say

<san01_vendor_metalun_R5> My_great_running_Win2003_with_VC25

This works in both --interactive and via the command line. You do need the space, though.


I used angle brackets here.  (How do you get the square backets to come through unmolested in this editor?)


Documentation is indeed poor. Problem areas are that you have to use "<>" for the source datastore but must not use it for the destination. You must have a space after the first datastore, but must not before and after the second. Here's a real command that's running now:

svmotion --datacenter=AdaCore-NY --server=esx --vm='<Nexenta-VM> TFBSDo:NAS-is'

Note that I've had to use angle brackets (<>) instead of right  brackets due to the editing being done in this forum's editor.


FYI: I used the RCLI appliance which I downloaded from vmware.

I used the following command:


svmotion --server=vc.mynet.de --username=administrator --datacenter='democenter' --vm='\[san01\] VC25\VC25.vmx:san02'


I used \[ \] for the first datapool san01 followed by a space. no space nor other special chars after the ":" for san02.


Hope this helps.


regards,


So, I'm trying to use svmotion via the RCLI client installed on my  laptop running Windows Vista. If I do svmotion.pl --interactive and  enter in all of my information, everything works great. However, if I  then try:

svmotion.pl --server "my-virtualcenter.domain.loc" --username  "domain\userid" --password "password" --datacenter "VI3.5-Test" --vm  "<vmhba0:1:0:1> My-VM/My-VM.vmx:vmhba0:2:0"

(yes, my lab datastores haven't been given a good name yet, and I'm  using square brackets instead of <> in the actual command)...,  using the same information as I use in the --interactive session, I  constantly get the "arguement to --vm is not in the correct format"  error. Can anyone see what I'm doing wrong? Has anyone else had good  luck using the Windows RCLI tools to do a svmotion with the explicit  commands, as opposed to via --interactive?


I'd guess that the problem is the use of ":" in the names of your datastores.  I'd suggest trying names without that character.


I wondered about that, but since it works in --interactive mode I didn't  think it would be the problem. Also, shouldn't the wrapping " "s take  care of that as well?


No, I wouldn't think so because the issue isn't the parsing of the  argument by the shell, but by the Perl code.  It uses ":" as a  delimiter, so it wouldn't be too strange if it would get confused if it  sees more than one when it expects only one.


Interesting.  I could not get the command to work under Windows, but the  exact same syntax copied and pasted to a RedHat 5 box worked fine.

This document was generated from the following thread: Storage VMotion is a great feature... but usage is hell

Tags (1)
Comments

SYNTAX THAT WORKS (tested):

COMMANDS:

vifs --server vc-iron05 --username administrator --password vmware --listdc

vifs --server vc-iron05 --username administrator --password vmware --dc "Johnson Datacenter" --listds

For svmotion, single or double quotes work:

svmotion --server vc-iron05 --username administrator --password vmware --datacenter "Johnson Datacenter" --vm '[SharedTMPLs] ccc/ccc.vmx:SharedVMs'

Version history
Revision #:
1 of 1
Last update:
‎12-21-2007 11:12 PM
Updated by: