Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
리소스란 ?
리소스란 하드웨어 또는 소프트웨어적으로 서비스 운영에 필요한 자원 요소를 말하며
네트워크 인터페이스 카드(Network Interface Card), IP 주소(IP Address), 프로세스(Process), 서비스(Service), 스토리지(Storage) 등을 말합니다.
MCCS에서는 리소스를 고가용성 운영 관리의 최소 단위로 다룹니다.
MCCS에서는 리소스를 생성할 때에 고유한 이름을 입력해야 하며, 이 이름으로 리소스 들을 구분합니다.
그러므로 기존에 생성했던 이름이나 이미 예약된 키워드(예를 들면 네트워크 카드(NIC), 프로세스(process) 등)를 이름으로 사용할 수는 없습니다.
리소스는 동작 형태에 따라 명령을 내릴 수 있는 일반 리소스(OnOff)와 모니터전용리소스(None)로 구분됩니다.
대부분의 리소스는 MCCS의 리소스의 상태에 따라서 Online 또는 Offline 할 수 있는 일반 리소스입니다.
이에 반해, 모니터전용리소스 는 Online 또는 Offline 할 수 없고 모니터만 가능한 리소스입니다.
예를 들어, 네트워크 카드는 물리적으로 존재하는지 혹은 정상 상태인지 감시만 할 수 있으며,
네트워크 주소는 온라인(online)/오프라인(offline) 명령으로 가상 IP(virtual IP)를 할당하거나 해제할 수 있습니다.
리소스들에 명령을 내리고 모니터링을 하는 작업은 해당 타입의 에이전트가 담당하게 됩니다.
리소스 속성
리소스 속성은 리소스가 동작을 취하거나 상태를 판단할 때 참조하는 값입니다.
속성들을 확인해 보려면 관리 콘솔에서 리소스를 생성한 후에 오른쪽의 속성 화면에서 볼 수 있습니다. 속성 값은 리소스 타입에 따라 일부 전용 속성이 있습니다.
리소스 속성 화면의 속성값에서 수정이 불가능한 값은 회색 바탕으로 나타납니다.
[그림] 리소스 속성 화면
...
What is Resource?
Resources are defined as hardware or software entities which are needed to provide application service. Ethernet adapter, IP Address, Process, Service, Storage, etc are resources and MCCS manage these to ensure service availability.
There are two categories of these, one is on-off resource, another is persistent resource. Most resources are normal which means MCCS online or offline them as their state. The other hands, a persistent resource cannot be brought online or taken offline, just only monitor them by MCCS.
Resource action is divided into regular resource(OnOff) and monitor resource(None).
Most of the resources are regular resources that goes Online or Offline according to the resource state.
Monitor resources are only able to monitor and does not go online or offline like regular resources.
For an instance, network interface card cannot be brought online or taken offline as its state. But it is essential resource to attach IP address on that.
Agents for each type of resource are in-charge of giving command and monitoring.
Resource Attributes
Resource attribute can be identified from Resource Attributes view of MCCS console. From the group management view of MCCS console, select the resource, then select ‘Resource Attributes’ tab located on the top of detailed information panel.
The values of gray colored are read only. They just contain and show the information of resource state. The values of white colored are configurable by user definition. Below is description of some of them.
[Figure] Resource Attribute View
Attribute | Description | Type | Default | Edit | 비고 | |||
---|---|---|---|---|---|---|---|---|
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 | 리소스의 에이전트 상태를 나타냅니다. | 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 | 이 리소스를 종료하기 전에 실행 할 배치 명령입니다. | FILE | O | |||||
BatchBeforeOnline | 이 리소스를 시작하기 전에 실행 할 배치 명령입니다. | FILE | O | |||||
BatchTimeout | 배치 파일을 실행하면 완료 될 때까지 대기하는 시간입니다. | INTEGER | 300초 | O | ||||
*CleanProgram | 리소스에 장애가 발생하여 다른 노드로 페일오버 하기 전에 | 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 | 리소스타입 속성값인 '모니터링 시간 제한'(MonitorTimeout) 설정값에 따라 | It periodically records whether monitoring is completed. | BOOLEAN | X | ||||
*NoAction | 리소스의 동작(Action) 속성을 나타냅니다. | BOOLEAN | 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 | 리소스가 장애로 판단되었을 때, | INTEGER | 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 |
※ 위의 표에서 '네트워크카드 리소스' 는 ' * ' 표시 되어있는 속성값만 사용합니다.
*Critical
장애 발생시에 페일오버 시킬 것인지를 나타내는 속성입니다.
리소스를 생성할 때에 기본적으로 true로 설정되어 있으며 대부분의 리소스에 true로 설정합니다. 시스템 운용에 중요한 영향을 주지 않는 리소스이거나, 장애가 발생해도 페일오버 할 수 없는 리소스인 경우에는 false로 설정할 수 있습니다.
Critical 값은 페일오버 전용 그룹에서만 영향이 있으며, 병렬 모드 그룹에서는 별다른 영향이 없습니다. Critical 속성은 단독으로 고려될 수도 있지만 리소스들 간의 종속성이 맺어진 경우에는 고려해야 할 상황이 많습니다.
Critical 속성이 설정이 되지 않은 리소스 일지라도 상위 리소스에 장애가 발생하면 상위의 리소스를 중심으로 페일오버를 진행해야 합니다.
*Enabled
리소스가 활성화 되어 있는지를 알려줍니다.
리소스를 활성화 시킨다는 것은 모니터링, 온라인, 오프라인 같은 동작을 수행 할 수 있다는 것을 의미합니다.
처음 리소스를 생성하면 에이전트는 사용하지 않음(detached) 상태가 되어 있습니다. 이 상태에서는 리소스와 그룹 모두 시작 메뉴가 비활성화되어 리소스를 사용할 수 없습니다.
사용자가 구성을 완료한 후에 리소스 메뉴에서 리소스 활성화 메뉴를 체크하면 에이전트는 리소스가 제대로 구성되어 있는지 감지(probing)하는 작업을 진행합니다.
정상적으로 구성되었다고 판단되면 리소스와 에이전트는 모두 오프라인 상태로 바뀝니다※ 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.
*Enabled
It shows resources are enabled which can be monitored, online and offline as state.
A resource cannot be used right after it has been created, and it must be checked ‘enable’, when has been successful configured to be used.
Agent, a MCCS component is in detached state when create a resource for the first time.
In this state, Resource and group is disabled which cannot be managed like online, offline, switch and etc.
If you check 'enable' after completing the configuration, agent executes the probing stage in which flaws in the configuration are detected.
If it is considered normally configured, both the resource and agent turn into offline state.
*BatchAfterOffline / BatchAfterOnline / BatchBeforeOnline / BatchBeforeOffline
리소스가 종료된 후 혹은 실행되기 전에 추가적으로 실행할 것들을 등록할 수 있는 속성입니다.
배치 스크립트(batch script)를 생성한 후에 그 경로명을 입력하면 적용됩니다.
예를 들면 여러 개의 자식 프로세스(child processes)들을 생성하는 응용프로그램을 오프라인 명령으로 종료시켰지만, 자식 프로세스들이 정상적으로 종료되지 않고 남아 있을 가능성이 있다면,
강제로 모두 종료 시킬 수 있는 스크립트 파일을 생성하여 이곳에 적용시켜 활용할 수 있습니다.
이런 배치 스크립트는 엔지니어 혹은 관리자가 적절히 작성하여야 할 사항이며 MCCS에서 기본적으로 제공되지는 않습니다.
이곳에서 실행된 스크립트는 MCCS 그룹이나 리소스 상태 변화에 영향을 주지는 않습니다.
그룹 온라인 중에 해당 리소스에 등록된 배치 스크립트가 실패하더라도 그룹의 온라인은 계속 진행하게 됩니다.
*BatchTimeout
추가로 설정한 배치 스크립트를 수행할 때에 스크립트의 실행 시간을 제한합니다.
스크립트 실행 중에 돌발 상황으로 인하여 교착 상태나 또는 중지 상태에 빠져버리면 다른 리소스들을 제어할 수 없는 경우가 발생할 수 있는데 이런 상황을 방지합니다.
타임아웃이 발생하여 스크립트 실행이 실패하면 더 이상 진행하지 않고 관리자의 조치를 기다립니다.
리소스 상태
[그림] 리소스 상태 화면
왼쪽 뷰에서 그룹, 리소스 타입, 리소스를 선택하면 오른쪽에 리소스 상태가 나타납니다. 리소스를 선택했을 때는 노드간의 리소스 상태를 모두 보여줍니다.
리소스 상태는 다음과 같습니다.
온라인
리소스가 시작(running)된 상태입니다.
오프라인
리소스가 중지(stop)된 상태입니다.
장애
리소스에 장애(fail)가 발생한 상태입니다.
미확인
리소스가 활성화 되지 않아 모니터링을 하지 않는 상태입니다.
리소스 제어
[그림] 리소스 제어 화면
MCCS에서 리소스를 다루기 위한 명령은 관리 콘솔에서 왼쪽 뷰의 리소스를 선택한 후에 마우스의 오른쪽 클릭으로 생성된 팝업 화면에서 선택할 수 있습니다.
또 다른 곳은 그룹을 선택한 후에 '리소스 의존성' 탭에서 해당 리소스에 마우스의 오른쪽을 클릭하면 리소스와 같은 팝업 화면을 생성시킬 수 있습니다It is used when there is additional command to be sent before the resource is online or after the resource is offline. Name of the user created batch or script file with path name is registered as value.
For an example, if an application that leads many child processes has gone offline by command, but child processes were not terminated normally. When this happens, a script file is needed to be used so that child processes can be all terminated.
This command does not affect group Online/Offline of MCCS. In other words, MCCS does the group online even though the command has failed. Only result of the command execution write in the log.
*BatchTimeout
BatchTimeout can be defined the timeout value of the result of batch execution.
It avoids a deadlock when exceptional situation occurs during the execution of scripts and other resources cannot be controlled.
If the script is not executed when offline or online attempts are made, stop further procedures and wait for the control of the administrator.
Resource State
[Figure] Resource State View
The resource state can be checked on resource state view of MCCS console.
From the group management view of MCCS console, select the resource and select ‘Resource Status’ tab from detailed information panel. The resource status will be shown.
Resource states are as below
Online
Resource is running.
Offline
Resource has been stopped.
Fault
Resource has been failed.
Unknown
Resource is not being monitored since it is not enabled.
Resource Control
[Figure] Resource Control Menus
A resource can be managed easily through MCCS console. From the group management view of MCCS console, select the resource and right click , then control menu will be pop up.
Another way to select group from the group management view of MCCS console, is to select ‘Resource Dependency’ tab from detailed information panel, select the resource and right click, then control menu will be pop up.
이 외에도 콘솔의 메뉴 항목이나 툴 바 메뉴에서 명령을 내릴 수 있으며 CLI 로도 가능합니다.
리소스 활성화
명령어 앞에 체크 표시로 활성화 되어 있는지를 알 수 있습니다. 또한 속성창의 Enabled 값으로도 확인할 수 있습니다. 리소스가 비활성화된 경우에는 리소스 상태를 감시하지 않습니다.
활성화 명령이 실패하는 경우는 속성 값이 정확하지 못할 때입니다. 가령, 기본(혹은 복합) 응용프로그램에서 잘못된 경로명을 입력했을 경우에 온라인인지 또는 오프라인인지 모니터링이 불가능합니다.
따라서 활성화에 실패하는 경우에는 속성값을 다시 한번 확인 해야 합니다.
장애시 그룹 페일오버
Critical 속성을 말하며 명령어 앞에 체크 모양으로 Critical 여부를 알 수 있습니다.
이 값이 체크 되어 있을 경우, 해당 리소스에 장애가 발생하면 그룹이 다른 노드로 페일오버 한다는 것을 의미합니다. 병렬 그룹인 경우에는 해당되지 않습니다.
수동감지
리소스 수동감지 명령이 전달되면 즉시 모니터링을 실행합니다.
에이전트는 모니터링 주기(Monitoring interval)에 맞춰 모니터링을 합니다.
따라서 속성 값의 변경이 있으면 바로 갱신이 되지 않는 경우가 발생하는데 이것을 수동으로 모니터링하여 속성값이 정확히 반영되었는지 바로 확인하고자 할 때에 사용 할 수 있습니다.
시작
리소스를 온라인 시킵니다.
이 화면에는 온라인 시킬 노드를 선택하도록 노드별 서브 메뉴가 존재하는데 노드별 리소스 상태에 따라 서브 메뉴들이 활성화 혹은 비활성화 됩니다.
예를 들면, 페일오버 그룹은 임의의 노드에서 온라인인 경우에 시작 명령이 활성화되지 않습니다.
왜냐하면 페일오버 그룹은 한 노드에서만 온라인이 되도록 정한 규칙을 가지고 있기 때문에 한쪽이라도 온라인이 되어 있다면 해당 리소스의 시작 메뉴는 활성화 되지 못합니다.
하지만 병렬 모드 그룹은 온라인 상태가 아닌 곳이라면 모두 활성화가 됩니다.
일부 온라인 상태의 그룹에서도 페일오버 전용 그룹은 한 쪽 노드에서만 온라인 되어야 하므로 온라인 되어 있는 노드 쪽에서만 시작 명령이 가능합니다.
또한 장애가 발생한 리소스도 장애 표시를 제거하기 전까지는 시작 명령이 활성화되지 않습니다. 장애를 일으킨 원인이 아직 해결되지 않았음을 뜻하기 때문입니다.
이 외에 의존성도 고려해야 합니다. 리소스를 시작하게 될 때에 만약 자식 리소스가 존재한다면 자식 리소스부터 먼저 시작하게 됩니다.
자식 리소스에 의존하는 관계에서 자식 리소스가 온라인이 되지 못하면 부모 리소스도 온라인 시킬 수가 없습니다.
따라서 시작 명령을 내릴 때에 자식 리소스가 존재하는 경우에는 자식 리소스부터 온라인 시켜서 시작 명령을 내린 리소스 단계까지 온라인이 됩니다.
종료
리소스를 오프라인 시킵니다.
시작 명령과 마찬가지로 노드를 선택할 수 있는 서브 메뉴가 존재하며 온라인 상태인 노드가 있어야만 활성화되는 명령입니다.
종료할 때에 주의할 점은 온라인 상태인 부모 리소스가 존재하는 경우 입니다.
부모 리소스는 종료 명령을 주기 위해 선택된 리소스에 의존하고 있으므로 정상적인 경우라면 시작 명령의 역순으로 부모 리소스부터 종료 되어야 안전한 종료가 될 수 있습니다.
따라서 MCCS에서는 종료 명령을 실행할 때에 온라인 상태인 부모 리소스가 존재한다면 부모 리소스부터 종료시킬 것인지를 확인하고 진행합니다.
종료(하위 리소스 포함)
리소스를 오프라인 시킬 때에 자기 이하의 모든 자식 리소스를 종료시킬 수 있는 명령입니다.
온라인 상태인 부모 리소스에 대한 처리는 일반 종료 명령과 같이 부모 리소스도 종료할 것인지 확인합니다.
장애 표시 제거
장애가 발생한 리소스는 장애 표시를 남겨두고 관리자의 조치가 있기 전까지는 그 노드 내에서 해당 리소스를 시작할 수 없습니다.
다시 말해 관리자의 처리를 기다리는 상태로 남겨지게 되는데, 장애 해결을 한 후에 다시 MCCS 운영을 하기 위해서는 장애 표시를 제거해야 하며 이때에 이 명령을 사용합니다.
리소스 장애 표시 제거는 하나의 리소스만 해당되지만 그룹의 장애 표시 제거는 그룹 내의 모든 장애 표시를 제거할 수 있습니다.
삭제
리소스를 삭제합니다.
리소스 복사 및 붙여넣기
새로운 리소스를 생성 할 때 필수 입력이 되어야 하는 속성 값을 매번 새로 입력하기가 번거롭습니다.
기존에 존재하는 리소스와 유사한 설정 값을 대부분 유지한 상태에서 리소스를 추가 하기 위해서는 관리 콘솔 화면에서 리소스 복사 및 붙여넣기 기능을 사용하여 손쉽게 리소스를 추가할 수 있습니다.
리소스 복사의 대상은 개별 리소스이며, 붙여넣기의 대상은 해당 그룹 또는 타 그룹입니다.
Warning |
---|
리소스 붙여넣기의 속성값은 기본적으로 복사한 리소스의 속성값을 유지합니다. 따라서 붙여넣는 리소스의 속성을 상황에 맞게 변경해야 복사한 리소스의 속성과 중복되지 않습니다. |
리소스 복사하기
...
...
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.
Group Failover for failure
This is about Critical attribute, and this can be checked through the check mark in front of this.
If this value is checked, that means when failure occurs, group will failover to the other node. This is not the case for the parallel group.
Probe Now
When an agent monitors the resource state, it probes that periodically. But when you use ‘Probe Now’, the agent probes the resource right away that this is ready to use.
When you modify a value of resource attribute, this may not be applied right away. But you can verify this modification is applied by using this right away.
Online
You can bring a resource online by using this.
From here, there are sub menus per node so that nodes to be online can be selected. Sub menus can be 'Enabled' or 'Disabled' according to the resource state per node. For example, failover mode group cannot send enabled command when it is online in the temporary node. This is because failover mode group should only have one node online and if there is one node that is already online, online menu is not enabled. However, in case of parallel mode group, it is all enabled if it is not in an online state.
Failover mode group should only have one node online and so node that is online can start the Online command. When this is selected, you can choose appropriate node from the sub menu which shows nodes list. When the resource is already online state, all of the node icons will be disabled at failover mode group. But the node will be enabled which the resource isn’t online state at parallel mode group.
If there is a fault mark in the resource, in which that has been failed, it should be cleared first before sending the that is online. This is because MCCS regards cause of the fault is not identified yet.
There are some considerations for dependency as well. To online a resource, if there is a child resource, child resource should be online state first. Since there is a dependency, if the child resource is not online state, parent resource cannot be online as well.
When the child resource exists, you should check that is online state before the resource bring online.
Offline
You can take a resource offline by using this.
Similar to Online, you can choose appropriate node from the sub menu.
One thing that has to be careful when offline is when there is a parent resource.
Therefore, if there is an online parent resource, a dialog box appears asking ‘There is an online resource dependent. Would you like to stop parent resources too?’
Offline Propagation
You can take a resource including parent resources offline by using this.
If there is an online parent resource, a dialog box appears asking ‘There is an online resource dependent. Would you like to stop parent resources too?’
Clear Fault
You can clear the fault mark on a resource icon by using this. You can choose appropriate node from the sub menu.
Clear fault on one resource is only for that particular resource, but clear fault for group is for all the resources in the group.
Delete
You can delete a resource by using this.
Copy and Paste Resource
It is an annoyance if attribute value is entered whenever a new resource is created.
When you add a new resource same as type of resource which is already exist, you can use this function.
Copied resource maintain same values as original one and can be pasted on any group.
After paste the resource, you can edit the values.
Warning |
---|
Attribute values that is copied resource are basically same as original resource. |
Resource Copy
- 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
새로 추가 할 리소스의 네트워크 어댑터를 선택하시고 리소스 이름을 명명하면 됩니다.
Info |
---|
기본적으로 붙여넣기한 리소스 이름은 복사한 리소스의 이름에 "_1" 이 접미어로 제공됩니다. |
ex> 네트워크카드 붙여넣기 화면
[그림] 네트워크 카드 리소스 붙여넣기 화면
CLI 사용(mcres 명령)
...
Copied resource name is defined which '_number'is added from original name by default and this can be editable. |
ex> Paste Network Card Resource
[Figure] Paste Network Card Resource View
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'인 계정을 생성합니다. |
...
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
옵션 | 설명 | |
-h | 도움말을 출력합니다It prints help menu. | |
-u | 사용자 계정을 지정합니다. | |
-pw 사용자 Password를 지정합니다 | 사용자 Password를 지정합니다. | |
-n | It defines the node to access to execute command. If omitted, it will access to execute command for local node. | |
-n | 명령을 실행하기 위해 접근할 노드를 지정합니다. 생략시 로컬 노드에 대해서 명령을 실행하기 위해 접근합니다. | |
-p | 명령을 실행하기 위해 접근할 포트를 지정합니다. 생략시 기본 포트로 접근하며, 핫빗 포트가 변경이 되면 명령실행시 포트를 지정해 주어야 합니다. | |
-resourcecommand | 리소스에 내릴 명령을 지정합니다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 | 작업할 리소스명을 입력합니다. | |
-a | [list] 명령일 경우 나열할 속성값을 지정합니다. [modify] 명령일 경우 변경할 속성과 속성값을 나열해 줍니다. | |
-t | [-add] 명령일 경우 리소스 타입을 지정합니다. [-monitor] 명령일 경우 시간 주기를 지정합니다. | |
-g | 작업할 그룹을 지정합니다. | |
-n | 작업할 노드를 지정합니다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. |
Example
add
testGroup그룹에 복합 응용 타입으로 testResource 를 생성합니다. 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
testGroup 에 속한 모든 리소스를 interval 간격으로 모니터링 합니다. 주기가 It monitors a resource in every interval. 주기가 지정되지 않은 경우에는 3초가 기본값으로 지정됩니다.
mcres -monitor [testGroup] [-t interval(seconds)] |
testGroup을 10초 간격으로 모니터링 합니다. It monitors testResource every 10 seconds.
mcres -monitor testGroup -t 10 |
modify
testResource 리소스의 attribute를 value 값으로 수정합니다. Modify a value of attribute of testResource in a node.
mcres -modify testResource -a attribute value [ -n node] |
testGroup의 testResource 리소스의 User속성 값을 administrator로 수정합니다. Modify a value of ‘User’ attribute of testResource to administrator in testNode.
mcres -modify testResource -a User administrator -n testGroupn 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 -link unlink resource1 resource2 |
unlink
리소스 의존 관계를 삭제합니다.
mcres -unlink resource1 resource2 |
local
testResource 속성 값을 모든 노드들의 속성값에 대하여 서로 다른 값을 입력할 수 있도록 지역화 합니다.
...
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
testResource 의 속성을 모든 노드들의 속성값에 대하여 공통된 값을 입력할 수 있도록 공용화 합니다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] |
testResource 의 속성 User를 전체 속성으로 값을 administrator로 설정합니다Set a User’ attribute of the testResource to administrator.
mcres -global testResource -a User administrator |
Online
testNode에 있는 testResource 리소스를 온라인 시킵니다Bring online testResource on testNode.
mcres -online testResource -n testNode |
Offline
testNode의 testResource 리소스를 오프라인 시킵니다. Take offline testResource on testNode.
mcres -offline testResource -n testNode |
Offlineprop
testNode의 testResource 리소스의 자식 리소스를 오프라인 시킵니다. Take offline the resource including its parent resource(s) of testResource on testNode.
mcres -offlineprop testResource -n testNode |
Probe
testNode의 Probe testResource 리소스를 탐색합니다 on testNode.
mcres -probe testResource -n testNode |
clear
testNode의 testResource 리소스의 에러를 제거합니다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]] |