[Pacemaker] Problem doing failover on Multi State instance, Failed Master is still considered as Master

Adrian Chapela achapela.rexistros at gmail.com
Wed Nov 12 11:53:13 UTC 2008


Hello,

I am testing my config again, and I can't do a failover between a failed 
Master to the Slave (Slave didn't become the Master)

I disconnected the network cable on the Master (node2). The Slave 
(node1) have detected that node2 is down, but it hasn't promoted the 
DRBD instances to Master state. Why ? Could you see any bad constraint ?

These are my constraints:
<constraints>

        <rsc_order id="mail-drbd-promote-then-mail-group" 
first="Mail-drbd" first-action="promote" then="Mail" then-action="start"/>
        <rsc_order id="montaxe-mail-then-anti-spam" first="Montaxe-mail" 
first-action="start" then="Anti-Spam" then-action="start"/>
        <rsc_order id="anti-spam-then-amavisd-new" first="Anti-Spam" 
first-action="start" then="Amavisd-New" then-action="start"/>
        <rsc_order id="amavisd-new-then-exim4" first="Amavisd-New" 
first-action="start" then="Exim4" then-action="start"/>
        <rsc_order id="exim4-then-courier-authdaemon" first="Exim4" 
first-action="start" then="Courier-Authdaemon" then-action="start"/>
        <rsc_order id="courier-authdaemon-then-courier-pop" 
first="Courier-Authdaemon" first-action="start" then="Courier-POP3" 
then-action="start"/>
        <rsc_order id="courier-pop-then-IPaddr-Mail1" 
first="Courier-POP3" first-action="start" then="IPaddr-Mail1" 
then-action="start"/>
        <rsc_order id="courier-pop-then-IPaddr-Mail2" 
first="Courier-POP3" first-action="start" then="IPaddr-Mail2" 
then-action="start"/>


        <rsc_order id="samba-drbd-promote-then-samba-group" 
first="Samba-drbd" first-action="promote" then="Samba" then-action="start"/>
        <rsc_order id="samba-FileSystem-then-samba-service" 
first="Montaxe-samba" first-action="start" then="Samba-Service" 
then-action="start"/>
        <rsc_order id="samba-service-then-IPaddr-Samba" 
first="Samba-Service" first-action="start" then="IPaddr-Samba" 
then-action="start"/>


        <rsc_colocation id="mail_drbrd_rule" rsc="Mail" 
with-rsc="Mail-drbd" with-rsc-role="Master" score="INFINITY"/>
        <rsc_colocation id="samba_drbrd_rule" rsc="Samba" 
with-rsc="Samba-drbd" with-rsc-role="Master" score="INFINITY"/>


        <rsc_location id="mail-connectivity" rsc="Mail-drbd">
                <rule id="mail-pingd-prefer-rule" 
score-attribute="pingd" role="Master">
                        <expression id="mail-pingd-prefer" 
attribute="pingd" operation="defined"/>
                </rule>
        </rsc_location>

        <rsc_location id="samba-connectivity" rsc="Samba-drbd">
                <rule id="samba-pingd-exclude-rule" score="-INFINITY" >
                        <expression id="samba-pingd-exclude" 
attribute="pingd" operation="lt" value="2000"/>
                </rule>
        </rsc_location>


        <rsc_location id="mail-primary-node" rsc="Mail-drbd">
                <rule id="mail-preferred-primary-node" score="5000" 
role="Master">
                        <expression attribute="#uname" 
id="expression-mail-primary-node" operation="eq" value="node2"/>
                </rule>
        </rsc_location>

        <rsc_location id="mail-secondary-node" rsc="Mail-drbd">
                <rule id="mail-preferred-secondary-node" score="1000" 
role="Master">
                        <expression attribute="#uname" 
id="expression-mail-secondary-node" operation="eq" value="node1"/>
                </rule>
        </rsc_location>


        <rsc_location id="samba-primary-node" rsc="Samba-drbd">
                <rule id="samba-preferred-primary-node" score="INFINITY" 
role="Master">
                        <expression attribute="#uname" 
id="expression-samba-primary-node" operation="eq" value="node2"/>
                </rule>
        </rsc_location>
</constraints>

Thank you!




More information about the Pacemaker mailing list