Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Suspend-ClusterNode

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

Syntax

Default (Default)

Suspend-ClusterNode
 [[-Name] <StringCollection>]
 [-Drain]
 [-ForceDrain]
 [-Wait]
 [[-TargetNode] <String>]
 [-InputObject <PSObject>]
 [-Cluster <String>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

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, or 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.

Examples

Example 1: Pause a node of the local cluster

Suspend-ClusterNode -Name "node1"

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

Example 2: Pause a node of a cluster

Suspend-ClusterNode "node2" -Cluster "cluster2"

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

Example 3: Pause a node and move its workloads

Suspend-ClusterNode -Name "node1" -Target "node2" -Drain

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

Example 4: Preview a pause operation

Suspend-ClusterNode node1 -Drain -WhatIf

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

Parameters

-Cluster

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.

Parameter properties

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

Parameter sets

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-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.

Parameter properties

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

Parameter sets

-ForceDrain

The -ForceDrain switch, used in conjunction with the -Drain switch, allows all the workloads to be safely moved to other nodes, while maintaining the highest levels of availability and using the best placement logic.

If some or all of the workloads can't be moved safely, any workload that failed will be stopped and moved to another node as a failed role. Thereafter, the node will be forced to pause.

Parameter properties

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

Parameter sets

-InputObject

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

Parameter properties

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

Parameter sets

-Name

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

Parameter properties

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

Parameter sets

-TargetNode

Specifies a node to which to drain the workloads.

Parameter properties

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

Parameter sets

-Wait

Specifies the time in seconds to wait for the cmdlet. If the Wait parameter isn't 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.

Parameter properties

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

Parameter sets

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet isn't run.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

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.

Inputs

Microsoft.FailoverClusters.PowerShell.Cluster

Microsoft.FailoverClusters.PowerShell.ClusterNode

Outputs

Microsoft.FailoverClusters.PowerShell.ClusterNode

Related Links


Feedback

Was this page helpful?