[Pacemaker] How are Scores computed regarding roles?

Marcos Tiago Marcos.Tiago at openet.com
Tue Feb 5 15:11:13 EST 2013


Guys,

I am having trouble configuring a collocation in crm (corosync), but I am not sure if what I want is possible. This is the scenario:

Let's say it's a 2 node cluster, with one resource in each. RES1 is with location inf in Node1, and RES2 is with location inf in Node2. Both resources are in Started role.

I have a third resource (IP address) that has: colocation 20 with RES1 and colocation 10 with RES2, so that if RES1 fails, it moves to node2.

When RES1 is restarted after a failure, the IP resource moves to Node 1, as expected.

But the IP is moving to Node 1 *before* RES1 is in Started state, which is not good for my situation because RES1 is not ready to receive requests yet.

I would like the IP to move back to Node 1 only when RES1 is in Started role.

In other words, I would like the score associated with RES1 to be computed only when RES1 is Started.

Is this even possible? If it is, how? If it's not, then how could I achieve such behavior?

Thanks!
Marcos
Sao Paulo - Brazil



________________________________
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, circulation, retention or transmission of this e-mail and/or any file or attachment transmitted with it, is prohibited and may be unlawful. If you have received this e-mail or any file or attachment transmitted with it in error please notify postmaster at openet.com. Although Openet has taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130205/50e608f8/attachment-0002.html>


More information about the Pacemaker mailing list