Search in sources :

Example 1 with ExtendVmfsDatastore

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

the class VMwareSupport method extendVmfsDatastore.

/**
 * Extends 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 to extend the datastore with.
 * @param datastore
 *            the datastore to extend.
 */
public void extendVmfsDatastore(HostSystem host, ClusterComputeResource cluster, URI hostOrClusterId, BlockObjectRestRep volume, Datastore datastore) {
    HostScsiDisk disk = findScsiDisk(host, cluster, volume, true);
    execute(new ExtendVmfsDatastore(host, disk, datastore));
    addAffectedResource(volume);
    addVmfsDatastoreTag(volume, hostOrClusterId, datastore.getName());
    ExecutionUtils.clearRollback();
}
Also used : HostScsiDisk(com.vmware.vim25.HostScsiDisk) ExtendVmfsDatastore(com.emc.sa.service.vmware.block.tasks.ExtendVmfsDatastore)

Aggregations

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