external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|
Microsoft.FailoverClusters.PowerShell.dll-Help.xml |
FailoverClusters |
10/30/2017 |
2.0.0 |
Suspend-ClusterNode |
Suspends activity on a failover cluster node, that is, pauses the node.
Suspend-ClusterNode [[-Name] <StringCollection>] [-Drain] [-ForceDrain] [-Wait] [[-TargetNode] <String>]
[-InputObject <PSObject>] [-Cluster <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
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.
PS C:\> Suspend-ClusterNode -Name "node1"
Name State
---- -----
node1 Paused
This example pauses the node named node1 on the local cluster.
PS C:\> Suspend-ClusterNode "node2" -Cluster "cluster2"
Name State
---- -----
node2 Paused
This example pauses the node named node2 on the cluster named cluster2.
PS C:\> Suspend-ClusterNode -Name "node1" -Target "node2" -Drain
Name State
---- -----
node1 Paused
This example pauses the node named node1 and moves the workloads from it to the node named node2.
PS C:\> Suspend-ClusterNode node1 -Drain -WhatIf
What if: Performing operation "Suspend-ClusterNode" on Target "node1".
This example provides a preview of the operation that will be performed on the node named node1.
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.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the cluster node to suspend (with or without draining), or the cluster on which to run the cmdlet.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies the name of the cluster node to suspend (with or without draining).
Type: StringCollection
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies a node to which to drain the workloads.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.