Search in sources :

Example 1 with CreateVmfsDatastore

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

the class VMwareSupport method createVmfsDatastore.

/**
 * Creates 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 create the datastore on.
 * @param datastoreName
 *            the name of the datastore to create.
 * @return datastore
 */
public Datastore createVmfsDatastore(HostSystem host, ClusterComputeResource cluster, URI hostOrClusterId, BlockObjectRestRep volume, String datastoreName) {
    HostScsiDisk disk = findScsiDisk(host, cluster, volume, true);
    Datastore datastore = execute(new CreateVmfsDatastore(host, disk, datastoreName));
    addAffectedResource(volume);
    addVmfsDatastoreTag(volume, hostOrClusterId, datastoreName);
    ExecutionUtils.clearRollback();
    return datastore;
}
Also used : MountDatastore(com.emc.sa.service.vmware.block.tasks.MountDatastore) ExpandVmfsDatastore(com.emc.sa.service.vmware.block.tasks.ExpandVmfsDatastore) FindLunsBackingDatastore(com.emc.sa.service.vmware.block.tasks.FindLunsBackingDatastore) UnmountVmfsDatastore(com.emc.sa.service.vmware.block.tasks.UnmountVmfsDatastore) CreateNfsDatastore(com.emc.sa.service.vmware.file.tasks.CreateNfsDatastore) ExtendVmfsDatastore(com.emc.sa.service.vmware.block.tasks.ExtendVmfsDatastore) Datastore(com.vmware.vim25.mo.Datastore) FindDatastore(com.emc.sa.service.vmware.tasks.FindDatastore) DeleteDatastore(com.emc.sa.service.vmware.tasks.DeleteDatastore) FindFilesystemWithDatastore(com.emc.sa.service.vipr.file.tasks.FindFilesystemWithDatastore) CreateVmfsDatastore(com.emc.sa.service.vmware.block.tasks.CreateVmfsDatastore) HostScsiDisk(com.vmware.vim25.HostScsiDisk) CreateVmfsDatastore(com.emc.sa.service.vmware.block.tasks.CreateVmfsDatastore)

Aggregations

FindFilesystemWithDatastore (com.emc.sa.service.vipr.file.tasks.FindFilesystemWithDatastore)1 CreateVmfsDatastore (com.emc.sa.service.vmware.block.tasks.CreateVmfsDatastore)1 ExpandVmfsDatastore (com.emc.sa.service.vmware.block.tasks.ExpandVmfsDatastore)1 ExtendVmfsDatastore (com.emc.sa.service.vmware.block.tasks.ExtendVmfsDatastore)1 FindLunsBackingDatastore (com.emc.sa.service.vmware.block.tasks.FindLunsBackingDatastore)1 MountDatastore (com.emc.sa.service.vmware.block.tasks.MountDatastore)1 UnmountVmfsDatastore (com.emc.sa.service.vmware.block.tasks.UnmountVmfsDatastore)1 CreateNfsDatastore (com.emc.sa.service.vmware.file.tasks.CreateNfsDatastore)1 DeleteDatastore (com.emc.sa.service.vmware.tasks.DeleteDatastore)1 FindDatastore (com.emc.sa.service.vmware.tasks.FindDatastore)1 HostScsiDisk (com.vmware.vim25.HostScsiDisk)1 Datastore (com.vmware.vim25.mo.Datastore)1