Hi,

On Tue, Nov 27, 2007 at 10:36:48PM +0100, Papp Tam?s wrote:
> Dear All,
> 
> I don't understand some things about the relation of heartbeat to drbd. 
> This would be a lustre mds cluster.
> 
> I've added this:
> 
> <master_slave id="ms-mdt">
>  <meta_attributes id="ma-ms-mdt">
>    <attributes>
>      <nvpair id="ma-ms-mdt-1" name="clone_max" value="2"/>
>      <nvpair id="ma-ms-mdt-2" name="clone_node_max" value="1"/>
>      <nvpair id="ma-ms-mdt-3" name="master_max" value="1"/>
>      <nvpair id="ma-ms-mdt-4" name="master_node_max" value="1"/>
>      <nvpair id="ma-ms-mdt-5" name="notify" value="yes"/>
>      <nvpair id="ma-ms-mdt-6" name="globally_unique" value="false"/>
>      <nvpair id="ma-ms-mdt-7" name="target_role" value="stopped"/>
>    </attributes>
>  </meta_attributes>
>  <primitive id="drbd_mdt" class="ocf" provider="heartbeat" type="drbd">
>    <instance_attributes id="ia-mdt">
>      <attributes>
>        <nvpair id="ia-mdt-1" name="drbd_resource" value="mdt"/>
>      </attributes>
>    </instance_attributes>
>  </primitive>
> </master_slave>
> 
> This is the command, i's OK:
> 
> $ cibadmin --obj_type resources -C -x resource_drbd.xml
> $
> 
> Than I try to make constrain:
> 1.
> <rsc_location id="mdt-placement-1" rsc="ms-mdt">
> <rule id="prefered_mdt-placement-1" score="-INFINITY">
>        <expression attribute="#uname" 
> id="a7435f31-eb26-44eb-b02b-3e67f87e6cb0" operation="ne" value="teszt1"/>
>        <expression attribute="#uname" 
> id="694a1512-4b26-4c10-a807-f8e349b8ae1d" operation="ne" value="teszt2"/>
> </rule>
> </rsc_location>
> 
> 2.
> <rsc_location id="place_mdt_on_teszt1" rsc="ms-mdt">
>  <rule id="prefered_place_mdt_on_teszt1" score="100">
>    <expression attribute="#uname" 
> id="59d25d0f-3469-4f06-9efa-7a225fd12c72" operation="eq" value="teszt1"/>
>    <expression attribute="#uname" 
> id="59d25d0f-3469-4f06-9efa-7a225fd12c73" operation="eq" value="teszt2"/>
>  </rule>
> </rsc_location>
> 
> $ cibadmin --obj_type constraints -U -x constrains.xml
> Call cib_modify failed (-22): The object/attribute does not exist
> <null>
> $
> 
> What's wrong about this command?

You tried to update (-U) but those constrains don't exist. Create
(-C) should do.

> But I can create them with gui.
> 
> Which xml is the right placement definition? I want to make it available 
> only on one place and be it teszt1 if it's active.
> 
> If I create the first one, it seems to be working, but then not. One 
> time the master (Primary) is on teszt2, then on teszt1.

You should specify the role in the rule sentence. Check
http://www.linux-ha.org/v2/Concepts/MultiState

Thanks,

Dejan

> I'll have more questions, but first of all I guess I should make this to 
> work.
> 
> By the way this is an CentOS 5 (2.6.18), with lustre 1.6.3 and drbd 0.7.25 .
> 
> I hope, I was successfull to explain the problem:)
> 
> Thank you,
> 
> tompos
> _______________________________________________
> 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

Reply via email to