How can I achieve a configuration with a RHEL 6 or 7 High Availability cluster with pacemaker where a resource refuses to run on a certain node, and the resources it colocates with prefer to run on that banned node?

Solution Unverified - Updated -

Issue

  • I want to configure a resource to never run on a specific node, to colocate that resource with another, and to prefer that resource its colocated with to prefer to run on the banned node.
  • How can I configure a cluster such that a resource will only start when the resources it must colocate with are forced to move to a secondary node?

Environment

  • Red Hat Enterprise Linux (RHEL) 6 or 7 with the High Availability Add-On
  • pacemaker
  • Two resources such that:
    • resourceA prefers to run on nodeA
    • resourceB must colocate node resourceA
    • resourceB refuses to run on nodeA

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