次の方法で共有


RestartAction

Describes the action to be taken by the cluster service if the resource fails. The following table summarizes the attributes of the RestartAction property:

Attribute Value
Data type
DWORD
Access
Read/write
Structure
CLUSPROP_DWORD
Minimum
ClusterResourceDontRestart (0)
Maximum
ClusterResourceRestartNotify (2)
Default
ClusterResourceRestartNotify

Remarks

The data value for the RestartAction property can be set to the values of the CLUSTER_RESOURCE_RESTART_ACTION enumeration. The following table summarizes the possible values:

Name Value Description
ClusterResourceDontRestart
0
Do not restart the resource after a failure.
ClusterResourceRestartNoNotify
1
Restart the resource after a failure. If the resource exceeds its restart threshold within its restart period, do not attempt to failover the group to another node in the cluster.
ClusterResourceRestartNotify
2
Restart the resource after a failure. If the resource exceeds its restart threshold within its restart period, attempt to fail over the group to another node in the cluster. This is the default setting.

Examples

The property value portion of a property list entry for RestartAction can be set with the following example code:

DWORD          RestartActionData = ClusterResourceDontRestart;
CLUSPROP_DWORD RestartActionValue;

RestartActionValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_DWORD;
RestartActionValue.cbLength  = sizeof(DWORD);
RestartActionValue.dw        = RestartActionData;

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Enterprise, Windows Server 2008 Datacenter

See also

Resource Common Properties

CLUSPROP_DWORD

CLUSTER_RESOURCE_RESTART_ACTION