5장. Pacemaker 클러스터 구성


5.1. 기본 클러스터 구성 배포

다음 기본 클러스터 설정은 SAP HANA 시스템 복제를 관리하기 위한 Pacemaker 클러스터 설정을 시작하기 위한 최소 단계를 설명합니다.

복잡한 구성의 설정 및 옵션에 대한 자세한 내용은 RHEL HA 애드온 설명서를 참조하십시오(예: 여러 링크가 있는 고가용성 클러스터 만들기 ).

사전 요구 사항

  • HANA 시스템 복제 환경을 설정하고 제대로 작동하는지 확인했습니다.
  • 이 클러스터의 노드가 될 모든 시스템에 RHEL High Availability 리포지토리를 구성했습니다.
  • 계획된 환경에 따라 펜싱 및 쿼럼 요구 사항을 확인했습니다. 자세한 내용은 HA 클러스터 요구 사항을 참조하십시오.

프로세스

  1. 고가용성 리포지토리에서 Red Hat High Availability Add-On 소프트웨어 패키지를 설치합니다. 모든 클러스터 노드에서 설치를 설치하고 실행할 차단 에이전트를 선택합니다.

    1. 클러스터 패키지 및 모든 차단 에이전트를 설치합니다.

      [root]# dnf install pcs pacemaker fence-agents-all
    2. 또는 환경에 따라 클러스터 패키지와 특정 차단 에이전트만 설치합니다.

      [root]# dnf install pcs pacemaker fence-agents-<model>
  2. 모든 클러스터 노드에서 pcsd 서비스를 시작하고 활성화합니다.

    [root]# systemctl enable --now pcsd.service
  3. 선택 사항: firewalld 서비스를 실행하는 경우 Red Hat High Availability Add-On에 필요한 포트를 활성화합니다. 모든 클러스터 노드에서 이 작업을 실행합니다.

    [root]# firewall-cmd --add-service=high-availability
    [root]# firewall-cmd --runtime-to-permanent
  4. hacluster 사용자의 암호를 설정합니다. 동일한 암호를 사용하여 각 노드에서 명령을 반복합니다.

    [root]# passwd hacluster
  5. 클러스터의 각 노드에 대해 사용자 hacluster 를 인증합니다. 첫 번째 노드에서 이 작업을 실행합니다.

    [root]# pcs host auth <node1> <node2>
    Username: hacluster
    Password:
    <node1>: Authorized
    <node2>: Authorized
    • /etc/hosts 파일에 정의된 대로 FQDN이 있거나 없는 노드 이름을 입력합니다.
    • 프롬프트에 hacluster 사용자 암호를 입력합니다.
  6. 이름으로 클러스터를 생성하고 클러스터 구성원의 이름(예: node1node 2)에 정규화된 호스트 이름을 제공합니다. 이렇게 하면 노드 모두에서 클러스터 구성이 전파되고 클러스터가 시작됩니다. 첫 번째 노드에서 이 명령을 실행합니다.

    [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'...
  7. 시스템 시작 시 클러스터를 자동으로 시작하여 corosyncpacemaker 서비스를 활성화합니다. 노드를 재시작한 후 클러스터 시작을 수동으로 제어하려면 이 단계를 건너뜁니다. 하나의 노드에서 실행합니다.

    [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

다음 단계

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat
맨 위로 이동