Started and Slave are basically the same state - so nothing is wrong
as such - though it might be nice if it did in fact show Slave instead
of Started.

On 5/2/07, Doug Knight <[EMAIL PROTECTED]> wrote:
When I initially start up a master_slave drbd resource (ms_dbrd_7788),
using a Place constraint to tell it where I want it to run (uname #eq
node1), the Master resource (rsc_drbd_7788:0) comes up on node1 with
Master status indicated by crm_mon. The resource that comes up on node2,
rsc_drbd_7788:1 comes up but never gets Slave status in crm_mon. I have
to switch the master to node2 by changing the constraint to uname #eq
node2, after which node2 has Master status indicated and node1 had Slave
status. How can I get the Slave resource to properly status on startup?
Here is the resource definition:

 <resources>
   <master_slave notify="true" id="ms_drbd_7788">
     <instance_attributes id="ms_drbd_7788_instance_attrs">
       <attributes>
         <nvpair id="ms_drbd_7788_clone_max" name="clone_max"
value="2"/>
         <nvpair id="ms_drbd_7788_clone_node_max" name="clone_node_max"
value="1"/>
         <nvpair id="ms_drbd_7788_master_max" name="master_max"
value="1"/>
         <nvpair id="ms_drbd_7788_master_node_max"
name="master_node_max" value="1"/>
       </attributes>
     </instance_attributes>
     <primitive class="ocf" type="drbd" provider="heartbeat"
id="rsc_drbd_7788">
       <instance_attributes id="rsc_drbd_7788_instance_attrs">
         <attributes>
           <nvpair id="fdb586b1-d439-4dfb-867c-3eefbe5d585f"
name="drbd_resource" value="pgsql"/>
         </attributes>
       </instance_attributes>
       <operations>
         <op name="monitor" timeout="60" id="drbd_monitor" interval="5m"
start_delay="0" disabled="false" role="Started"/>
       </operations>
     </primitive>
   </master_slave>
</resources>

And here is the constraint:

   <rsc_location id="locate_drbd" rsc="ms_drbd_7788">
     <rule id="rule_drbd_on_node1" role="master" score="100">
       <expression id="exp_drbd_on_node1" attribute="#uname"
operation="eq" value="node1"/>
     </rule>
   </rsc_location>

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to