Sorry but it is solved. The problem wasn&#39;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">&lt;<a href="mailto:achapela.rexistros@gmail.com">achapela.rexistros@gmail.com</a>&gt;</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>
&lt;constraints&gt;<br>
  &lt;rsc_location id=&quot;mail-prefers-correo2&quot; rsc=&quot;DRBD-Mail&quot;&gt;<br>
    &lt;rule id=&quot;mail-master-rule&quot; score=&quot;500&quot; role=&quot;Master&quot;&gt;<br>
      &lt;expression id=&quot;mail-master-exp&quot; attribute=&quot;#uname&quot; operation=&quot;eq&quot;<br>
value=&quot;correo2&quot;/&gt;<br>
    &lt;/rule&gt;<br>
  &lt;/rsc_location&gt;<br>
  &lt;rsc_location id=&quot;mail-not-prefers-correo3&quot; rsc=&quot;DRBD-Mail&quot;&gt;<br>
    &lt;rule id=&quot;mail-master-rule-correo3&quot; score=&quot;100&quot; role=&quot;Master&quot;&gt;<br>
      &lt;expression id=&quot;mail-master-exp-correo3&quot; attribute=&quot;#uname&quot;<br>
operation=&quot;eq&quot; value=&quot;correo3&quot;/&gt;<br>
    &lt;/rule&gt;<br>
  &lt;/rsc_location&gt;<br>
  &lt;rsc_location id=&quot;samba-prefers-correo3&quot; rsc=&quot;DRBD-Samba&quot;&gt;<br>
    &lt;rule id=&quot;samba-master-rule-correo3&quot; score=&quot;500&quot; role=&quot;Master&quot;&gt;<br>
      &lt;expression id=&quot;samba-master-exp-correo3&quot; attribute=&quot;#uname&quot;<br>
operation=&quot;eq&quot; value=&quot;correo3&quot;/&gt;<br>
    &lt;/rule&gt;<br>
  &lt;/rsc_location&gt;<br>
  &lt;rsc_location id=&quot;samba-not-prefers-correo2&quot; rsc=&quot;DRBD-Samba&quot;&gt;<br>
    &lt;rule id=&quot;samba-master-rule-correo2&quot; score=&quot;100&quot; role=&quot;Master&quot;&gt;<br>
      &lt;expression id=&quot;samba-master-exp-correo2&quot; attribute=&quot;#uname&quot;<br>
operation=&quot;eq&quot; value=&quot;correo2&quot;/&gt;<br>
    &lt;/rule&gt;<br>
  &lt;/rsc_location&gt;<br>
<br>
  &lt;rsc_colocation id=&quot;samba-group-drbd-master&quot; rsc=&quot;Samba-Mount&quot;<br>
with-rsc=&quot;DRBD-Samba&quot; with-rsc-role=&quot;Master&quot; /&gt;<br>
<br>
&lt;/constraints&gt;<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: &lt;rsc_order<br>
id=&quot;samba-group-after-drbd-samba-master&quot; first=&quot;DRBD-Samba&quot;<br>
first-action=&quot;promote&quot; then=&quot;Samba-Mount&quot;  then-action=&quot;start&quot; /&gt;<br>
<br>
I don know but seems that rules are not applied as I expect...<br>
<br>
Regards.<br>
</blockquote></div><br>