Set-SCHostReserve
Modifica la configuración de reserva de host para un grupo 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
El cmdlet Set-SCHostReserve modifica la configuración de reserva de host para un grupo host. Para modificar la configuración de reserva de host para un grupo host, ese grupo host no debe heredar su configuración de un grupo host primario.
Al establecer los niveles de reserva de host, los parámetros de unidad, como GB o Percentage, dictan las unidades en las que se expresan los demás niveles, como StartOptimizationLevel y PlacementLevel.
Los valores de VMHostReserveLevel, StartOptimizationLevel y PlacementLevel deben representarse en orden. Por ejemplo, el valor de StartOptimizationLevel no puede ser menor que el valor de VMHostReserveLevel y el valor de PlacementLevel no puede ser menor que el valor de StartOptimizationLevel.
Cuando el host tiene menos de la cantidad especificada para StartOptimizationLevel disponible, la optimización dinámica intenta reequilibrar la carga.
La optimización de energía no forzará nunca a un host a tener menos de la cantidad especificada para PlacementLevel disponible debido a que otro nodo está apagado.
Ejemplos
Ejemplo 1: Modificación de la configuración de selección de ubicación y reserva de host de CPU para un grupo 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
El primer comando obtiene el objeto de grupo host denominado HostGroup01 y almacena el objeto en la variable $HostGroup.
El segundo comando obtiene el objeto de reserva de host para el grupo host almacenado en $HostGroup y, a continuación, almacena el objeto en la variable $HostReserve.
El último comando usa el operador de canalización para pasar la reserva de host almacenada en $HostReserve al cmdlet Set-SCHostReserve , que actualiza la configuración de reserva y ubicación del host.
Parámetros
-Confirm
Le solicita su confirmación antes de ejecutar el cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CPU
Especifica un 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 un tipo de recurso de E/S de disco de reserva de host.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DiskSpace
Especifica un tipo de recurso de espacio en disco de reserva de host.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Enabled
Habilita un objeto cuando se establece en $True o deshabilita un objeto cuando se establece en $False. Por ejemplo, si desea actualizar software en una plantilla de máquina virtual, puede deshabilitar el objeto de plantilla en la biblioteca VMM para impedir temporalmente que los usuarios utilicen dicho objeto.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GB
Indica que la unidad de un recurso de reserva de host se expresa en gigabytes (GB).
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HostReserve
Especifica un objeto de configuración de reserva de host.
Type: | HostReserveSettings |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Inherit
Indica si la configuración se hereda del grupo host primario.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IOPS
Indica que la unidad de un recurso de reserva de host se expresa en las operaciones de entrada y salida 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 se realiza un seguimiento del progreso del trabajo y que se almacena en la variable cuyo nombre indica este parámetro.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MB
Indica que la unidad de un recurso de reserva de host se expresa en megabytes (MB).
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Mbps
Indica que la unidad de un recurso de reserva de host se expresa en megabits por segundo (Mbps).
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Memory
Especifica un tipo de recurso memory de reserva de host.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Network
Especifica un tipo de recurso de E/S de red de reserva de host.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Percent
Indica que la unidad de un recurso de reserva de host se expresa en porcentaje (%).
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PlacementLevel
Especifica el nivel de reserva de host por encima del cual la ubicación es aceptable.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PROTipID
Especifica el identificador de la sugerencia de optimización de recursos y rendimiento (sugerencia PRO) que desencadenó esta acción. Este parámetro le permite auditar sugerencias pro.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
Indica que el trabajo se ejecuta de forma asincrónica para que el control vuelva inmediatamente al shell de comandos.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StartOptimizationLevel
Especifica el nivel de reserva de host en el que se inicia la optimización dinámica.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMHostReserveLevel
Especifica el nivel de reserva de host en el que la ubicación devuelve un error si iniciar una máquina virtual requeriría quitarse por debajo de este nivel.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
Especifica un objeto de servidor VMM.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Salidas
HostReserve
Este cmdlet devuelve un objeto HostReserve.