Introducing Pacemaker from CentOS 7 repository to RHEL7

Introducing Pacemaker from CentOS 7 repository to RHEL7

environment

OS: Red Hat Enterprise Linux Server VERSION 7.8 (Maipo) Additional repo: CentOS7

Installation procedure

If you don't have a HA Add-on subscription, Pacemaker can add a CentOS Base repository and install from there. (No Red Hat support)

The procedure is described below, but please note that there is some missing information.

ClusterLabs RHEL 7 Quickstart RHEL 7 https://clusterlabs.org/quickstart-redhat.html

add repo

# cat <<'EOF' > /etc/yum.repos.d/centos.repo
[centos-7-base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-$releasever
enabled=0
EOF 

--Added gpgkey specification --You may set gpgcheck = 0 without describing gpgkey =. --It is also possible to add gpgkey by the following command without describing gpgkey =.

# rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7

--When enabled = 0, it is disabled so as not to conflict with other repositories. --can also be specified by yum-config-manager --disable centos-7-base -Valid with yum repolist(|Invalid|all)You can check the repository that is

Introduction

# yum \
--disablerepo='*' \
--enablerepo=centos-7-base \
--releasever=7 \
install -y pacemaker pcs resource-agents

--Temporarily disable the repository you normally use, enable centos-7-base and try to install it. ---- Specify release ver = 7 (or set $ release to 7 in /etc/yum.repos.d/centos.repo) --Note: Problem with 7Server where $ release was deployed in RHEL7. Considering simultaneous use with other RHEL repo, it seems better to edit /etc/yum.repos.d/centos.repo directly.

Installation of crmsh (optional)

To use the crm command recommended by Linux-HA etc., it is necessary to install from another repository.

reference https://crmsh.github.io/download/#_red_hat_centos_fedora

crmsh repo added

# yum-config-manager --add-repo http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-7/network:ha-clustering:Stable.repo

# yum-config-manager --disable network_ha-clustering_Stable

-(Although it is not in the original procedure) This is also disabled.

Example of introducing pacemaker and crmsh at the same time

# yum \
--disablerepo='*' \
--enablerepo=centos-7-base,network_ha-clustering_Stable \
--releasever=7 \
install -y pacemaker pcs resource-agents crmsh

Ansible Playbook (task) example


- yum_repository:
    name: centos-7-base
    description: CentOS-7 - Base
    mirrorlist: http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=os
    gpgkey: http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7

- shell: |-
    set -x
    exec 2>&1
    yum-config-manager --add-repo http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-7/network:ha-clustering:Stable.repo
  register: r

- debug:
    var: r.stdout_lines

- yum:
    name:
    - pcs
    - pacemaker
    - corosync
    - resource-agents
    - corosync-qdevice
    - corosync-qnetd
    - crmsh
    #releasever: 7
    #disablerepo: '*'
    #enablerepo:
      #- centos-base
      #- network_ha-clustering_Stable

Recommended Posts

Introducing Pacemaker from CentOS 7 repository to RHEL7
Introducing JITSI MEET to CentOS 8
Upgrade from MYSQL5.7 to 8.0 on CentOS 6.7
[Rails] Introducing pay.jp (from view customization to registration)
Measures to prevent MySQL/MariaDB process from crashing on CentOS7
Changes from Java 8 to Java 11
Sum from Java_1 to 100
Migrate from JUnit 4 to JUnit 5
Introducing CircleCI to Rails
Introducing Bootstrap to Rails 5
Introducing Bootstrap to Rails !!
From Java to Ruby !!
Try switching from the RHEL environment to the Ubuntu environment Server installation
Change ownCloud database from default SQLite to MariaDB etc. (CentOS7)
I tried upgrading from CentOS 6.5 to CentOS 7 with the upgrade tool