Suspend-ClusterNode

Suspend-ClusterNode

Suspends activity on a failover cluster node, that is, pauses the node.

Sintaxis

Parameter Set: InputObject
Suspend-ClusterNode [[-Name] <StringCollection> ] [[-TargetNode] <String> ] [-Cluster <String> ] [-Drain] [-ForceEvacuation] [-InputObject <PSObject> ] [-Wait] [ <CommonParameters>]

Descripción detallada

The Suspend-ClusterNode cmdlet suspends activity on a failover cluster node, that is, pauses the node. If you use the Drain parameter, clustered roles currently running on the node will be drained before the node is paused.

Pausing (suspending) a node is usually done when applying software updates to the node. If you need to perform extensive diagnosis or maintenance on a cluster node, it might be more workable to stop (not pause) the Cluster service on that node.

Parámetros

-Cluster<String>

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Drain

Specifies that all of the workloads are gracefully moved to other nodes while maintaining the highest levels of availability and using the best placement logic.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ForceEvacuation

Specifies that workloads are moved from a node even in the case of an error.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-InputObject<PSObject>

Specifies the cluster node to suspend (with or without draining), or the cluster on which to run the cmdlet.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByValue)

¿Aceptar caracteres comodín?

false

-Name<StringCollection>

Specifies the name of the cluster node to suspend (with or without draining).

Alias

ninguno

¿Requerido?

false

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-TargetNode<String>

Specifies a node to which to drain the workloads.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Wait

Specifies the time in seconds to wait for the cmdlet. If the Wait parameter is not specified, then the call is initiated and the cmdlet returns without waiting. If specified with no value, then the cmdlet waits for completion.. If -Wait 0 is specified, then the call is initiated and the cmdlet returns without waiting.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • Microsoft.FailoverClusters.PowerShell.Cluster
  • Microsoft.FailoverClusters.PowerShell.ClusterNode

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.FailoverClusters.PowerShell.ClusterNode

Ejemplos

EXAMPLE 1

This example pauses the node named node1 on the local cluster.

PS C:\> Suspend-ClusterNode node1

EXAMPLE 2

This example pauses the node named node2 on the cluster named cluster2.

PS C:\> Suspend-ClusterNode node2 -Cluster cluster2

EXAMPLE 3

This example pauses the node named node1 and moves the workloads from it to the node named node2.

PS C:\> Suspend-ClusterNode -Name node1 -Target node2 -Drain

EXAMPLE 4

This example provides a preview of the operation that will be performed on the node named node1.

PS C:\> Suspend-ClusterNode node1 -Drain -Whatif

Temas relacionados

Add-ClusterNode

Get-ClusterNode

Remove-ClusterNode

Resume-ClusterNode

Start-ClusterNode

Stop-ClusterNode