Hi Dejan,
"ptest -Ls" comes back with nothing.  However "ptest -LVs" produces the 
following :

ptest[25537]: 2009/09/22_21:37:56 CRIT: dump_node_scores: clone_color: 
ms-drbd0.lnodbct = 0
ptest[25537]: 2009/09/22_21:37:56 CRIT: dump_node_scores: clone_color: 
ms-drbd0.lnodbbt = 0
ptest[25537]: 2009/09/22_21:37:56 CRIT: dump_node_scores: clone_color: 
drbd0:0.lnodbct = 0
ptest[25537]: 2009/09/22_21:37:56 CRIT: dump_node_scores: clone_color: 
drbd0:0.lnodbbt = 76
ptest[25537]: 2009/09/22_21:37:56 CRIT: dump_node_scores: clone_color: 
drbd0:1.lnodbct = -1000000
ptest[25537]: 2009/09/22_21:37:56 CRIT: dump_node_scores: clone_color: 
drbd0:1.lnodbbt = 0
ptest[25537]: 2009/09/22_21:37:56 CRIT: dump_node_scores: native_color: 
drbd0:0.lnodbct = 0
ptest[25537]: 2009/09/22_21:37:56 CRIT: dump_node_scores: native_color: 
drbd0:0.lnodbbt = 76
ptest[25537]: 2009/09/22_21:37:56 CRIT: dump_node_scores: native_color: 
drbd0:1.lnodbct = -1000000
ptest[25537]: 2009/09/22_21:37:56 CRIT: dump_node_scores: native_color: 
drbd0:1.lnodbbt = -1000000
ptest[25537]: 2009/09/22_21:37:56 CRIT: dump_node_scores: native_color: 
fs0.lnodbbt = 1000000
ptest[25537]: 2009/09/22_21:37:56 CRIT: dump_node_scores: native_color: 
ip0.lnodbbt = 1000000

I don't understand how these scores came about.  In my CIB I only have 3 
statements with scores:

<rule id="drbd0-master-on-lnodbbt" role="master" score="100">
<rsc_colocation id="fs0_on_drbd0" to="ms-drbd0" to_role="master" from="fs0" 
score="infinity"/>
<rsc_colocation id="ip0_on_drbd0" to="ms-drbd0" to_role="master" from="ip0" 
score="infinity"/>

How did these 3 statements get translated into the above ptest scores ?

Bernie


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Dejan Muhamedagic
Sent: Tuesday, September 22, 2009 3:37 PM
To: General Linux-HA mailing list
Subject: Re: [Linux-HA] Master/Slave constraints preventing resources from 
failing over ?

Hi,

On Tue, Sep 22, 2009 at 03:25:29PM -0400, Bernie Wu wrote:
> Hi List,
> I have a constraint identifying nodeA as the master in our 2 node 
> master/slave setup.
>
> <rsc_location id="drbd0-master-1" rsc="ms-drbd0">
>   <rule id="drbd0-master-on-nodeA" role="master" score="100">
>     <expression id="exp-1" attribute="#uname" operation="eq" value="nodeA"/>
>   </rule>
> </rsc_location>
>
> If I shutdown HB on nodeA, nothing fails over to nodeB.
> Do I need another constraint for slave nodeB  with a lower score ?

No. If the resource is eligible to run on the other node it will.
You can try ptest -Ls to check the scores. Otherwise, the logs
should tell.

Thanks,

Dejan

>
> Any help, advice or pointers would be much appreciated.
>
> TIA
> Bernie Wu
>
>
> ________________________________
> The information contained in this e-mail message is intended only for the 
> personal and confidential use of the recipient(s) named above. This message 
> may be an attorney-client communication and/or work product and as such is 
> privileged and confidential. If the reader of this message is not the 
> intended recipient or an agent responsible for delivering it to the intended 
> recipient, you are hereby notified that you have received this document in 
> error and that any review, dissemination, distribution, or copying of this 
> message is strictly prohibited. If you have received this communication in 
> error, please notify us immediately by e-mail, and delete the original 
> message.
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

The information contained in this e-mail message is intended only for the 
personal and confidential use of the recipient(s) named above. This message may 
be an attorney-client communication and/or work product and as such is 
privileged and confidential. If the reader of this message is not the intended 
recipient or an agent responsible for delivering it to the intended recipient, 
you are hereby notified that you have received this document in error and that 
any review, dissemination, distribution, or copying of this message is strictly 
prohibited. If you have received this communication in error, please notify us 
immediately by e-mail, and delete the original message.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to