Test-ClusterResourceFailure
Simulates a failure of a cluster resource.
Syntax
Test-ClusterResourceFailure
[[-Name] <String>]
[-InputObject <PSObject>]
[-Cluster <String>]
[<CommonParameters>]
Description
The Test-ClusterResourceFailure cmdlet simulates a failure of a cluster resource.
Based on the failover and failback policies, when this cmdlet runs, the Cluster service moves the clustered role, or resource group, and attempts to bring the clustered resource online. This cmdlet can be used to simulate what actions the Cluster service will take when a resource fails.
Examples
Example 1: Simulate a failure
PS C:\> Test-ClusterResourceFailure -Name "Cluster Disk 4"
Name State Group ResourceType
---- ----- ----- ------------
Cluster Disk 4 Failed cluster12FS Physical Disk
This example simulates a failure in cluster resource named Cluster Disk 4.
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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Specifies the cluster resource of which to simulate failure.
Type: | PSObject |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Specifies the name of the cluster resource of which to simulate failure.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Related Links
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應