rhel8_cluster_구성

문서의 이전 판입니다!


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 ~]# 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

fence 장치를 구성하기 전에는 STONITH를 비활성화 해야 한다.

[root@z1 ~]# pcs property set stonith-enabled=false

참조링크

로그인하면 댓글을 남길 수 있습니다.
  • rhel8_cluster_구성.1606464650.txt.gz
  • 마지막으로 수정됨: 2020/11/27 08:10
  • 저자 koov