[Pacemaker] Corosync+Pacemaker multistate failed rule
Adrian Chapela
achapela.rexistros at gmail.com
Mon Feb 1 10:35:20 UTC 2010
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.
More information about the Pacemaker
mailing list