Depending on the user's intentions, heartbeat of nodename of the server can be changed.
Below is the instruction of how to change heartbeat and nodename.
이 페이지의 주요 내용
How to edit heartbeat
- 콘솔에서 클러스터를 선택 후 - 메뉴의 편집 - 핫빗 구성 편집을 선택합니다.
[Figure] Edit Heartbeat Configuration View It shows heartbeat configuration setting.
[Figure] Heartbeat Configuration Edit Initial ViewEdit heartbeat and check connection state by clicking test.
[Figure] Test Connection State after changing heartbeat- Click "Yes" button to apply heartbeat changes.
[Figure] Check heartbeat changes View - After applying heartbeat, wait for restart.
[Figure] After Restart Engine and Waiting View - When the engine is restarted, a message will appear.
[Figure] Restart Engine Completed Message
CLI 사용(mchb 명령)
mchb 명령
핫빗에 관한 명령을 전달 합니다. 핫빗 구성 리스트, 핫빗 구성 , 핫빗 수정, 클러스터명 수정, 핫빗 포트 수정을 명령 내릴 수 있습니다.
MCCS 는 설치시 최초 사용자 계정으로 id 가 'admin' 암호가 'password'인 계정을 생성합니다.
CLI 명령을 실행시 id 와 password를 입력하지 않으면 , 위의 최초 사용자 계정의 id와 암호로 실행됩니다.
따라서 최초 사용자의 패스워드 변경시, 필수적으로 CLI 명령에 id와 password를 옵션으로 입력해야만 합니다.
Syntax
mchb [-u userid] [-pw password] -options [-c newClustername ] [ -hbport port ] [ -node nodeName] |
Options
옵션 | 설명 |
-h | 도움말을 출력합니다. |
-u | 사용자 ID를 지정합니다. |
-pw | -u 옵션의 사용자 Password를 지정합니다. |
-show | 현재 구성된 핫빗 내용을 보여줍니다. |
-clustermodify | 변경하기 위한 새로운 클러스터 명을 입력합니다. |
-hbport | 변경할 새로운 핫빗 포트를 입력합니다. |
-hbmodify | 핫빗 구성을 변경합니다 |
-newconfig | 최초 핫빗 구성 시 사용합니다. |
Example
show
구성되어 있는 핫빗 정보를 볼 수 있습니다.
mchb -u admin -pw password -show |
clustermodify
testCluster 클러스터를 이름을 newCluster로 변경합니다.
mchb -u admin -pw password -clustermodify -c newCluster |
hbport
핫빗 포트를 12345로 변경합니다.
mchb -u admin -pw password -hbport 12345 |
hbmodify
구성되어 있는 핫빗 라인중에 Primary1 핫빗을 200.200.200.1 과 200.200.200.2 로 변경합니다.
mchb -u admin -pw password -hbmodify -node Active 200.200.200.1,100.100.100.1,10.10.7.71 -node -StandBy 200.200.200.2,100.100.100.2,10.10.7.72 |
newcofig
핫빗을 구성합니다.
클러스터 이름 : MCCS_Cluster
핫빗 포트 : 14321 , 상대방 노드 네트워크 주소 : 10.10.7.72
노드 이름 : Active , StandBy
mchb -u admin -pw password -newcofig -clustername MCCS_Cluster -hbport 14321 -remote 10.10.7.72 -node Active 100.100.100.1,200.200.200.1,10.10.7.71 -node StandBy 100.100.100.2,200.200.200.2,10.10.7.72 |