2009/10/5 "Женя Женя" <[email protected]>:
>
>
>      Hello everyone.
>
>
>
>      I have installed heartbead-2 on three nodes. APS-1, APS-2, APS-3
>
>      On First node (asp-1) should be started the following services:
>
>      Virtual IP 10.11.4.1
>
>      Apache
>
>      My applications
>
>      On second node (aps-2) should be started following services:
>
>      Virtual IP
>
>      Mysql
>
>      On the Third node (aps-3) should be started the services from node aps-1 
> or aps-2 in case if one of these nodes will down.
>
>
>
>      But I don't understand completely how this should be realized.
>
>
>
>      For test I created one group for APS-2:
>
>      <group id="mysql">
>
>               <primitive class="heartbeat" id="mysql_drbd" 
> provider="heartbeat" type="drbddisk">
>
>                 <instance_attributes 
> id="bf312125-6c8a-4486-a20d-183dde81b454">
>
>                   <attributes>
>
>                     <nvpair id="mysql_drbd_attr_1" name="drbd_mysql" 
> value="mysql"/>
>
>                   </attributes>
>
>                 </instance_attributes>
>
>                 <operations>
>
>                   <op id="op-mysql_drbd0-1" name="monitor" interval="5s" 
> timeout="10s" role="Master"/>
>
>                   <op id="op-mysql_drbd0-2" name="monitor" interval="6s" 
> timeout="10s" role="Slave"/>
>
>                 </operations>
>
>               </primitive>
>
>               <primitive id="ip-mysql" class="ocf" type="IPaddr2" 
> provider="heartbeat">
>
>                 <instance_attributes 
> id="879dbf30-7b59-4e2b-8b94-cbf3abea6a97">
>
>                   <attributes>
>
>                     <nvpair id="IPaddr_10_11_4_2_attr_0" name="ip" 
> value="10.11.4.2"/>
>
>                     <nvpair id="IPaddr_10_11_4_2_attr_1" name="netmask" 
> value="16"/>
>
>                     <nvpair id="IPaddr_10_11_4_2_attr_2" name="nic" 
> value="eth0"/>
>
>                   </attributes>
>
>                 </instance_attributes>
>
>                 <operations>
>
>                   <op id="op-ip-mysql" name="monitor" interval="10s" 
> timeout="15s"/>
>
>                 </operations>
>
>               </primitive>
>
>             </group>
>
>
>
>      And wrote the following constraints.
>
>      <constraints>
>
>             <rsc_location id="ip-mysql-2" rsc="mysql" node="aps-2" 
> score="100"/>
>
>             <rsc_location id="ip-mysql-3" rsc="mysql" node="aps-3" 
> score="50"/>
>
>             <rsc_location id="ip-mysql-1" rsc="mysql" node="aps-1" 
> score="-INFINITY"/>
>
>           </constraints>
>
>
>
>      In case when I stop heartbeat service on aps-2 node. This group migrates 
> to aps-1 node. But should be migrating to aps-3.
>
>      Please explain me, what I do wrong?

Can you attach your full config please?
The most common issue is not using the result of "uname -n" in the
node="" section of the constraints.
_______________________________________________
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