6.0

Table Of Contents
VMware, Inc. 57
Chapter 4 Managing Storage
Running svmotion in Noninteractive Mode
Innoninteractivemode,thesvmotioncommandusesthefollowingsyntax:
svmotion [standard vCLI options] --datacenter=<datacenter_name>
--vm <VM config datastore path>:<new datastore>
[--disks <virtual disk datastore path>:<new datastore>,
<virtual disk datastore path>:<new datastore>]
Squarebracketsindicateoptionalelements,notdatastores.
The--vmoptionspecifiesthevirtualmachineanditsdestination.Bydefault,allvirtualdisksarerelocatedto
thesamedatastoreasthevirtualmachine.Thisoptionrequiresthecurrentvirtualmachineconfigurationfile
location.See“Todeterminethepathtothevirtualmachineconfigurationfileanddiskfile”onpage 57.
The
--disksoptionrelocatesindividualvirtualdiskstodifferentdatastores.The--disksoptionrequiresthe
currentvirtualdiskdatastorepathasanoption.See“Todeterminethepathtothevirtualmachine
configurationfileanddiskfile”onpage 57.
To determine the path to the virtual machine configuration file and disk file
1Runvmware-cmd -ltolistallvirtualmachineconfigurationfiles(VMXfiles).
vmware-cmd -H <vc_server> -U <login_user> -P <login_password> -h <esx_host> -l
2 ChoosetheVMXfileforthevirtualmachineofinterest.
Bydefault,thevirtualdiskfilehasthesamenameastheVMXfilebuthasa.vmdkextension.
3 (Optional)UsevifstoverifythatyouareusingthecorrectVMDKfile.
To relocate a virtual machine’s storage (including disks)
1 Determinethepathtothevirtualmachineconfigurationfile.
2Runsvmotion:
svmotion
--url=https://myvc.mycorp.com/sdk --datacenter=DC1
--vm=”[storage1] myvm/myvm.vmx:new_datastore”
TheexampleisforWindows.UsesinglequotesonLinux.
To relocate a virtual machine’s configuration file, but leave virtual disks
1 Determinethepathtothevirtualdiskfilesandthevirtualmachineconfigurationfile.
2Runsvmotion,forexample:
svmotion
<conn_options>
--datacenter='My DC'
--vm='[old_datastore] myvm/myvm.vmx:new_datastore'
--disks='[old_datastore] myvm/myvm_1.vmdk:old_datastore, [old_datastore] myvm/myvm_2.vmdk:
old_datastore'
Thiscommandrelocatesthevirtualmachineʹsconfigurationfiletonew_datastore,butleavesthetwodisks
(myvm_1.vmdkandmyvm_2.vmdk)inold_datastore.TheexampleisforLinux.Usedoublequoteson
Windows.Thesquarebracketssurroundthedatastorenameanddonotindicateanoptionalelement.
Configuring FCoE Adapters
ESXicanuseFibreChanneloverEthernet(FCoE)adapterstoaccessFibreChannelstorage.
TheFCoEprotocolencapsulatesFibreChannelframesintoEthernetframes.Asaresult,yourhostdoesnot
needspecialFibreChannellinkstoconnecttoFibreChannelstorage,butcanuse10GbitlosslessEthernetto
deliver
FibreChanneltraffic.
I
MPORTANTWhenyourunsvmotion,--servermustpointtoavCenterServersystem.