...
Attribute | Description | Type | Default | Edit | Note | |
---|---|---|---|---|---|---|
Key Attribute | *Critical | When a failure occurs in the resource it indicated whether to failover the whole group. | BOOLEAN | X | ||
*Enabled | It is used when deciding whether to manage the resource. | BOOLEAN | X | |||
General Attribute | *AgentState | It indicates the agent state of the resource. | STRING | X | ||
*BatchAfterOffline | This is a batch command to be executed after a resource is taken offline. | FILE | O | |||
*BatchAfterOnline | This is a batch command to be executed after a resource is brought online. | FILE | O | |||
*BatchBeforeOffline | This is a batch command to be executed before a resource is brought online. | FILE | O | |||
*BatchBeforeOnline | This is a batch command to be executed before a resource is taken offline. | FILE | O | |||
*BatchTimeout | It is the waiting time until execution of batch command completes. If execution result is over this time, it is considered as a failure. | INTEGER | 300sec | O | ||
*CleanProgram | This program is executed to initialize related resources and state when a failure occurs to a resource. This program must be written separately. | FILE | O | |||
EnableTimeout | It is the waiting time until the execution of Enable completes. If the execution result is over this time, it is considered as a failure. (unit = second) | INTEGER | 60 sec | O | ||
Failoverable | It indicates whether the resource is in the state to be failover. | BOOLEAN | X | |||
*Group | It is the name of the group which the resource belongs | STRING | X | |||
LastOnline | It is name of the node on which state of the resource is online lastly. | STRING | ||||
*Monitored | Depending on the 'MonitorTimeout', attribute values for the resource types, it record periodically whether each node's monitoring is finished. | BOOLEAN | X | |||
*NoAction | It represents the action attribute of the resource. | BOOLEAN | X | |||
*ResName | It is the name of the resource. | NAME | X | |||
Restartlimit | It shows the number to restart before failover when the resource is determined as a failure. | INTEGER | 0 | O | ||
*State | It is the resource state of each node. | STRING | X | |||
*Type | It is the name of the agent type of the resource. | STRING | X |
※ There is no attributes attached "※" icon in monitor only resource like Network Interface Card
*Critical
This attribute shows to failover (true) or not (false) when failure has occured.
Default is set as true, and most of the resources are set as a true value. For resources that is not as important or resources that cannot be failover are set as false.
Critical values affects failover mode group only, does not affect parallel mode group. Critical attribute can be considered alone but there are many things to be considered if it has linked dependency among resources.
For an example, none critical resource on which critical resource(parent) depends, group failover will be occurred because one of critical resource cannot be provide proper service.
...
- Right click on the resource to be copy and select "Copy Resource".
[Figure] Copy Resource View - Right click on the resource group to be paste and select "Paste Resource".
[Figure] Paste Resource View
.
Resource Paste
Select the network adaptor for the resource to newly add and name the resource.
Info |
---|
Copied resource name is defined which '_number'is added from original name by default and this can be editable. |
ex> Paste Network Card Resource view
...
Depending on the resource type, you need to enter extra information if necessary. |
CLI Use (mcres command)
It sends MCCS resources related commands. Commands such as add, delete, online, offline, edit of resource can be done.
...
mcres [-u userid -pw password] [-n ip node_ip_address] [-p port] -command [ resource ] [ -g group ] [ -n node] mcres [-u userid -pw password] [-n ip node_ip_address] [-p port] -add [ resource ] [ -t resource_type ] [ -g group ] mcres [-u userid -pw password] [-n ip node_ip_address] [-p port] -monitor [ group_name ] [ -t interval(seconds)] mcres [-u userid -pw password] [-n ip node_ip_address] [-p port] -modify [ resource ] [-a attribute attribute_value] [ -g group ] [ -n node] |
Options
Option | Description |
-h | It prints help menu. |
-u | Designate the user account ID. |
-pw | Create Enter the user password. |
-nip | It defines the node to access to execute command. If omitted, it will access to execute command for local node. |
-p | It defines the port to access to execute command. If omitted, it will access to the default value which is 4321, and when you define specific port number as heartbeat, enter this followed by --p. |
-resourcecommand | It defines resource command. (add, delete, enable, disable, monitor, modify, link, unlink, local, Global, Online, Offline, Offlineprop, Probe, clear, list) |
resource | It enters resource name. |
-a | [list] It defines the attribute value that should be listed if it is command. |
-t | It defines resource type when it is [-add] command. It specifies time interval when it is [-monitor] command. |
-g | It defines group name to be managed. |
-n | It defines node name to be managed. |
...
mcres -u admin -pw password -add testResource -t Application resourceType -g testGroup |
delete
Delete testResource.
...
mcres -u admin -pw password -modify testResource -a attribute attribute_value [ -n node ] |
Modify a value of ‘User’ attribute of testResource to administrator in testNode.
...
mcres -u admin -pw password -local testResource -r testResource -a attribute |
global
Set a value of attribute of the testResource to all node.
It is used publicly so that values can be inserted with common values for all nodes.
mcres -u admin -pw password -global -r testResource -a attribute [value] |
...
mcres -u admin -pw password -global testResource -r testResource -a User administrator |
online
Bring online testResource on testNode.
mcres -u admin -pw password -online testResource -n testNode |
...