> I have two node ha cluster node1 and node2 I start virtual IP resource in  
> cluster on node1, I set stick-ness=0,when node1 reboot virtual ip migrate to 
> node2.however when node1 come back virtual IP still start on node2.Is there 
> any 
> way to migrate resource back to node1?

If you want auto-failback to a specific node you have to set the preference of 
a resource to a node.
e.g.
crm configure location location-resource1 resource1 100: node1

If the difference between this location preference and the node that it is 
running on is higher than the cluster suite stickiness it will migrate the 
resource.
The stickiness off the cluster suite is set as follows:
crm_attribute --type rsc_defaults --attr-name resource-stickiness --attr-value 
50 

Regards,
Robert van Leeuwen

_______________________________________________
Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

Reply via email to