[Linux-HA] rsc_colocation rule was not used - why?

Andrew Beekhof beekhof at gmail.com
Mon Nov 5 10:53:15 MST 2007


On 11/2/07, Alexander Strachan <astrachan at inter-systems.com.au> wrote:
> During testing at a production site the Linux HA cluster seemed to ignore a
> rsc_colocation rule.
>
> OS - Redhat AS4, Heartbeat 2.1.2
>
> setup:
>   Host         Statement
>   ====         =========
>   sinfids3a1   (Host unavailable - main NIC had been pulled earlier)
>   sinfids3a2   (Main NIC just pulled)  Running resource_sinfids3_vip
>   sinfids3b1   (Available)
>   sinfids3b2   (Available) Currently running group_sinfids3b
>
> Resource Colocation rule
>   <rsc_colocation id="colocation_sinfids3_sinfids3a" from="group_sinfids3a"
> to="resource_sinfids3_vip" score="900000"/>
>   <rsc_order id="order_sinfids3_sinfids3a" from="group_sinfids3a"
> to="resource_sinfids3_vip" action="start" type="before" symmetrical="false"/>
>   <rsc_colocation id="colocation_sinfids3_sinfids3b" from="group_sinfids3b"
> to="resource_sinfids3_vip" score="300000"/>
>   <rsc_order id="order_sinfids3_sinfids3b" from="group_sinfids3b"
> to="resource_sinfids3_vip" action="start" type="before" symmetrical="false"/>
>
> I was expecting the sinfids3_vip resource to move from 3a2 -> 3b2 to buddy up
> with group_sinfids3b.

I believe its the other way around... group_sinfids3b would be moved
to the location of resource_sinfids3_vip.

rsc_colocation objects read "figure out where 'to' goes, then put
'from' there as well".

i'd recommend getting the latest interim build^ and reading
http://oss.beekhof.net/~beekhof/heartbeat/docs/Colocation-Explained.html


^ http://software.opensuse.org/download/server:/ha-clustering
(yes it has redhat packages there too)



More information about the Linux-HA mailing list