Suspend-ClusterNode

Suspend-ClusterNode

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

구문

Parameter Set: InputObject
Suspend-ClusterNode [[-Name] <StringCollection> ] [[-TargetNode] <String> ] [-Cluster <String> ] [-Drain] [-ForceEvacuation] [-InputObject <PSObject> ] [-Wait] [ <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.

매개 변수

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

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

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.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-ForceEvacuation

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

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-InputObject<PSObject>

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

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue)

와일드카드 문자 허용 여부

false

-Name<StringCollection>

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

별칭

없음

필수 여부

false

위치

1

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-TargetNode<String>

Specifies a node to which to drain the workloads.

별칭

없음

필수 여부

false

위치

2

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

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.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

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

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • Microsoft.FailoverClusters.PowerShell.ClusterNode

예제

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

관련 항목

Add-ClusterNode

Get-ClusterNode

Remove-ClusterNode

Resume-ClusterNode

Start-ClusterNode

Stop-ClusterNode