...
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 taken offline. | FILE | O | |||
BatchBeforeOnline | This is a batch command to be executed before a resource is brought online. | 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. (unit = second) | INTEGER300초 | 300 sec | 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 | |||
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 | It periodically records whether monitoring is completed. | BOOLEAN | X | |||
*NoAction | It is only for persistent resources. If it is 'true', action like Online, Offline, other than monitoring will be prohibited. | 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회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 |
...
[Figure] Resource Control Menus
MCCS에서 리소스를 다루기 위한 명령은 관리 콘솔에서 왼쪽 뷰의 리소스를 선택한 후에 마우스의 오른쪽 클릭으로 생성된 팝업 화면에서 선택할 수 있습니다.
또 다른 곳은 그룹을 선택한 후에 '리소스 의존성' 탭에서 해당 리소스에 마우스의 오른쪽을 클릭하면 리소스와 같은 팝업 화면을 생성시킬 수 있습니다.
이 외에도 콘솔의 메뉴 항목이나 툴 바 메뉴에서 명령을 내릴 수 있으며 CLI 로도 가능합니다If you want to use the resource handling commands in MCCS, go to the management console and select the resource in the left view and right click with your mouse button to launch the pop up window.
Alternatively, select group and right click with your mouse button on the resource in the 'Resource Dependency' tab to launch the same pop up as resource.
Also, you can use the commands in the console menu or tool bar. CLI can be used as well.
Enable Resource
This can be checked by checking of there is a enabled check mark in front of the command. This can also be checked by checking on the Enabled value in the Resource Attribute. If the resource is disabled, resource state cannot be monitored.
If the attribute value is incorrect, this will be failed. For example, when type a wrong path name in the process of application, monitoring whether it is online or offline is impossible. Therefore, whenever this is failed, attribute value should be checked first.
...
- Right click on the resource to be copy and select "Copy Resource".
[Figure] Copy Resource View - Right click on the resource 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. |
...
[Figure] Paste Network Card Resource View
CLI Use (mcres command)
It sends MCCS resources related commands. Commands such as add, delete, online, offline, edit of resource can be done.
Info |
---|
MCCS 는 설치시 최초 사용자 계정으로 id 가 'admin' 암호가 'password'인 계정을 생성합니다. |
Syntax
mcres [-u userid -pw password] [-n node_ip_address] [-p port] -command [ resource ] [ -g group ] [ -n node] mcres [-u userid -pw password] [-n node_ip_address] [-p port] -add [ resource ] [ -t resource_type ] [ -g group ] mcres [-u userid -pw password] [-n node_ip_address] [-p port] -monitor [ group_name ] [ -t interval(seconds)] mcres [-u userid -pw password] [-n 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 | 사용자 Password를 지정합니다Create the user password. |
-n | 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. |
...
Add testResource of application resource type on testGroup.
mcres -add testResource -t Application -g testGroup |
delete
Delete testResource.
mcres -delete testResource |
enable
Enable testResource.
mcres -enable testResource |
disable
Disable testResource.
mcres -disable testResource |
monitor
It monitors a resource in every interval. 주기가 지정되지 않은 경우에는 3초가 기본값으로 지정됩니다If the period is not set, 3 sec is a default value.
mcres -monitor [testGroup] [-t interval(seconds)] |
It monitors testResource every 10 seconds.
mcres -monitor testGroup -t 10 |
modify
Modify a value of attribute of testResource in a node.
mcres -modify testResource -a attribute value [ -n node] |
Modify a value of ‘User’ attribute of testResource to administrator in testNode.
mcres -modify testResource -a User administrator -n testGroup |
link
Make a dependency link among resources.
Make a dependency link between the resource1 as parent and the resource2 as child.
mcres -link resource1 resource2 |
unlink
Delete a dependency link between the resource1 and the resource2.
mcres -unlink resource1 resource2 |
local
Set a value of attribute of the resource per node.
It is used locally so that other values can be inserted for attribute values of all the nodes.
(Modify command should be used to change the value.)
mcres -local 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 -global testResource -a attribute [value] |
Set a User’ attribute of the testResource to administrator.
mcres -global testResource -a User administrator |
Online
Bring online testResource on testNode.
mcres -online testResource -n testNode |
Offline
Take offline testResource on testNode.
mcres -offline testResource -n testNode |
Offlineprop
Take offline the resource including its parent resource(s) of testResource on testNode.
mcres -offlineprop testResource -n testNode |
Probe
Probe testResource on testNode.
mcres -probe testResource -n testNode |
clear
Remove fault mark on testResource of testNode.
mcres -clear testResource [ -n testNode] |
list
Print current resource state.
mcres -list [resource [ -a attribute]] | [-g group [-a attribute]] |