@Sample(name="create-storage-drs",
description="This sample demonstrates how to create Storage DRS")
public class CreateStorageDRS
extends ConnectedVimServiceBase
This sample demonstrates how to create Storage DRS
Parameters:
url [required]: url of the web service.
username [required]: username for the authentication
password [required]: password for the authentication
dcname [required]: DataCenter name.
sdrsname [required]: Name for the new storage pod.
behavior [optional]: Storage DRS behavior, true if automated. It is
manual by default.
iolatencythreshold [optional]: int: Storage DRS makes storage migration
recommendations if I/O latency on one (or more)
of the datastores is higher than the specified
threshold. Range is 5-100 ms, default is 15ms
ioloadimbalancethreshold [optional]: Storage DRS makes storage migration
recommendations if I/O load imbalance
level is higher than the specified threshold.
Range is 1-100, default is 5
loadbalinterval [optional]: Specify the interval that storage DRS runs to
load balance among datastores within a storage
pod. it is 480 by default.
minutilizationdiff [optional]: Storage DRS considers making storage migration
recommendations if the difference in space
utilization between the source and destination
datastores is higher than the specified threshold.
Range 1-50%, default is 5%
utilizationthreshold [optional]: Storage DRS makes storage migration
recommendations if space utilization on one
(or more) of the datastores is higher than the
specified threshold. Range 50-100%, default is 80%
datastore [optional]: Name of the datastore to be added in StoragePod.
Sample usage:
run.bat com.vmware.storage.CreateStorageDRS --url [URLString] --username [User]
--password [Password] --dcname [dcname] --sdrsname [sdrsname] --behavior [behavior]
--iolatencythreshold [iolatencythreshold] --ioloadimbalancethreshold
[ioloadimbalancethreshold] --loadbalinterval [loadbalinterval] --minutilizationdiff
[minutilizationdiff] --utilizationthreshold [utilizationthreshold] --datastore [datastore]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
CreateStorageDRS() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setBehavior(java.lang.String behavior) |
void |
setDcName(java.lang.String dcName) |
void |
setDsname(java.lang.String dsname) |
void |
setIoLatencyThreshold(java.lang.String ioLatencyThreshold) |
void |
setIoLoadImbalanceThreshold(java.lang.String ioLoadImbalanceThreshold) |
void |
setLoadBalanceInterval(java.lang.String loadBalanceInterval) |
void |
setMinSpaceUtilizationDifference(java.lang.String minSpaceUtilizationDifference) |
void |
setSdrsname(java.lang.String sdrsname) |
void |
setSpaceUtilizationThreshold(java.lang.String spaceUtilizationThreshold) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="dcname",
description="data center name")
public void setDcName(java.lang.String dcName)
@Option(name="sdrsname",
description="Name for the new storage pod.")
public void setSdrsname(java.lang.String sdrsname)
@Option(name="behavior",
required=false,
description="Storage DRS behavior: \'true\' if automated. It is manual by default.")
public void setBehavior(java.lang.String behavior)
@Option(name="iolatencythreshold",
required=false,
description="int: Storage DRS makes storage migration\nrecommendations if I/O latency on one (or more)\nof the datastores is higher than the specified\nthreshold. Range is 5-100 ms, default is 15ms\n")
public void setIoLatencyThreshold(java.lang.String ioLatencyThreshold)
@Option(name="ioloadimbalancethreshold",
required=false,
description="\n\tStorage DRS makes storage migration\nrecommendations if I/O load imbalance\nlevel is higher than the specified threshold.\nRange is 1-100, default is 5\n")
public void setIoLoadImbalanceThreshold(java.lang.String ioLoadImbalanceThreshold)
@Option(name="loadbalinterval",
required=false,
description="Specify the interval that storage DRS runs to\nload balance among datastores within a storage\npod. it is 480 by default.")
public void setLoadBalanceInterval(java.lang.String loadBalanceInterval)
@Option(name="minutilizationdiff",
required=false,
description="Storage DRS considers making storage migration\nrecommendations if the difference in space\nutilization between the source and destination\ndatastores is higher than the specified threshold.\nRange 1-50%, default is 5%")
public void setMinSpaceUtilizationDifference(java.lang.String minSpaceUtilizationDifference)
@Option(name="utilizationthreshold",
required=false,
description="Storage DRS makes storage migration\nrecommendations if space utilization on one\n(or more) of the datastores is higher than the\nspecified threshold. Range 50-100%, default is 80%")
public void setSpaceUtilizationThreshold(java.lang.String spaceUtilizationThreshold)
@Option(name="datastore",
required=false,
description="Name of the datastore to be added in StoragePod.")
public void setDsname(java.lang.String dsname)
@Action
public void run()
throws com.vmware.vim25.DuplicateNameFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg,
java.lang.reflect.InvocationTargetException,
com.vmware.vim25.InvalidFolderFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg,
java.lang.NoSuchMethodException,
com.vmware.vim25.InvalidStateFaultMsg,
com.vmware.vim25.InvalidCollectorVersionFaultMsg,
com.vmware.vim25.InvalidNameFaultMsg,
java.lang.IllegalAccessException
com.vmware.vim25.DuplicateNameFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgjava.lang.reflect.InvocationTargetExceptioncom.vmware.vim25.InvalidFolderFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgjava.lang.NoSuchMethodExceptioncom.vmware.vim25.InvalidStateFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsgcom.vmware.vim25.InvalidNameFaultMsgjava.lang.IllegalAccessException