Set-SCHostReserve
Modifica as configurações de reserva do host para um grupo de host.
Syntax
Set-SCHostReserve
-Enabled <Boolean>
[-DiskIO]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
-Enabled <Boolean>
[-Memory]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
-Enabled <Boolean>
[-DiskSpace]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
-Enabled <Boolean>
[-Network]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
-Enabled <Boolean>
[-CPU]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-CPU]
-HostReserve <HostReserveSettings>
-StartOptimizationLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-CPU]
-HostReserve <HostReserveSettings>
-PlacementLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-CPU]
-HostReserve <HostReserveSettings>
-VMHostReserveLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-DiskIO]
-HostReserve <HostReserveSettings>
-VMHostReserveLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-DiskIO]
-HostReserve <HostReserveSettings>
-PlacementLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-DiskIO]
[-Percent]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-DiskIO]
-HostReserve <HostReserveSettings>
-StartOptimizationLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-DiskIO]
[-IOPS]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-DiskSpace]
[-GB]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-DiskSpace]
[-MB]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-DiskSpace]
-HostReserve <HostReserveSettings>
-VMHostReserveLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-DiskSpace]
[-Percent]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-DiskSpace]
-HostReserve <HostReserveSettings>
-PlacementLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-DiskSpace]
-HostReserve <HostReserveSettings>
-StartOptimizationLevel <uint64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-Memory]
[-GB]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-Memory]
-HostReserve <HostReserveSettings>
-VMHostReserveLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-Memory]
-HostReserve <HostReserveSettings>
-PlacementLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-Memory]
[-Percent]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-Memory]
[-MB]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-Memory]
-HostReserve <HostReserveSettings>
-StartOptimizationLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-Network]
-HostReserve <HostReserveSettings>
-StartOptimizationLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-Network]
[-Mbps]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-Network]
-HostReserve <HostReserveSettings>
-VMHostReserveLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-Network]
[-Percent]
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
[-Network]
-HostReserve <HostReserveSettings>
-PlacementLevel <UInt64>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCHostReserve
-Inherit <Boolean>
-HostReserve <HostReserveSettings>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
O cmdlet Set-SCHostReserve modifica as configurações de reserva do host para um grupo de host. Para modificar as configurações de reserva do host para um grupo de host, esse grupo de hosts não deve herdar suas configurações de um grupo de host pai.
Quando você define os níveis de reserva do host, os parâmetros de unidade, como GB ou Porcentagem, ditam as unidades nas quais os outros níveis, como StartOptimizationLevel e PlacementLevel, são expressos.
Os valores de VMHostReserveLevel, StartOptimizationLevel e PlacementLevel devem ser representados em ordem. Por exemplo, o valor de StartOptimizationLevel não pode ser menor que o valor de VMHostReserveLevel e o valor de PlacementLevel não pode ser menor que o valor de StartOptimizationLevel.
Quando o host tem menos do que o valor especificado para StartOptimizationLevel disponível, a Otimização Dinâmica tenta reequilibrar a carga.
Um host nunca será forçado pela Otimização de Energia a ter menos do que o valor especificado para PlacementLevel disponível devido a outro nó ser desligado.
Exemplos
Exemplo 1: modificar as configurações de reserva e posicionamento do host da CPU para um grupo de host especificado
PS C:\> $HostGroup = Get-SCVMHostGroup "HostGroup01"
PS C:\> $HostReserve = Get-SCHostReserve -VMHostGroup $HostGroup
PS C:\> $HostReserve | Set-SCHostReserve -CPU -PlacementLevel 75 -StartOptimizationLevel 80 -VMHostReserveLevel 90
O primeiro comando obtém o objeto de grupo de host chamado HostGroup01 e armazena o objeto na variável $HostGroup.
O segundo comando obtém o objeto de reserva de host para o grupo de host armazenado em $HostGroup e armazena o objeto na variável $HostReserve.
O último comando usa o operador de pipeline para passar a reserva de host armazenada em $HostReserve para o cmdlet Set-SCHostReserve , que atualiza as configurações de reserva e posicionamento do host.
Parâmetros
-Confirm
Solicita sua confirmação antes de executar o cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CPU
Especifica um tipo de recurso de CPU de reserva de host.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DiskIO
Especifica um tipo de recurso de E/S de reserva de host.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DiskSpace
Especifica um tipo de recurso de reserva de host do Disk Space.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Enabled
Habilita um objeto quando definido como $True ou desabilita um objeto quando definido como $False. Por exemplo, se você quiser atualizar o software em um modelo de máquina virtual, poderá desabilitar o objeto de modelo na biblioteca do VMM para impedir temporariamente que os usuários usem esse objeto.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GB
Indica que a unidade de um recurso de reserva de host é expressa em gigabytes (GB).
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HostReserve
Especifica um objeto de configurações de reserva de host.
Type: | HostReserveSettings |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Inherit
Indica se as configurações são herdadas do grupo de host pai.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IOPS
Indica que a unidade de um recurso de reserva de host é expressa em operações de entrada/saída de disco por segundo (IOPS).
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
Especifica que o andamento do trabalho é controlado e armazenado na variável nomeada por esse parâmetro.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MB
Indica que a unidade de um recurso de reserva de host é expressa em megabytes (MB).
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Mbps
Indica que a unidade de um recurso de reserva de host é expressa em megabits por segundo (Mbps).
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Memory
Especifica um tipo de recurso de memória de reserva de host.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Network
Especifica um tipo de recurso de E/S de reserva de host.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Percent
Indica que a unidade de um recurso de reserva de host é expressa em porcentagem (%).
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PlacementLevel
Especifica o nível de reserva do host acima do qual o posicionamento é aceitável.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PROTipID
Especifica a ID da dica de Desempenho e Otimização de Recursos (dica PRO) que disparou essa ação. Esse parâmetro permite que você audite dicas pro.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
Indica que o trabalho é executado de forma assíncrona para que o controle retorne imediatamente ao shell de comando.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StartOptimizationLevel
Especifica o nível de reserva do host no qual a otimização dinâmica é iniciada.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMHostReserveLevel
Especifica o nível de reserva do host no qual o posicionamento retorna um erro se iniciar uma máquina virtual exigir uma queda abaixo desse nível.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
Especifica um objeto de servidor do VMM.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Mostra o que aconteceria se o cmdlet fosse executado. O cmdlet não é executado.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Saídas
HostReserve
Esse cmdlet retorna um objeto HostReserve.