Sorry but it is solved. The problem wasn't the rule. It was a bad configuration of a resource. I have an attribute bad written.<br><br>Thank you!<br><br><div class="gmail_quote">2010/2/1 Adrian Chapela <span dir="ltr"><<a href="mailto:achapela.rexistros@gmail.com">achapela.rexistros@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<br>
I have this rules:<br>
<constraints><br>
<rsc_location id="mail-prefers-correo2" rsc="DRBD-Mail"><br>
<rule id="mail-master-rule" score="500" role="Master"><br>
<expression id="mail-master-exp" attribute="#uname" operation="eq"<br>
value="correo2"/><br>
</rule><br>
</rsc_location><br>
<rsc_location id="mail-not-prefers-correo3" rsc="DRBD-Mail"><br>
<rule id="mail-master-rule-correo3" score="100" role="Master"><br>
<expression id="mail-master-exp-correo3" attribute="#uname"<br>
operation="eq" value="correo3"/><br>
</rule><br>
</rsc_location><br>
<rsc_location id="samba-prefers-correo3" rsc="DRBD-Samba"><br>
<rule id="samba-master-rule-correo3" score="500" role="Master"><br>
<expression id="samba-master-exp-correo3" attribute="#uname"<br>
operation="eq" value="correo3"/><br>
</rule><br>
</rsc_location><br>
<rsc_location id="samba-not-prefers-correo2" rsc="DRBD-Samba"><br>
<rule id="samba-master-rule-correo2" score="100" role="Master"><br>
<expression id="samba-master-exp-correo2" attribute="#uname"<br>
operation="eq" value="correo2"/><br>
</rule><br>
</rsc_location><br>
<br>
<rsc_colocation id="samba-group-drbd-master" rsc="Samba-Mount"<br>
with-rsc="DRBD-Samba" with-rsc-role="Master" /><br>
<br>
</constraints><br>
<br>
DRBD-Samba and DRBD-Mail are two multi-state resources. Only one of node<br>
is Master.<br>
<br>
As I can read in the rules, I know that correo2 will be the Master of<br>
DRBD-Mail and correo3 will be the master of DRBD-Samba and Samba-Mount<br>
will be executed on correo3.<br>
<br>
So, why is Samba-Mount executed on correo2 ? It is executed before one<br>
of DRBD-Samba is promoted to master. For that reason I thought in<br>
ordering constraints, so I have added this rule: <rsc_order<br>
id="samba-group-after-drbd-samba-master" first="DRBD-Samba"<br>
first-action="promote" then="Samba-Mount" then-action="start" /><br>
<br>
I don know but seems that rules are not applied as I expect...<br>
<br>
Regards.<br>
</blockquote></div><br>