[ClusterLabs] Complex Pacemaker resource depedency

Ken Gaillot kgaillot at redhat.com
Tue Sep 11 13:57:09 EDT 2018


On Mon, 2018-09-10 at 21:46 +0200, Vassilis Aretakis wrote:
> 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

If I understand the question correctly, you want resource sets (in an
ordering constraint, with require-all=false):

http://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/1.1/html-single/Pacemaker_Explained/index.html#s-resource-sets
-- 
Ken Gaillot <kgaillot at redhat.com>



More information about the Users mailing list