How can I prevent a managed resource from failing back to its original location automatically when the preferred node rejoins a Red Hat High Availability cluster with Pacemaker?

Solution Verified - Updated -

Issue

  • I have a resource with a location constraint that prefers one node over the other, and when that primary node fails, the resource fails over to the backup node. However, after the primary node is fenced and rejoins the cluster after a reboot, my application suffers another outage when the cluster fails the resource back to the primary node.
  • Is there an equivalent in pacemaker to rgmanager's nofailback failoverdomain option?
  • How can I prevent a resource group having to move twice when a node fails and again when it joins the cluster because there was a location constraint?

Environment

  • Red Hat Enterprise Linux 6, 7, or 8 with the High Availability Add On
  • Pacemaker
  • One or more location constraints defined in the cluster CIB (<cib><configuration><constraints><rsc_location/></constraints></configuration></cib>)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content