2010/12/1 Mia Lueng <[email protected]>:
> Sometime we need set a resource is perferred running a node. When the
> perferred  node  or some depend resources(ip,filesystem)  failed,  the
> resource will fail over to another node; And if the node or its depend
> resources is recovered, the resource will fail back to the perferred
> node.
> What I mean maybe is  not resource-stickness, because
> resource-stickness means the resource stays on its origenal place, but
> not its perferred place.
>
> Here is a example for perferred node scenario(Node A,B, Resource R, A
> is perferred node):
>
> 1. When A, B are both active, R is running on a.
> 2. When a is fail .  unplug its nic link or hba link to storage,  R is
> fail over to B
> 3. When a is recovered, or the nic and hba link is re-plug, R is fail back to 
> B
>

Use location constraint to set your preference
for instance in my set-up I have

location PrimaryNode-pbx_service_01 pbx_service_01 200: pbxsrv1
location SecondaryNode-pbx_service_01 pbx_service_01 10: pbxsrv3
which will make pbxsrv1 the primary node for pbx_service_01 resource group
You also need to make sure your resource-stickiness is low, 0 in this
case will be fine.

Try it and let us know,
Pavlos
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to