문서의 이전 판입니다!
RHEL8 Cluster 구성
기본구성
패키지 설치
[root@rhcs1 ~]# yum install pcs pacemaker fence-agents-all
방화벽 설정
[root@rhcs1 ~]# firewall-cmd --permanent --add-service=high-availability [root@rhcs1 ~]# firewall-cmd --reload
클러스터 계정 설정
[root@rhcs1 ~]# passwd hacluster Changing password for user hacluster. New password: Retype new password: passwd: all authentication tokens updated successfully.
서비스 설정
[root@rhcs1 ~]# systemctl start pcsd.service [root@rhcs1 ~]# systemctl enable pcsd.service
클러스터 구성
호스트 인증
[root@z1 ~]# pcs host auth z1.example.com z2.example.com Username: hacluster Password: z1.example.com: Authorized z2.example.com: Authorized
클러스터 생성
[root@z1 ~]# pcs cluster setup my_cluster --start z1.example.com z2.example.com
클러스터 시작
[root@z1 ~]# pcs cluster enable --all [root@z1 ~]# systemctl enable pacemaker [root@z1 ~]# systemctl enable corosync
클러스터 상태 확인
[root@z1 ~]# pcs cluster status Cluster Status: Stack: corosync Current DC: z2.example.com (version 2.0.0-10.el8-b67d8d0de9) - partition with quorum Last updated: Thu Oct 11 16:11:18 2018 Last change: Thu Oct 11 16:11:00 2018 by hacluster via crmd on z2.example.com 2 Nodes configured 0 Resources configured ...
클러스터 구성 확인
[root@z1 ~]# pcs cluster status Cluster Status: Stack: corosync Current DC: z1.example.com (version 2.0.0-10.el8-b67d8d0de9) - partition with quorum Last updated: Thu Oct 11 16:11:18 2018 Last change: Thu Oct 11 16:11:00 2018 by hacluster via crmd on z1.example.com 2 nodes configured 0 resources configured PCSD Status: z1.example.com: Online z2.example.com: Online
STONITH 비활성화
fence 장치를 구성하기 전에는 STONITH를 비활성화 해야 한다.
[root@z1 ~]# pcs property set stonith-enabled=false
참조링크
로그인하면 댓글을 남길 수 있습니다.