В Wed, 17 Dec 2014 16:38:56 +0100
"Thomas Manninger" <dbgtmas...@gmx.at> пишет:

> Hi,
>  
> i am using pacemaker on debian in a test environment. pacemaker version is: 
> 1.1.7-1
>  
> I have a problem unterstanding minus points in a location.
>  
> I have 3 nodes in my test environment, node1, node2 and node3
> I created a ressource, named resBind9, which should be preferred started on 
> node1 and node2, if one of the two nodes fails, bind9 should be start on the 
> third node.
>  
> The first crm configuration works correctly:
> node node1
> node node2
> node node3
> primitive resBind9 lsb:bind9 &#92;
>     op monitor interval="5"
> clone cloneBind9 resBind9 &#92;
>     meta clone-max="2" clone-node-max="1" target-role="Started"
> location locBind9 cloneBind9 100: node1
> location locBind9_2 cloneBind9 100: node2
> property &#36;id="cib-bootstrap-options" &#92;
>     dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" &#92;
>     cluster-infrastructure="openais" &#92;
>     expected-quorum-votes="3" &#92;
>  
> But, why is the following configuration not working? Bind9 never starts on 
> node3!
> node node1
> node node2
> node node3
> primitive resBind9 lsb:bind9 &#92;
>     op monitor interval="5"
> clone cloneBind9 resBind9 &#92;
>     meta clone-max="2" clone-node-max="1" target-role="Started"
> location locBind9 cloneBind9 -100: mysqlcluster-slave2
                                     ^^^ what's this?
> property &#36;id="cib-bootstrap-options" &#92;
>     dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" &#92;
>     cluster-infrastructure="openais" &#92;
>     expected-quorum-votes="3" &#92;
>  
> "-100" points means, that bind9 only starts on the location, of another node 
> are down, or is this no correct??
>  

No, negative score means node cannot run on this node. Unless some
other rule makes score positive, resource will not run on this node. 

> Thanks for help!


_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to