•
정상 확인
# Cluster size가 제대로 되었는지 확인
> show global status like 'wsrep_cluster_size';
# 다음 옵션을 변경하여 동기화되도록 설정
> SET GLOBAL wsrep_provider_options='pc.bootstrap=YES';
Shell
복사
•
vi /var/lib/mysql/grastate.dat
# GALERA saved state
version: 2.1
uuid: UUID값
seqno: -1 # 마지막으로 죽은 node 확인 '1'을 찾자.
safe_to_bootstrap: 0 # 그 node를 기준으로 복구를 진행
Shell
복사
•
DB Galera Cluster 설정
$ service mysql start --wsrep-new-cluster
Starting mysql (via systemctl): [ OK ]
.
.
.
service mysql start
나머지 node 추가
Shell
복사
Galera Cluster node 이탈 시