[Pacemaker] constraints not working

Alex Samad - Yieldbroker Alex.Samad at yieldbroker.com
Fri Mar 14 03:52:06 UTC 2014


Hmm

Okay so this is strange.

When I reboot devrp2 and it restarts the resource balance themselves out.

When I reboot devrp1 the resources don't rebalance themselves out !

A

> -----Original Message-----
> From: Alex Samad - Yieldbroker [mailto:Alex.Samad at yieldbroker.com]
> Sent: Friday, 14 March 2014 2:23 PM
> To: pacemaker at oss.clusterlabs.org
> Subject: [Pacemaker] constraints not working
> 
> I have setup constraints to have orig and clone resources on separate boxes,
> but after rebooting devrp1 all the resources are staying on devrp2
> 
> 
> 
> 
> pcs config
> Cluster Name: ybrp
> Corosync Nodes:
> 
> Pacemaker Nodes:
>  devrp1 devrp2
> 
> Resources:
>  Clone: ybrpip-clone
>   Meta Attrs: globally-unique=true clone-max=2 clone-node-max=2
>   Resource: ybrpip (class=ocf provider=heartbeat type=IPaddr2)
>    Attributes: ip=10.172.214.50 cidr_netmask=24 nic=eth0
> clusterip_hash=sourceip-sourceport
>    Operations: start interval=0s timeout=60s (ybrpip-start-interval-0s)
>                monitor interval=5s timeout=20s (ybrpip-monitor-interval-5s)
>                stop interval=0s timeout=60s (ybrpip-stop-interval-0s)
>  Clone: ybrpstat-clone
>   Meta Attrs: globally-unique=false clone-max=2 clone-node-max=1
>   Resource: ybrpstat (class=ocf provider=yb type=ybrp)
>    Operations: start interval=10s timeout=60s (ybrpstat-start-interval-10s)
>                monitor interval=5s timeout=20s (ybrpstat-monitor-interval-5s)
>                stop interval=10s timeout=60s (ybrpstat-stop-interval-10s)
> 
> Stonith Devices:
> Fencing Levels:
> 
> Location Constraints:
>   Resource: ybrpip
>     Enabled on: devrp1 (score:INFINITY) (id:location-ybrpip-devrp1-INFINITY)
>   Resource: ybrpip-clone
>     Enabled on: devrp2 (score:INFINITY) (id:location-ybrpip-clone-devrp2-
> INFINITY)
> Ordering Constraints:
>   start ybrpstat then start ybrpip (Mandatory) (id:order-ybrpstat-ybrpip-
> mandatory)
>   start ybrpstat-clone then start ybrpip-clone (Mandatory) (id:order-ybrpstat-
> clone-ybrpip-clone-mandatory)
> Colocation Constraints:
>   ybrpip with ybrpstat (INFINITY) (id:colocation-ybrpip-ybrpstat-INFINITY)
>   ybrpip-clone with ybrpstat-clone (INFINITY) (id:colocation-ybrpip-clone-
> ybrpstat-clone-INFINITY)
> 
> Cluster Properties:
>  cluster-infrastructure: cman
>  dc-version: 1.1.10-14.el6-368c726
>  last-lrm-refresh: 1394682724
>  no-quorum-policy: ignore
>  stonith-enabled: false
> 
> 
> 
> 
> pcs status
> Cluster name: ybrp
> Last updated: Fri Mar 14 13:51:42 2014
> Last change: Thu Mar 13 16:44:24 2014 via cibadmin on devrp1
> Stack: cman
> Current DC: devrp2 - partition with quorum
> Version: 1.1.10-14.el6-368c726
> 2 Nodes configured
> 4 Resources configured
> 
> 
> Online: [ devrp1 devrp2 ]
> 
> Full list of resources:
> 
>  Clone Set: ybrpip-clone [ybrpip] (unique)
>      ybrpip:0   (ocf::heartbeat:IPaddr2):       Started devrp2
>      ybrpip:1   (ocf::heartbeat:IPaddr2):       Started devrp2
>  Clone Set: ybrpstat-clone [ybrpstat]
>      Started: [ devrp1 devrp2 ]
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org Getting started:
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org




More information about the Pacemaker mailing list