[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 16:04:44 CET 2008


Andrew Beekhof escribi=F3:
> On Wed, Nov 12, 2008 at 12:53, Adrian Chapela
> <achapela.rexistros at gmail.com> wrote:
>   =

>> 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 instan=
ces
>> to Master state. Why ?
>>     =

>
> How many nodes?  OpenAIS or Heartbeat?
>   =

Two nodes with Heartbeat.
> What does the current CIB look like (including status)?
>   =

Attached the CIB to mail.
>   =

>> Could you see any bad constraint ?
>>
>> These are my constraints:
>> <constraints>
>>
>>       <rsc_order id=3D"mail-drbd-promote-then-mail-group" first=3D"Mail-=
drbd"
>> first-action=3D"promote" then=3D"Mail" then-action=3D"start"/>
>>       <rsc_order id=3D"montaxe-mail-then-anti-spam" first=3D"Montaxe-mai=
l"
>> first-action=3D"start" then=3D"Anti-Spam" then-action=3D"start"/>
>>       <rsc_order id=3D"anti-spam-then-amavisd-new" first=3D"Anti-Spam"
>> first-action=3D"start" then=3D"Amavisd-New" then-action=3D"start"/>
>>       <rsc_order id=3D"amavisd-new-then-exim4" first=3D"Amavisd-New"
>> first-action=3D"start" then=3D"Exim4" then-action=3D"start"/>
>>       <rsc_order id=3D"exim4-then-courier-authdaemon" first=3D"Exim4"
>> first-action=3D"start" then=3D"Courier-Authdaemon" then-action=3D"start"=
/>
>>       <rsc_order id=3D"courier-authdaemon-then-courier-pop"
>> first=3D"Courier-Authdaemon" first-action=3D"start" then=3D"Courier-POP3"
>> then-action=3D"start"/>
>>       <rsc_order id=3D"courier-pop-then-IPaddr-Mail1" first=3D"Courier-P=
OP3"
>> first-action=3D"start" then=3D"IPaddr-Mail1" then-action=3D"start"/>
>>       <rsc_order id=3D"courier-pop-then-IPaddr-Mail2" first=3D"Courier-P=
OP3"
>> first-action=3D"start" then=3D"IPaddr-Mail2" then-action=3D"start"/>
>>
>>
>>       <rsc_order id=3D"samba-drbd-promote-then-samba-group" first=3D"Sam=
ba-drbd"
>> first-action=3D"promote" then=3D"Samba" then-action=3D"start"/>
>>       <rsc_order id=3D"samba-FileSystem-then-samba-service"
>> first=3D"Montaxe-samba" first-action=3D"start" then=3D"Samba-Service"
>> then-action=3D"start"/>
>>       <rsc_order id=3D"samba-service-then-IPaddr-Samba" first=3D"Samba-S=
ervice"
>> first-action=3D"start" then=3D"IPaddr-Samba" then-action=3D"start"/>
>>
>>
>>       <rsc_colocation id=3D"mail_drbrd_rule" rsc=3D"Mail" with-rsc=3D"Ma=
il-drbd"
>> with-rsc-role=3D"Master" score=3D"INFINITY"/>
>>       <rsc_colocation id=3D"samba_drbrd_rule" rsc=3D"Samba"
>> with-rsc=3D"Samba-drbd" with-rsc-role=3D"Master" score=3D"INFINITY"/>
>>
>>
>>       <rsc_location id=3D"mail-connectivity" rsc=3D"Mail-drbd">
>>               <rule id=3D"mail-pingd-prefer-rule" score-attribute=3D"pin=
gd"
>> role=3D"Master">
>>                       <expression id=3D"mail-pingd-prefer" attribute=3D"=
pingd"
>> operation=3D"defined"/>
>>               </rule>
>>       </rsc_location>
>>
>>       <rsc_location id=3D"samba-connectivity" rsc=3D"Samba-drbd">
>>               <rule id=3D"samba-pingd-exclude-rule" score=3D"-INFINITY" >
>>                       <expression id=3D"samba-pingd-exclude" attribute=
=3D"pingd"
>> operation=3D"lt" value=3D"2000"/>
>>               </rule>
>>       </rsc_location>
>>
>>
>>       <rsc_location id=3D"mail-primary-node" rsc=3D"Mail-drbd">
>>               <rule id=3D"mail-preferred-primary-node" score=3D"5000"
>> role=3D"Master">
>>                       <expression attribute=3D"#uname"
>> id=3D"expression-mail-primary-node" operation=3D"eq" value=3D"node2"/>
>>               </rule>
>>       </rsc_location>
>>
>>       <rsc_location id=3D"mail-secondary-node" rsc=3D"Mail-drbd">
>>               <rule id=3D"mail-preferred-secondary-node" score=3D"1000"
>> role=3D"Master">
>>                       <expression attribute=3D"#uname"
>> id=3D"expression-mail-secondary-node" operation=3D"eq" value=3D"node1"/>
>>               </rule>
>>       </rsc_location>
>>
>>
>>       <rsc_location id=3D"samba-primary-node" rsc=3D"Samba-drbd">
>>               <rule id=3D"samba-preferred-primary-node" score=3D"INFINIT=
Y"
>> role=3D"Master">
>>                       <expression attribute=3D"#uname"
>> id=3D"expression-samba-primary-node" operation=3D"eq" value=3D"node2"/>
>>               </rule>
>>       </rsc_location>
>> </constraints>
>>
>> Thank you!
>>
>> _______________________________________________
>> Pacemaker mailing list
>> Pacemaker at clusterlabs.org
>> http://list.clusterlabs.org/mailman/listinfo/pacemaker
>>
>>     =

>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker
>
>   =


-------------- next part --------------
A non-text attachment was scrubbed...
Name: last_config.xml
Type: text/xml
Size: 57988 bytes
Desc: not available
Url : http://list.clusterlabs.org/pipermail/pacemaker/attachments/20081112/=
69f2ebab/last_config-0001.bin


More information about the Pacemaker mailing list