그룹에 대한 제어는 상태에 따라 가능한 메뉴가 활성화 됩니다. 예를 들면 종료 명령은 그룹이 일부 동작 혹은 온라인 상태일 때만 활성화 되고, 장애 표시 제거 명령은 그룹이 장애 상태일 때만 활성화됩니다.
(상세한 내용은 "챕터 3.2 그룹 상태" 와 "챕터 3.3 그룹 제어" 편을 참조해 주십시오.)
모니터링과 서비스 복구
그룹은 하나 이상의 리소스가 온라인 상태가 되면 서비스를 자동 복구할 수 있는 상태가 됩니다. 어떤 노드에서 온라인 상태였던 리소스에서 장애가 발생하면 그룹 상태는 장애 상태가 되고 복구 관련 설정에 따라 복구 과정이 이루어 집니다.
병렬 모드에서는 재시작 설정 옵션에 따라 복구할 수 있습니다.
페일오버 모드는 재시작 뿐만 아니라 대기 노드로 페일오버 할 수도 있습니다. 그룹이 장애 상태인 노드로는 페일오버 하지 않습니다. 그룹을 어떤 방법으로 복구할 것인지, 재시작 횟수, 페일오버 여부 등은 개별 속성값으로 지정할 수 있습니다.
그룹속성
...
Section | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
리소스 그룹이란 ?
그룹은 서비스 운영에 필요한 리소스들을 하나로 묶은 집합입니다.
리소스들을 그룹으로 묶는 이유는 서비스 특성에 있습니다. 별개로 분리되면 의미가 없는 리소스들(예를 들면 네트워크 카드와 IP 주소, 데이터 소스와 데이터베이스 등)은 각각의 단일 객체로는 의미 있는 서비스를 제공할 수 없습니다.
이러한 리소스들을 서로 의존 관계로 연결하고 하나의 그룹으로 구성해서 같은 노드로 실행되어야 의미 있는 서비스를 제공할 수 있습니다.
리소스 배타성과 공유성 – 그룹 모드(병렬/페일오버)
리소스 배타성이란 한쪽 노드에서만 실행되어야 하는 속성을 의미합니다.가령, 데이터베이스 서비스 그룹인 경우는 네트워크 카드, 네트워크 주소, 공유 디스크(혹은 미러 디스크), 데이터베이스와 같은 필수 리소스들로 구성됩니다.
이 중에서 데이터베이스 연결점을 제공하는 IP 주소와 데이터가 위치하는 디스크와 같은 리소스는 오직 하나의 노드에서만 배타적으로 운영할 수 있습니다.
반면에 네트워크 카드와 같은 리소스는 모든 노드에서 병렬로 운영 될 수 있습니다. 데이터베이스와 같은 애플리케이션은 의존하는 리소스(데이터) 상태에 따라 달라집니다.배타적인 리소스를 하나 이상 포함하는 그룹은 페일오버 모드로 설정되어야 합니다.
반면 병렬 모드 그룹은 병렬 운영 할 수 있는 리소스만으로 구성되어야 합니다.
시작/종료 순서
리소스는 그룹 내에서 상호간의 의존 관계에 따라 시작 또는 종료되는 과정이 정해진 순서를 갖습니다.예를 들면 데이터베이스 관련 애플리케이션은 네트워크 리소스(네트워크 카드, 네트워크 주소)와 데이터 리소스(공유 디스크 혹은 미러 디스크)가 정상적으로 시작된 이후에 시작되어야 합니다.
왜냐하면 네트워크 IP 주소와 데이터베이스가 저장된 디스크가 없는 상태에서는 데이터베이스 관련 애플리케이션이 정상으로 구동되지 않기 때문입니다. 네트워크 리소스와 데이터 리소스는 상호 의존 관계가 없으므로 독립적으로 시작될 수 있습니다.
...
리소스 그룹 상태
그룹 상태는 리소스들의 상태에 의해 결정됩니다. 그룹내의 모든 리소스가 온라인 상태라면 그룹은 온라인 상태가 되고, 모두 오프라인 상태라면 그룹도 오프라인 상태가 됩니다. 일부만 온라인이라면 일부 동작 상태가 되며, 하나 이상의 리소스가 장애 상태라면 그룹도 장애 상태가 됩니다.
|
Resource Group Attribute
Group attribute can be identified from Group Attributes view and Group State view.
From the group management view of MCCS web console, select group, then select the ‘Group Attributes’ tab located on right top of detailed information panel.
The values of gray colored are for read only. They just contain and show the information of group state.
The values of white colored are configurable by user definition
[Figure] Group Attribute View
Attribute | Description | Type | Default | Edit | Note |
---|---|---|---|---|---|
ActionState | It represents the action status for the ongoing group. | STRING | X |
| |
AutoDisabled | Automatically disabled. | BOOLEAN | false | X | |
AutoFailover | Determine whether to perform automatic failover when trouble occurs within the group. | BOOLEAN | true | O | |
AutoFaultClearTIme | A failover occurs after trouble is detected, and it remains online for the given time limit. After that, all the trouble status will be removed. | INTEGER | 0 sec | O | |
AutoRestart | If a group is not started because of failures in resource for detection, determine whether to automatically start it when the resource or node is normalized. | BOOLEAN | false | O | |
*AutoStart | When the engine starts, it will notify when the group will be started automatically. | BOOLEAN | true | O | |
BatchAfterOnline | Set the batch file to run after a group goes online. | FILE | O | ||
BatchBeforeOffline | Set the batch file to run before a group goes offline. | FILE | O | ||
BatchTimeout | Designate the time out for running the batch file. | INTEGER | 300 sec | O | |
Enabled | It allows group to be managed. | BOOLEAN | true | O | |
*Failover | Indicates whether there is an ongoing failover due to troubles. | BOOLEAN | false | X | |
GroupName | It represents the registered name of group. | NAME | X | ||
Locked | Permanent locking. Lock a group to prohibit all commands and operation. | BOOLEAN | false | X | |
MaxDependencyLevel | Designate the max vertical level that sets the dependencies among the resources in a group. | INTEGER | 20 levels | X | |
Monitored | It indicates whether all the activated resources are monitored. | BOOLEAN | X | ||
OnlineCount | It is the number of resource online within a group.'0' means that a group is terminated. | INTEGER | X | ||
Parallel | It is a group's parallel attributes. | BOOLEAN | false | X | |
PreActive | It represents the name of node where a group was executed before. | STRING | X | ||
State | The attribute represents the group status of node (online, offline, trouble, unchecked). | STRING | X | ||
TargetNodeList | It is the list of nodes in a group subject to operation.It is sorted in the increasing order of priority. This is the criterion used for selecting a target node when performing a failover. | STRING | X | ||
TLocked | The attribute indicates the status of 'temporary locking'. | BOOLEAN | false | X |
*AutoStart (true/false)
Determine whether to automatically start a group when making a new connection to a cluster in the system booting phase. (If the MCCS service is restarted or a single node is restarted to connect to operating MCCS, it will be ignored.)
If a parallel group is offline at a local node or some members are online, it will automatically start.
In case of a failover group, the target node with the highest priority will be automatically started first. In case of locking or troubles, a group will not be started.
Group auto start option for each resource
Prerequisite | In case there is DRBD | In case there is not DRBD |
---|---|---|
AutoStart should be set to true. | 1. None of the remote nodes should be FAULTED. | 1. If the both nodes are booted, the first booted node will be automatically started. |
*Failover (true/false)
It indicates whether there is an ongoing failover due to troubles.
When it is set to true, if the following event occurs, it is reset to false.
- The locking command sets the Locked/TLocked attribute to false.
- The initialization command (Flush) is sent.
- A group goes online.
Group State
The state of the group is determined by the state of the resources.
However, the status of persistent resources like Ethernet adapter do not affect on the status of group because these resources should be online on both nodes commonly.
Basically the group may have the following states.
[Figure] Group State View
Online
This is a state where all the resources are online.
Offline
This is a state where all the resources are offline.
They are displayed on the console window as gray colored icons.
But a Persistent Resources (e.g. Ethernet adapter) still remain online with colored icon regardless the group offline.
Partial
This is a state where only some of the resources are online and shows as a green check marks.
A persistent resources are excluded from state determination, they do not affect the partial online state.
Faulted
This is a state where one or more resources are failed and the group will also be regarded as faulted. It shows in red check marks.
The failure state does not mean that a failure is occurring at present. It only shows that a failure occurred, and refers to waiting for the administrator's analysis and actions.
Unless the administrator directly clears the failure state, and uses an attribute like 'AutoFaultClearTime' to cancel it, the failure state will remained.
CLI Use (mcgroup command)
It sends the commands related to MCCS group. Group related commands such as add, delete, online, offline, attribute edit can be done.
Info |
---|
When you install MCCS, the initial user account ID is set to 'admin' and the password is set to 'password'. |
Syntax
mcgroup [-u userid -pw password] [-ip node_ip_address] [-p port] -command [ group ] [-a attribute] [-r resource] [-n node] |
Options
Option | Description |
-h | It prints help menu. |
-u | Designate the user ID. |
-pw | Enter the user password . |
-ip | It defines the node to access to execute command. If omitted, it will access to execute command for local node. |
-p | It specifies the port to access to execute command. |
-groupcommand | It defines group command. |
group | It enters name of the group. |
-a | [list] It defines the attribute value that should be listed if it is command. |
-r | It defines the resource to be managed. |
-n | It defines node name to be managed. |
-t | It defines the interval time. |
-dep | It shows dependency of the group or the resource. |
Example
add
Adds testGroup.
mcgroup -u admin -pw password -add testGroup |
delete
Delete testGroup.
mcgroup -u admin -pw password -delete testGroup |
online
Bring online testGroup on testNode..
mcgroup -u admin -pw password -online testGroup [-n testNode] |
offline
Take offline testGroup on testNode
mcgroup -u admin -pw password -offline testGroup [-n testNode] |
move
Switchover testGroup to testNode
mcgroup -u admin -pw password -move testGroup [-n testNode] |
clear
Remove fault mark on testGroup of testNode.
mcgroup -u admin -pw password -clear testGroup [-n testNode] |
flush
Initiate all command for testGroup of testNode.
mcgroup -u admin -pw password -flush testGroup -n testNode |
modify
Modify a value of attribute of testGroup on testNode.
mcgroup -u admin -pw password -modify test -a attribute attribute_value -n testNode |
Modify the value of ‘AutoStart’ attribute of testGroup on testNode.
mcgroup -u admin -pw password -modify testGroup -a AutoStart true -n testNode |
list
Prints state of the group.
mcgroup -u admin -pw password -list [group [-all] | [-dep [-r resource]] | [-a attribute] [-n testNode]] |
It shows all the attribute value of the group.
mcgroup -u admin -pw password [-ip node_ipaddress] [-p port] -list [group [ -all]] |
It shows dependency of resource that belongs to the group.
mcgroup -u admin -pw password [-ip node_ipaddress] [-p port] -list [-dep [-r resource]] |
It checks certain attribute value of the group.
mcgroup -u admin -pw password [-ip node_ipaddress] [-p port] -list [-a attribute] [-n testNode]] |
lock
Locks testGroup temporarily.
mcgroup -u admin -pw password -lock testGroup |
Locks testGroup permanently.
mcgroup -u admin -pw password -lock testGroup -p |
unlock
Unlocks testGroup.
mcgroup -u admin -pw password -unlock testGroup |
state
It prints state of testGroup of testNode.
mcgroup -u admin -pw password -state testGroup [-n testNode] |
monitor
Monitors testGroup state on every time interval.
mcgroup -u admin -pw password -monitor testGroup [-t interval(seconds)] |