-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mold 용 Fencing Agent 개발 #353
Comments
Linux 환경에서의 Pacemaker와 Mold fence agent를 이용한 Mysql FailOver 구성
1. 구성 환경
2. Pacemaker 클러스터 구성방화벽 해제==== [VM1, VM2 실행]
pacemaker 패키지 설치==== [VM1, VM2 실행]
서비스 시작 및 등록
클러스터 계정 존재여부 확인
hosts 파일 변경
Pacemaker 클러스터 구성 및 시작==== [VM1 실행]
==== [VM1, VM2 실행]
3. Shared disk를 활용한 Mysql 구성==== [VM1, VM2 실행]
lvm.conf 설정==== [VM1, VM2 실행]
system-id 확인
Mysql 설치 및 구성==== [VM1, VM2 실행] Mysql를 설치합니다.
mysql을 구성합니다.
4. mold_fence agent 설치 및 stonith 구성
Mold fence agent 설치==== [VM1, VM2 실행]
PCS resource 등록fencing 처리를 위한 stonith resource 구성 각 노드에 fencing 처리를 위한 stonith를 생성하고 구성.
기본 stonith 액션을 power off로 변경
5. Mysql Failover를 위한 pcs resource 구성lvm, file system, mysql을 pcs resource로 등록하고 그룹화하여 한 Node에서만 실행되고 이동되도록 구성합니다.
LVM-activate resource 에이전트 등록
Filesystem resource 에이전트 등록
VIP resource 등록
Mysql resource 에이전트 등록
구성 완료된 pcs 상태 확인 |
Mold Agent 개발 방법 및 패키징
|
마이그레이션 정상 작동 및 Agent 정상 동작 여부 테스트테스트 개요상기 기술된 'Linux 환경에서의 Pacemaker와 Mold fence agent를 이용한 Mysql FailOver 구성' 내용에 따라 pcs 클러스터를 구성한 상태에서 VM1(Master)을 다른 호스트로 마이그레이션 할 경우를 테스트 하였습니다. 결과
|
Mold 용 Fencing Agent
개요
기존의 Fencing Agent를 ipmilan를 활용하였으며, 해당 Agent를 활용하기 위해서는 가상머신에 vbmc 디바이스를 연결 후 해당 가상머신이 운영중인 호스트에 VBMC 포트포워딩을 연결 해줘야 구성이 가능함
해당 방식을 이용할 경우 문제점은 아래와 같다
이와 같은 이유로 Mold에서 위 문제점을 해결 할 수 있는 Mold 용 Agent 를 개발을 진행 한다.
개발 방식
개발 완료 후 테스트 항목
The text was updated successfully, but these errors were encountered: