이 페이지의 주요 내용
리소스 타입
It is classified resources according the types and has different attributes for each type.
MCCS provides various resource types as shown in below.
[Figure] Resource Types in the MCCS for Linux
When you add a resource, this will be classified under the type as tree view structure.
For an example, when you add two NIC resource, these will be classified under the NIC type as shown below.
If you edit an attribute of resource type, this will affect all of the resources classified this type.
[Figure] Classifying of resources under the type
그림에서 보여지는 네트워크 카드 리소스인 eth0 과 eth1은 네트워크 카드 리소스 타입에 포함되는 리소스입니다.
If you edit an attribute of resource type, this will affect all of the resources classified this type.
For an example, if the value of MonitorInterval of NIC resource type is edited to 30 sec, this will be applied to all of NIC resource.
리소스 타입 속성
Resource type has specified attributes for each type.
For an example, when compare to NIC and mirror disk, each service has different characteristics and has specific monitor interval, online/offline timeout and managed policies
또한 고가용성 클러스터링을 구성한 환경에서도 네트워크 상태가 좋지 못한 경우에는 모니터링 타임아웃 값의 조정이 필요할 수가 있습니다. 이런 요구에 따라 타입 별로 각각의 속성을 변경할 수가 있습니다.
리소스 타입 속성은 MCCS 콘솔의 리소스 타입 속성에서 확인 할 수 있습니다.
[Figure] Resource Type Attribute View
Attribute | Description | Type | Default | Edit | 비고 |
---|---|---|---|---|---|
Actions | It indicates valid operations of resources of the resource type. Values are OnOnly (can online only), OnOFF(can online and offline), None (cannot online and offline). | STRING | X | ||
ArgList | It is the list of specified attributes in the resource attributes view. It can be checked in type.json file but cannot be edited. | STRING | X | ||
CleanTimeout | It indicates the maximum waiting time from the execution of the Clean command to the completion of Clean. If this value is exceeded, it will forcibly stop it. (unit = second) | INTEGER | 60초 | O | |
FaultOnMonitorTimeouts | If monitor timeouts take place as much as this value, this value executes the Clean command and considers it as a failure, or restarts as much as the 'RestartLimit' value. | INTEGER | 4회 | O | |
MonitorInterval | It indicates the interval to the next monitoring when online resources are monitored. | INTEGER | 10초 | O | |
MonitorTimeout | It is the maximum time within which the monitor entry point must complete or else be terminated. (unit = second) | INTEGER | 10초 | O | |
OfflineMonitorInterval | It indicates the interval until the next monitoring when offline resources are monitored. If it is set as '0,' offline resources will not be monitored. (unit = second) | INTEGER | 60초 | O | |
OnlineRetryLimit | It indicate the number of retry count if it fails to start resource. | INTEGER | 0회 | O | |
ToleranceLimit | It retries as many times as defined if the monitoring result cannot be trusted. In general, if the result of the ICMP ping test with a network interface card cannot be trusted, | INTEGER | 0회 | O |
CLI 사용(mctype 명령)
리소스 타입에 관한 명령을 전달 합니다. 리소스 타입에 대해 속성 조회, 속성 값 변경 명령을 내릴 수 있습니다.
MCCS 는 설치시 최초 사용자 계정으로 id 가 'admin' 암호가 'password'인 계정을 생성합니다.
CLI 명령을 실행시 id 와 password를 입력하지 않으면 , 위의 최초 사용자 계정의 id와 암호로 실행됩니다.
따라서 최초 사용자의 패스워드 변경시, 필수적으로 CLI 명령에 id와 password를 옵션으로 입력해야만 합니다.
Syntax
mctype [-u userid -pw password] -t resoruceType -a attribute |
Options
옵션 | 설명 |
-h | 도움말을 출력합니다. |
-u | 사용자 계정을 지정합니다. |
-pw | 사용자 Password를 지정합니다. |
-r | 수정할 리소스 타입 이름을 지정 합니다. |
-a | 수정할 리소스 타입의 속성 이름을 지정합니다. |
-list | 리소스 타입 리스트가 나열 됩니다. |
Example
modify
MirrorDisk의 MonitorInterval 속성값을 수정합니다.
mctype -modify -t MirrorDisk -a MonitorInterval value |
list
모든 리소스 타입에 대한 속성값을 출력합니다.
(-t resourceType 입력시 지정한 리소스 타입에 대한 속성값이 출력됩니다.)
mcnode -list [t -resourceType] |