Package com.vmware.vim25.mo
Class HostVsanSystem
java.lang.Object
com.vmware.vim25.mo.ManagedObject
com.vmware.vim25.mo.HostVsanSystem
-
Constructor Summary
ConstructorsConstructorDescriptionHostVsanSystem(ServerConnection serverConnection, ManagedObjectReference mor) -
Method Summary
Modifier and TypeMethodDescriptionaddDisks(HostScsiDisk[] disk) evacuateVsanNode_Task(HostMaintenanceSpec maintenanceSpec, int timeout) Evacuate this host from VSAN cluster.initializeDisks(VsanHostDiskMapping[] mapping) queryDisksForVsan(String[] canonicalName) Recommission this host to VSAN cluster.removeDisk_Task(HostScsiDisk[] disk) Remove the set of given disks from use by the VSAN service on this host.removeDisk_Task(HostScsiDisk[] disk, HostMaintenanceSpec maintenanceSpec, int timeout) removeDiskMapping_Task(VsanHostDiskMapping[] mapping) removeDiskMapping_Task(VsanHostDiskMapping[] mapping, HostMaintenanceSpec maintenanceSpec, int timeout) unmountDiskMapping_Task(VsanHostDiskMapping[] mapping) Unmount the mounted DiskMapping.update(VsanHostConfigInfo config) Methods inherited from class com.vmware.vim25.mo.ManagedObject
convertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setCachedProperty, setMOR, setServerConnection, toString, waitForValues
-
Constructor Details
-
HostVsanSystem
-
-
Method Details
-
getConfig
-
addDisks
- Throws:
RuntimeFaultRemoteException
-
initializeDisks
- Throws:
RuntimeFaultRemoteException
-
removeDisk_Task
public Task removeDisk_Task(HostScsiDisk[] disk, HostMaintenanceSpec maintenanceSpec, int timeout) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
removeDiskMapping_Task
public Task removeDiskMapping_Task(VsanHostDiskMapping[] mapping, HostMaintenanceSpec maintenanceSpec, int timeout) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
update
- Throws:
RuntimeFaultRemoteException
-
queryDisksForVsan
public VsanHostDiskResult[] queryDisksForVsan(String[] canonicalName) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
queryHostStatus
- Throws:
RuntimeFaultRemoteException
-
removeDisk_Task
Remove the set of given disks from use by the VSAN service on this host. Users may use this API to manually remove a DiskMapping#nonSsd from a DiskMapping. This operation is only permitted if the VSAN service on this host is not configured to automatically claim storage.- Parameters:
disk- list of disks to be removed from use by the VSAN service.- Returns:
- This method returns a Task object with which to monitor the operation.
- Throws:
RuntimeFaultRemoteException
-
removeDiskMapping_Task
public Task removeDiskMapping_Task(VsanHostDiskMapping[] mapping) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
evacuateVsanNode_Task
public Task evacuateVsanNode_Task(HostMaintenanceSpec maintenanceSpec, int timeout) throws InvalidState, RequestCanceled, RuntimeFault, Timedout, VsanFault, RemoteException Evacuate this host from VSAN cluster. The task is cancellable.- Parameters:
maintenanceSpec- - Specifies the data evacuation mode. SeeHostMaintenanceSpec. If unspecified, the default mode chosen will be ensureObjectAccessibility.timeout- - Time to wait for the task to complete in seconds. If the value is less than or equal to zero, there is no timeout. The operation fails with a Timedout exception if it timed out.- Returns:
- This method returns a Task object with which to monitor the operation.
- Throws:
InvalidStateRequestCanceledRuntimeFaultTimedoutVsanFaultRemoteException- Since:
- 6.0
-
recommissionVsanNode_Task
public Task recommissionVsanNode_Task() throws InvalidState, RuntimeFault, VsanFault, RemoteExceptionRecommission this host to VSAN cluster. Users may use this API to recommission a node that has been evacuated in VsanHostDecommissionMode.- Returns:
- This method returns a Task object with which to monitor the operation.
- Throws:
InvalidStateRuntimeFaultVsanFaultRemoteException- Since:
- 6.0
- See Also:
-
unmountDiskMapping_Task
public Task unmountDiskMapping_Task(VsanHostDiskMapping[] mapping) throws InvalidState, RuntimeFault, VsanFault, RemoteException Unmount the mounted DiskMapping. An unmounted volume cannot be used for any VSAN operations. In contrast to RemoveDiskMapping_Task, this operation does not destroy or alter VSAN data on the disks. AddDisks_Task and InitializeDisks_Task can be used to re-mount the diskMapping.- Parameters:
mapping- Mapping- Returns:
- This method returns a Task object with which to monitor the operation.
- Throws:
InvalidStateRuntimeFaultVsanFaultRemoteException
-