[ClusterLabs] Complex Pacemaker resource depedency

Vassilis Aretakis vassilis at onlab.xyz
Mon Sep 10 15:46:37 EDT 2018


Hi All,

I have a Pacemaker which failovers IPs around 5 nodes. I want to add an 
default Route on each node, when this node has at least one of the 
resources running.


The resources are:

  vip1-19    (ocf::heartbeat:IPaddr2):    Started b01.
  vip1-20    (ocf::heartbeat:IPaddr2):    Started bm02.
  vip1-21    (ocf::heartbeat:IPaddr2):    Started eworker01.
  vip1-22    (ocf::heartbeat:IPaddr2):    Started eworker02.
  vip1-23    (ocf::heartbeat:IPaddr2):    Started eworker03.
  vip1-24    (ocf::heartbeat:IPaddr2):    Started b02.
  vip1-25    (ocf::heartbeat:IPaddr2):    Started eworker01.
  vip1-26    (ocf::heartbeat:IPaddr2):    Started eworker02.
  vip1-27    (ocf::heartbeat:IPaddr2):    Started b01.
  vip1-28    (ocf::heartbeat:IPaddr2):    Started eworker03.
  vip1-29    (ocf::heartbeat:IPaddr2):    Started eworker01.
  vip1-30    (ocf::heartbeat:IPaddr2):    Started eworker02.

The Resource which brings up the Route is:

  Clone Set: r1-clone [r1]
      Started: [ b01. b02. eworker01. eworker02. eworker03. ]

If one nodes starts then the r1-clone cannot start, because it has no IP 
assigned on that interface and therefore cannot add route.
I have to manually cleanup this resource to make it work.

What do you suggest to make these resources always come up after at 
least one ip is running on the servers?


Regards,

Vass




More information about the Users mailing list