Knowledge Base
linbit.com Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Ensuring Cluster Stack Packages Come from LINBIT on RHEL and AlmaLinux

This article will help you ensure that your cluster stack packages and their associated updates come from LINBIT® and not RHEL repositories.

To do this, you will need to exclude certain packages from RHEL or AlmaLinux repositories by editing .repo files in the /etc/yum.repos.d directory.

RHEL 7

/etc/yum.repos.d/redhat.repo:

[rhel-ha-for-rhel-7-server-rpms]
<snip>
exclude=cluster* pacemaker* corosync* resource-agents fence-agents libqb*

[rhel-rs-for-rhel-7-server-rpms]
<snip>
exclude=cluster* pacemaker* corosync* resource-agents fence-agents libqb*

Using subscription manager, which will prevent redhat.repo from being overwritten:

# subscription-manager repo-override \
--add=exclude:pacemaker*,corosync*,cluster*,drbd*,libqb*,resource-agents \
--repo=rhel-7-server-rpms

RHEL 8 and 9

To exclude the necessary packages from enabled RHEL repositories, enter the commands:

# RH_REPOS="`ls /etc/yum.repos.d/*.repo|grep -v linbit`"
# PKGS="cluster\* corosync\* drbd kmod-drbd libqb\* pacemaker\* pcs resource-agents\*"
# for file in $RH_REPOS; do sed -i "/^enabled[ =]*1/a exclude=$PKGS" $file; done

AlmaLinux 8 and 9

To exclude the necessary packages from enabled AlmaLinux repositories, enter the commands:

# AL_REPOS="`ls /etc/yum.repos.d/*.repo|grep -v linbit`"
# PKGS="cluster\* corosync\* drbd kmod-drbd libqb\* pacemaker\* pcs resource-agents\*"
# for file in $AL_REPOS; do sed -i "/^enabled[ =]*1/a exclude=$PKGS" $file; done

Updated 2023/09/28 - MAT

Reviewed