Поделиться через


Start-SCDynamicOptimization

Starts dynamic optimization on a host cluster or host group.

Syntax

ByHostGroup

Start-SCDynamicOptimization
    [-VMHostGroup] <HostGroup>
    [-VMMServer <ServerConnection>]
    [-OptimizationObjectType <ManualOptimizationObjectType>]
    [-WhatIf]
    [<CommonParameters>]

ByHostCluster

Start-SCDynamicOptimization
    [-VMHostCluster] <HostCluster>
    [-VMMServer <ServerConnection>]
    [-OptimizationObjectType <ManualOptimizationObjectType>]
    [-WhatIf]
    [<CommonParameters>]

Description

The Start-SCDynamicOptimization cmdlet manually starts the dynamic optimization process for a host cluster or host group.

Examples

Example 1: Optimize hosts in a cluster for compute

PS C:\> $Cluster = Get-SCVMHostCluster "Cluster01"
PS C:\> Start-SCDynamicOptimization -VMHostCluster $Cluster -OptimizationObjectType VM

The first command gets the host cluster object named Cluster01 and stores the object in the $Cluster variable.

The second command initiates the compute dynamic optimization process for the cluster stored in $Cluster.

Example 2: Optimize storage and compute in a cluster

PS C:\> $Cluster = Get-SCVMHostCluster "Cluster01"
PS C:\> Start-SCDynamicOptimization -VMHostCluster $Cluster -OptimizationObjectType All

The first command gets the host cluster object named Cluster01 and stores the object in the $Cluster variable.

The second command initiates the compute and storage dynamic optimization process for the cluster stored in $Cluster.

Example 3: Optimize hosts in a host group for compute and storage

PS C:\> $HostGroup = Get-SCVMHostGroup "HostGroup01"
PS C:\> Start-SCDynamicOptimization -VMHostGroup $HostGroup -OptimizationObjectType All

The first command gets the host group object named HostGroup01 and stores the object in the $HostGroup variable.

The second command initiates the compute and storage dynamic optimization process for the host group stored in $HostGroup.

Parameters

-OptimizationObjectType

Specifies the type of Dynamic optimization to start. It can be compute dynamic optimization (DO), storage DO or both.

Parameter properties

Type:ManualOptimizationObjectType
Default value:None
Accepted values:VM, Disk, All, None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMHostCluster

Specifies a Virtual Machine Manager (VMM) host cluster object.

Parameter properties

Type:HostCluster
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByHostCluster
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMHostGroup

Specifies a virtual machine host group object or an array of host group objects.

Parameter properties

Type:HostGroup
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByHostGroup
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a VMM server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

DynamicOptimizationResults

This cmdlet returns a DynamicOptimizationResults object.