Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
리소스 그룹 속성
그룹 속성은 그룹의 상태 뷰와 속성 뷰에서 파악할 수 있습니다.
MCCS 웹 콘솔의 그룹 관리 뷰에서 그룹 선택 후, 오른쪽의 '그룹 속성값' 탭에서 상세 정보를 볼 수 있습니다.
회색으로 표기된 값은 읽기 전용입니다. 이 값들은 그룹 상태를 나타내기 위한 정보입니다.
흰색으로 표기된 값은 사용자에 의해 정의된 수정 가능한 값입니다.
[그림] 그룹 속성 화면
...
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 | 자동비활성화 된 상태입니다. | 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. | INTEGER0초 | 0 sec | O | ||
AutoRestart | 그룹이 감지 전용 리소스의 장애로 인해 시작되지 못한 경우, 그 리소스가 정상화되거나 노드 상태가 정상 상태로 변경되면 자동으로 다시 시작할지를 결정합니다. | BOOLEAN | false | O | ||
*AutoStart | 엔진이 시작되면 그룹을 자동으로 시작하는지를 알려줍니다When the engine starts, it will notify when the group will be started automatically. | BOOLEAN | true | O | ||
AutoStartNode | BatchAfterOnline | 그룹을 온라인 한 후에 실행할 배치 파일을 설정합니다. 배치 파일의 성공, 실패 여부가 그룹의 진행상황에 영향을 주지는 않습니다.Set a node which group can be online without remote node being connected after MCCS main process is started. | STRING | NONE | O | |
BatchAfterOnline | Set the batch file to run after a group goes online. | FILE | O | |||
BatchBeforeOffline | 그룹을 오프라인 하기 이전에 실행할 배치 파일을 설정합니다. | FILE | O | |||
BatchTimeout | 배치 파일의 실행 완료 제한 시간을 지정합니다Designate the time out for running the batch file. | INTEGER300초 | 300 sec | O | ||
Enabled | 그룹 관리를 가능하게 합니다. | 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 | 영구잠금, 그룹을 잠금상태로 만들어 모든 동작과 명령을 제한합니다. | BOOLEAN | false | X | ||
MaxDependencyLevel | 그룹 내에서 리소스 간의 의존 관계를 설정할 수 있는 상하의 최대 단계를 지정합니다Designate the max vertical level that sets the dependencies among the resources in a group. | INTEGER20단계 | 20 levels | X | ||
Monitored | 활성화된 모든 리소스에 대한 감시가 완료되었는지를 나타냅니다It indicates whether all the activated resources are monitored. | BOOLEAN | X | |||
OnlineCount | 그룹 내에서 온라인 상태인 리소스의 개수입니다. | 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 | 그룹의 운영 대상이 되는 노드 목록입니다. | STRING | X | |||
TLocked | '임시 잠금' 상태를 알려주는 속성입니다. | BOOLEAN | false | X |
*AutoStart (true/false)
시스템 부팅 단계에서 새롭게 클러스터 연결을 시작할 때 그룹을 자동으로 시작할 것인지를 결정합니다.
(MCCS 서비스를 다시 시작하는 경우이거나 한 노드만 재시작하여 이미 운영중인 MCCS에 연결하는 경우에는 무시됩니다.)
병렬 그룹인 경우는 로컬 노드에서 오프라인 상태이거나 일부 온라인 상태이면 자동으로 시작합니다.
페일오버 그룹은 타깃 노드에서 우선 순위가 가장 높은 노드부터 자동으로 시작합니다. 잠금이나 장애가 발생한 경우에는 그룹이 시작되지 않습니다.
리소스에 따른 그룹 자동 시작 옵션
...
AutoStart 가 true 로 설정되어 있어야 합니다.
...
1.모든 원격 노드가 FAULTED 상태가 아니어야 합니다.
2.모든 노드의 DRBD 롤이 Secondary이어야 합니다.
3.미러 디스크의 연결 상태가 한 노드에서는 SyncSource, 다른 노드에서는 SyncTarget 이어야 합니다. SyncSource 상태의 노드를 소스 노드로 결정합니다.
4.두 노드 모두 Connected 상태에서 가장 최근에 온라인된 노드를 온라인 시킵니다.
5.그룹 내에 여러 개의 미러 디스크 리소스가 있다면, 리소스들은 모두 한 노드에 대해 소스 노드이어야 온라인이 가능합니다.
...
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)
장애로 인한 페일오버가 진행 중인지를 나타냅니다.
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 |
---|
MCCS는 설치 시 최초 사용자 계정으로 ID는 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 | 사용자 ID를 지정합니다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)] |