[Pacemaker] Corosync+Pacemaker multistate failed rule

Adrián Ebay achapela.rexistros at gmail.com
Mon Feb 1 06:46:31 EST 2010


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.

Thank you!

2010/2/1 Adrian Chapela <achapela.rexistros at gmail.com>

> Hello,
>
> I have this rules:
> <constraints>
>  <rsc_location id="mail-prefers-correo2" rsc="DRBD-Mail">
>    <rule id="mail-master-rule" score="500" role="Master">
>      <expression id="mail-master-exp" attribute="#uname" operation="eq"
> value="correo2"/>
>    </rule>
>  </rsc_location>
>  <rsc_location id="mail-not-prefers-correo3" rsc="DRBD-Mail">
>    <rule id="mail-master-rule-correo3" score="100" role="Master">
>      <expression id="mail-master-exp-correo3" attribute="#uname"
> operation="eq" value="correo3"/>
>    </rule>
>  </rsc_location>
>  <rsc_location id="samba-prefers-correo3" rsc="DRBD-Samba">
>    <rule id="samba-master-rule-correo3" score="500" role="Master">
>      <expression id="samba-master-exp-correo3" attribute="#uname"
> operation="eq" value="correo3"/>
>    </rule>
>  </rsc_location>
>  <rsc_location id="samba-not-prefers-correo2" rsc="DRBD-Samba">
>    <rule id="samba-master-rule-correo2" score="100" role="Master">
>      <expression id="samba-master-exp-correo2" attribute="#uname"
> operation="eq" value="correo2"/>
>    </rule>
>  </rsc_location>
>
>  <rsc_colocation id="samba-group-drbd-master" rsc="Samba-Mount"
> with-rsc="DRBD-Samba" with-rsc-role="Master" />
>
> </constraints>
>
> DRBD-Samba and DRBD-Mail are two multi-state resources. Only one of node
> is Master.
>
> As I can read in the rules, I know that correo2 will be the Master of
> DRBD-Mail and correo3 will be the master of DRBD-Samba and Samba-Mount
> will be executed on correo3.
>
> So, why  is Samba-Mount executed on correo2 ? It is executed before one
> of DRBD-Samba is promoted to master. For that reason I thought in
> ordering constraints, so I have added this rule: <rsc_order
> id="samba-group-after-drbd-samba-master" first="DRBD-Samba"
> first-action="promote" then="Samba-Mount"  then-action="start" />
>
> I don know but seems that rules are not applied as I expect...
>
> Regards.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100201/963ad15b/attachment-0002.html>


More information about the Pacemaker mailing list