Hi,

On Fri, Feb 06, 2015 at 10:28:36AM +0500, Muhammad Sharfuddin wrote:
> pacemaker-1.1.11-0.7.53
> corosync-1.4.7-0.19.6
> 
> resource 'app2' depends on 'app1', i.e without app1, app2 can't run.
> 
> resource 'app1' is configured to run on node1, while app2 is
> configured to run on node2 via location rules.
> 
> cluster is configured to never start the app2 atop node1.
> 
> I don't want to run both the resources on node2 simultaneously. How
> can I configure the cluster to do not run
> the app2 on the node2 when cluster has to run the app1 atop
> node2(due to failure/unavailability of node1)

Use a negative collocation constraint (probably with -inf) for
the two resources, that way the cluster will never collocate
them. You also need to make sure that app1 always has a higher
score than app2.

Thanks,

Dejan



> Help me how can I achieve this.
> 
> -- 
> Regards,
> 
> Muhammad Sharfuddin
> 
> 
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
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