This article will help you ensure your cluster stack packages and their respective updates come from LINBIT and not RHEL repositories.
Unlike CentOS, RHEL needs exclude statements in additional places to the usual /etc/yum.repos.d/*.conf files.
RHEL6
Exclude the resource-agents package in the RHEL repos. Edit '/etc/yum/pluginconf.d/rhnplugin.conf', inserting the name of the repo in brackets, and the line to exclude 'resource-agents':
[rhel-x86_64-server-6]
exclude=resource-agents
NOTE: You will also need to add the exclude to any *.repo config in '/etc/yum.repos.d' that points to a RHEL 'resource-agents' package.
RHEL7
/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"
Reviewed 2020/12/01 - DGT