5장. Pacemaker 클러스터 구성
5.1. 기본 클러스터 구성 배포 링크 복사링크가 클립보드에 복사되었습니다!
다음 기본 클러스터 설정은 SAP HANA 시스템 복제를 관리하기 위한 Pacemaker 클러스터 설정을 시작하기 위한 최소 단계를 설명합니다.
복잡한 구성의 설정 및 옵션에 대한 자세한 내용은 RHEL HA 애드온 설명서를 참조하십시오(예: 여러 링크가 있는 고가용성 클러스터 만들기 ).
사전 요구 사항
- HANA 시스템 복제 환경을 설정하고 제대로 작동하는지 확인했습니다.
- 이 클러스터의 노드가 될 모든 시스템에 RHEL High Availability 리포지토리를 구성했습니다.
- 계획된 환경에 따라 펜싱 및 쿼럼 요구 사항을 확인했습니다. 자세한 내용은 HA 클러스터 요구 사항을 참조하십시오.
프로세스
고가용성 리포지토리에서 Red Hat High Availability Add-On 소프트웨어 패키지를 설치합니다. 모든 클러스터 노드에서 설치를 설치하고 실행할 차단 에이전트를 선택합니다.
클러스터 패키지 및 모든 차단 에이전트를 설치합니다.
[root]# dnf install pcs pacemaker fence-agents-all또는 환경에 따라 클러스터 패키지와 특정 차단 에이전트만 설치합니다.
[root]# dnf install pcs pacemaker fence-agents-<model>
모든 클러스터 노드에서
pcsd서비스를 시작하고 활성화합니다.[root]# systemctl enable --now pcsd.service선택 사항:
firewalld서비스를 실행하는 경우 Red Hat High Availability Add-On에 필요한 포트를 활성화합니다. 모든 클러스터 노드에서 이 작업을 실행합니다.[root]# firewall-cmd --add-service=high-availability [root]# firewall-cmd --runtime-to-permanenthacluster사용자의 암호를 설정합니다. 동일한 암호를 사용하여 각 노드에서 명령을 반복합니다.[root]# passwd hacluster클러스터의 각 노드에 대해 사용자
hacluster를 인증합니다. 첫 번째 노드에서 이 작업을 실행합니다.[root]# pcs host auth <node1> <node2> Username: hacluster Password: <node1>: Authorized <node2>: Authorized-
/etc/hosts파일에 정의된 대로 FQDN이 있거나 없는 노드 이름을 입력합니다. -
프롬프트에
hacluster사용자 암호를 입력합니다.
-
이름으로 클러스터를 생성하고 클러스터 구성원의 이름(예:
node1및node2)에 정규화된 호스트 이름을 제공합니다. 이렇게 하면 노드 모두에서 클러스터 구성이 전파되고 클러스터가 시작됩니다. 첫 번째 노드에서 이 명령을 실행합니다.[root]# pcs cluster setup <cluster_name> --start <node1> <node2> No addresses specified for host 'node1', using 'node1' No addresses specified for host 'node2', using 'node2' Destroying cluster on hosts: 'node1', 'node2'... node2: Successfully destroyed cluster node1: Successfully destroyed cluster Requesting remove 'pcsd settings' from 'node1', 'node2' node1: successful removal of the file 'pcsd settings' node2: successful removal of the file 'pcsd settings' Sending 'corosync authkey', 'pacemaker authkey' to 'node1', 'node2' node1: successful distribution of the file 'corosync authkey' node1: successful distribution of the file 'pacemaker authkey' node2: successful distribution of the file 'corosync authkey' node2: successful distribution of the file 'pacemaker authkey' Sending 'corosync.conf' to 'node1', 'node2' node1: successful distribution of the file 'corosync.conf' node2: successful distribution of the file 'corosync.conf' Cluster has been successfully set up. Starting cluster on hosts: 'node1', 'node2'...시스템 시작 시 클러스터를 자동으로 시작하여
corosync및pacemaker서비스를 활성화합니다. 노드를 재시작한 후 클러스터 시작을 수동으로 제어하려면 이 단계를 건너뜁니다. 하나의 노드에서 실행합니다.[root]# pcs cluster enable --all node1: Cluster Enabled node2: Cluster Enabled
검증
클러스터 상태를 확인합니다. 클러스터 데몬 서비스가 원하는 상태인지 확인합니다.
[root]# pcs status --full Cluster name: node1-node2-cluster WARNINGS: No stonith devices and stonith-enabled is not false Cluster Status: Cluster Summary: * Stack: corosync (Pacemaker is running) * Current DC: node1 (version ) - partition with quorum * Last updated: * on node1 * Last change: ** by hacluster via hacluster on node1 * 2 nodes configured * 0 resource instances configured ... PCSD Status: node1: Online node2: Online Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled
다음 단계
- STONITH 메커니즘을 활성화하도록 펜싱 방법을 구성합니다. Red Hat High Availability 클러스터에서 펜싱 구성을 참조하십시오.
- 클러스터의 추가 구성을 진행하기 전에 펜싱 설정을 테스트합니다. 자세한 내용은 Red Hat High Availability 클러스터에서 차단 장치 및 펜싱 구성을 테스트하는 방법을참조하십시오.