...
회색으로 표기된 값은 읽기 전용입니다. 이 값들은 그룹 상태를 나타내기 위한 정보입니다. 흰색으로 표기된 값은 사용자에 의해 정의된, 수정가능한 값입니다. 아래에 일부가 설명되어 있습니다. 상세한 내용은 이 문서의 "챕터 9. 속성 - 그룹 속성값" 편을 참조해 주십시오.
[그림] 그룹 속성 화면
AutoDisabled(true/false)
...
하지만 모니터링 전용 리소스들은 그룹 상태에 영향을 미치지 않습니다. 왜냐하면 모니터링 전용 리소스의 그룹을 어떤 노드에서 시작하든지 온라인 상태여야 하기 때문입니다.
그룹 상태는 기본적으로 다음과 같습니다.
[그림] 그룹 상태 화면
온라인
...
그룹에 관한 명령을 전달합니다. 그룹에 대해 추가, 삭제, 온라인, 오프라인, 속성 편집 등의 명령을 내릴 수 있습니다. 그룹 속성에 대한 상세한 내용은 "챕터 3.1 그룹 속성" 편을 참조해 주십시오.
Syntax
mcgroup [-n node_ip_address] [-p port] -command [ group ] [-a attribute] [-r resource] [-n node] |
...
Example
add
그룹 testGroup을 생성합니다.
mcgroup -add testGroup |
delete
그룹 testGroup을 삭제합니다.
mcgroup -delete testGroup |
...
testNode에서 testGroup을 온라인 시킵니다.
mcgroup -online testGroup [-n testNode] |
...
testNode에서 testGroup을 오프라인 시킵니다.
mcgroup -offline testGroup [-n testNode] |
...
testNode로 testGroup을 페일오버 시킵니다.
mcgroup -move testGroup [-n testNode] |
...
testNode에서 testGroup의 장애 표시를 제거합니다.
mcgroup -clear testGroup [-n testNode] |
...
testNode의 testGroup을 초기화 시킵니다.
mcgroup -flush testGroup -n testNode |
...
testNode의 testGroup 속성을 수정합니다.
mcgroup -modify test -a attribute value -n testNode |
testNode의 testGroup 속성인 AutoStart를 true로 변경합니다.
mcgroup -modify testGroup -a AutoStart true -n testNode |
list
그룹 상태를 출력합니다.
mcgroup -list [group [-all] | [-dep [-r resource]] | [-a attribute] [-n testNode]] |
그룹의 모든 속성값을 출력합니다.
mcgroup [-n node] [-p port] -list [group [ -all]] |
그룹에 속한 리소스의 의존성을 보여줍니다.
mcgroup [-n node] [-p port] -list [-dep [-r resource]] |
그룹의 속성값을 확인합니다.
mcgroup [-n node] [-p port] -list [-a attribute] [-n testNode]] |
...
testGroup을 임시 잠금 상태로 합니다.
mcgroup -lock testGroup |
testGroup을 영구 잠금 상태로 합니다.
mcgroup -lock testGroup -p |
unlock
testGroup의 잠금 상태를 해제합니다.
mcgroup -unlock testGroup |
...
test Node의 testGroup 상태를 출력합니다.
mcgroup -state testGroup [-n testNode] |
...
testGroup 상태를 interval 간격으로 모니터링 합니다.
mcgroup -monitor testGroup [-t interval(seconds)] |
...