Search in sources :

Example 1 with ExpandVmfsDatastore

use of com.emc.sa.service.vmware.block.tasks.ExpandVmfsDatastore in project coprhd-controller by CoprHD.

the class VMwareSupport method expandVmfsDatastore.

/**
 * Expand a VMFS datastore.
 *
 * @param host
 *            the host to which the volume is assigned.
 * @param cluster
 *            the cluster to which the volume is associated (may be null if the storage is exclusive to the host)
 * @param volume
 *            the volume that was expanded.
 * @param datastore
 *            the datastore to expand.
 */
public void expandVmfsDatastore(HostSystem host, ClusterComputeResource cluster, URI hostOrClusterId, BlockObjectRestRep volume, Datastore datastore) {
    HostScsiDisk disk = findScsiDisk(host, cluster, volume);
    execute(new ExpandVmfsDatastore(host, disk, datastore));
    addAffectedResource(volume);
    addVmfsDatastoreTag(volume, hostOrClusterId, datastore.getName());
    ExecutionUtils.clearRollback();
}
Also used : HostScsiDisk(com.vmware.vim25.HostScsiDisk) ExpandVmfsDatastore(com.emc.sa.service.vmware.block.tasks.ExpandVmfsDatastore)

Aggregations

ExpandVmfsDatastore (com.emc.sa.service.vmware.block.tasks.ExpandVmfsDatastore)1 HostScsiDisk (com.vmware.vim25.HostScsiDisk)1