Am Tuesday, 18. September 2007 17:16 schrieb Andrew Beekhof:
> On 9/18/07, Klemens Kittan <[EMAIL PROTECTED]> wrote:
> > > shortly I'll be releasing a revised implementation (including
> > > documentation!) of colocation which will make it much more intuitive
> > > and remove the need for hacks like symmetrical=true
> > >
> > > if anyone wants to try it sooner rather than later, grab the latest
> > > from http://hg.linux-ha.org/dev and ping me for the current version of
> > > the docs.
> >
> > Thank you for the link, we checked out the latest version (2.1.3).
> > Compiling and starting worked well.
> >
> > We did 2 types of starting the heartbeat:
> >
> > a) without symmetrical="true"
>
> you mean on the colocation constraint right?
>

Yes.
<rsc_colocation id="group_on_drbd" from="group" to="ms_drbd" to_role="Master" 
symmetrical="true" score="INFINITY"/>

> > The two systems started as master and slave and the group is started at
> > the master node. But still when one service in this group fails, the
> > complete group is deactivated and the state of master and slaves leaves
> > unchanged. Normally the slave should become master and the group should
> > start on this node.
>
> can you attach the complete CIB when the cluster is in this state?
>

Attached cib.xml is the output of cibadmin -Q in the situation described 
above. Hope you can see something in there...

> > b) with symmetrical="true"
> >
> > The behavior of the system keeps unchanged as described below:
> > > > <rsc_order id="drbd_before_group" from="group" to="ms_drbd"
> > > > action="start" to_action="promote"/>
> > > > <rsc_colocation id="group_on_drbd" from="group" to="ms_drbd"
> > > > to_role="Master" symmetrical="true" score="INFINITY"/>
> > > >
> > > > In result both systems could be started BUT both became slave!
> > > >
> > > > cat /proc/drbd:
> > > > cs:Connected st:Secondary/Secondary ld:Consistent
> > > >
> > > > crm_mon:
> > > > Master/Slave Set: ms_drbd
> > > >     drbd0:0     (heartbeat::ocf:drbd):  Started frigg
> > > >     drbd0:1     (heartbeat::ocf:drbd):  Started odin
> > > > Resource Group: group
> > > >     IPaddr0     (heartbeat::ocf:IPaddr):        Started frigg
> > > >     MailTo      (heartbeat::ocf:MailTo):        Started frigg
> > > >
> > > > Without a master I cannot access to the DRBD ressources.
> > > >
> > > > Secondly, how the group could be started? The group normally starts
> > > > at the master -- and there is none...
> >
> > Thanks for your help!
> > Klemens
> >
> > --
> > Klemens Kittan
> > Systemadministrator
> >
> > Uni-Potsdam, Inst. f. Informatik
> > August-Bebel-Str. 89
> > 14482 Potsdam
> >
> > Tel.    :   +49-331-977/3125
> > Fax.    :   +49-331-977/3122
> > eMail   : [EMAIL PROTECTED]
> >
> > gpg --recv-keys --keyserver wwwkeys.de.pgp.net 6EA09333
> >
> > _______________________________________________
> > 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

-- 
Klemens Kittan
Systemadministrator

Uni-Potsdam, Inst. f. Informatik
August-Bebel-Str. 89
14482 Potsdam

Tel.    :   +49-331-977/3125
Fax.    :   +49-331-977/3122
eMail   : [EMAIL PROTECTED]

gpg --recv-keys --keyserver wwwkeys.de.pgp.net 6EA09333
 <cib admin_epoch="0" epoch="1" num_updates="45" generated="true" have_quorum="true" ignore_dtd="false" num_peers="2" cib-last-written="Tue Sep 18 14:40:50 2007" cib_feature_revision="2.0" ccm_transition="2" dc_uuid="96a11b50-845a-4866-b091-a2d5ec548717">
   <configuration>
     <crm_config>
       <cluster_property_set id="cib-bootstrap-options">
         <attributes>
           <nvpair id="cib-bootstrap-options-symmetric-cluster" name="symmetric-cluster" value="true"/>
           <nvpair id="cib-bootstrap-options-no_quorum-policy" name="no_quorum-policy" value="stop"/>
           <nvpair id="cib-bootstrap-options-default-resource-stickiness" name="default-resource-stickiness" value="INFINITY"/>
           <nvpair id="cib-bootstrap-options-default-resource-failure-stickiness" name="default-resource-failure-stickiness" value="-INFINITY"/>
           <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
           <nvpair id="cib-bootstrap-options-stonith-action" name="stonith-action" value="reboot"/>
           <nvpair id="cib-bootstrap-options-stop-orphan-resources" name="stop-orphan-resources" value="true"/>
           <nvpair id="cib-bootstrap-options-stop-orphan-actions" name="stop-orphan-actions" value="true"/>
           <nvpair id="cib-bootstrap-options-remove-after-stop" name="remove-after-stop" value="false"/>
           <nvpair id="cib-bootstrap-options-short-resource-names" name="short-resource-names" value="true"/>
           <nvpair id="cib-bootstrap-options-transition-idle-timeout" name="transition-idle-timeout" value="5min"/>
           <nvpair id="cib-bootstrap-options-default-action-timeout" name="default-action-timeout" value="5s"/>
           <nvpair id="cib-bootstrap-options-is-managed-default" name="is-managed-default" value="true"/>
           <nvpair name="last-lrm-refresh" id="cib-bootstrap-options-last-lrm-refresh" value="1190117208"/>
         </attributes>
       </cluster_property_set>
     </crm_config>
     <nodes>
       <node id="5c8d0690-8f6f-44d0-b0f9-604c0576ea55" uname="frigg" type="normal"/>
       <node id="96a11b50-845a-4866-b091-a2d5ec548717" uname="odin" type="normal"/>
     </nodes>
     <resources>
       <master_slave id="ms_drbd">
         <meta_attributes id="ma_ms_drbd">
           <attributes>
             <nvpair id="ma_ms_drbd_0" name="clone_max" value="2"/>
             <nvpair id="ma_ms_drbd_1" name="clone_node_max" value="1"/>
             <nvpair id="ma_ms_drbd_2" name="master_max" value="1"/>
             <nvpair id="ma_ms_drbd_3" name="master_node_max" value="1"/>
             <nvpair id="ma_ms_drbd_4" name="notify" value="yes"/>
             <nvpair id="ma_ms_drbd_5" name="globally_unique" value="false"/>
             <nvpair id="ma_ms_drbd_6" name="target_role" value="Started"/>
           </attributes>
         </meta_attributes>
         <primitive id="drbd0" class="ocf" provider="heartbeat" type="drbd">
           <instance_attributes id="drbd0_ia">
             <attributes>
               <nvpair id="drbd0_ia_0" name="drbd_resource" value="r0"/>
             </attributes>
           </instance_attributes>
           <operations>
             <op id="drbd0_mon_0" name="monitor" interval="12s" timeout="5s"/>
             <op id="drbd0_mon_1" name="monitor" interval="10s" timeout="5s" role="Master"/>
           </operations>
         </primitive>
       </master_slave>
       <group id="group">
         <primitive id="IPaddr0" class="ocf" provider="heartbeat" type="IPaddr">
           <instance_attributes id="IPaddr0_ia">
             <attributes>
               <nvpair id="IPaddr0_ia_0" name="ip" value="141.89.59.22"/>
               <nvpair id="IPaddr0_ia_1" name="netmask" value="24"/>
               <nvpair id="IPaddr0_ia_2" name="nic" value="bond0"/>
             </attributes>
           </instance_attributes>
           <operations>
             <op id="IPaddr0_mon" interval="5s" name="monitor" timeout="5s"/>
           </operations>
         </primitive>
         <primitive id="MailTo" class="ocf" provider="heartbeat" type="MailTo">
           <instance_attributes id="MailTo_ia">
             <attributes>
               <nvpair id="MailTo_ia_0" name="email" value="[EMAIL PROTECTED]"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </group>
     </resources>
     <constraints>
       <rsc_location id="location" rsc="ms_drbd">
         <rule id="location_rule" score="-INFINITY">
           <expression id="location_rule_0" attribute="#uname" operation="ne" value="odin"/>
           <expression id="location_rule_1" attribute="#uname" operation="ne" value="frigg"/>
         </rule>
       </rsc_location>
       <rsc_location id="connected" rsc="ms_drbd">
         <rule id="connected_rule" score="-INFINITY" boolean_op="or">
           <expression id="connected_rule_undefined" attribute="pingd" operation="not_defined"/>
           <expression id="connected_rule_zero" attribute="pingd" operation="lte" value="0"/>
         </rule>
       </rsc_location>
       <rsc_order id="drbd_before_group" from="group" to="ms_drbd" action="start" to_action="promote"/>
       <rsc_colocation id="group_on_drbd" from="group" to="ms_drbd" to_role="Master" score="INFINITY"/>
     </constraints>
   </configuration>
   <status>
     <node_state id="96a11b50-845a-4866-b091-a2d5ec548717" uname="odin" crmd="online" crm-debug-origin="do_update_resource" shutdown="0" in_ccm="true" ha="active" join="member" expected="member">
       <transient_attributes id="96a11b50-845a-4866-b091-a2d5ec548717">
         <instance_attributes id="status-96a11b50-845a-4866-b091-a2d5ec548717">
           <attributes>
             <nvpair id="status-96a11b50-845a-4866-b091-a2d5ec548717-pingd" name="pingd" value="400"/>
             <nvpair id="status-96a11b50-845a-4866-b091-a2d5ec548717-probe_complete" name="probe_complete" value="true"/>
           </attributes>
         </instance_attributes>
         <instance_attributes id="master-96a11b50-845a-4866-b091-a2d5ec548717">
           <attributes>
             <nvpair id="status-master-drbd0:1-96a11b50-845a-4866-b091-a2d5ec548717" name="master-drbd0:1" value="75"/>
           </attributes>
         </instance_attributes>
       </transient_attributes>
       <lrm id="96a11b50-845a-4866-b091-a2d5ec548717">
         <lrm_resources>
           <lrm_resource id="MailTo" type="MailTo" class="ocf" provider="heartbeat">
             <lrm_rsc_op id="MailTo_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" transition_key="9:0:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:7;9:0:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="4" crm_feature_set="2.0" rc_code="7" op_status="0" interval="0" op_digest="fbd1940d78f2df076bb6f38fe0afa6e7"/>
           </lrm_resource>
           <lrm_resource id="IPaddr0" type="IPaddr" class="ocf" provider="heartbeat">
             <lrm_rsc_op id="IPaddr0_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" transition_key="8:0:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:7;8:0:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="3" crm_feature_set="2.0" rc_code="7" op_status="0" interval="0" op_digest="5378d607d6d2a2930ff74396d4cb9be4"/>
           </lrm_resource>
           <lrm_resource id="drbd0:0" type="drbd" class="ocf" provider="heartbeat">
             <lrm_rsc_op id="drbd0:0_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" transition_key="7:0:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:7;7:0:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="2" crm_feature_set="2.0" rc_code="7" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
           </lrm_resource>
           <lrm_resource id="drbd0:1" type="drbd" class="ocf" provider="heartbeat">
             <lrm_rsc_op id="drbd0:1_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" transition_key="5:1:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:7;5:1:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="5" crm_feature_set="2.0" rc_code="7" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
             <lrm_rsc_op id="drbd0:1_start_0" operation="start" crm-debug-origin="do_update_resource" transition_key="7:2:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;7:2:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="6" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
             <lrm_rsc_op id="drbd0:1_post_notify_start_0" operation="notify" crm-debug-origin="do_update_resource" transition_key="51:2:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;51:2:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="7" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
             <lrm_rsc_op id="drbd0:1_pre_notify_promote_0" operation="notify" crm-debug-origin="do_update_resource" transition_key="62:3:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;62:3:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="8" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
             <lrm_rsc_op id="drbd0:1_post_notify_promote_0" operation="notify" crm-debug-origin="do_update_resource" transition_key="63:3:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;63:3:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="9" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
             <lrm_rsc_op id="drbd0:1_monitor_12000" operation="monitor" crm-debug-origin="do_update_resource" transition_key="12:4:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;12:4:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="10" crm_feature_set="2.0" rc_code="0" op_status="0" interval="12000" op_digest="89f7e992322e587b5c426df866b543e0"/>
           </lrm_resource>
         </lrm_resources>
       </lrm>
     </node_state>
     <node_state id="5c8d0690-8f6f-44d0-b0f9-604c0576ea55" uname="frigg" crmd="online" crm-debug-origin="do_update_resource" shutdown="0" in_ccm="true" ha="active" join="member" expected="member">
       <transient_attributes id="5c8d0690-8f6f-44d0-b0f9-604c0576ea55">
         <instance_attributes id="status-5c8d0690-8f6f-44d0-b0f9-604c0576ea55">
           <attributes>
             <nvpair id="status-5c8d0690-8f6f-44d0-b0f9-604c0576ea55-pingd" name="pingd" value="400"/>
             <nvpair id="status-5c8d0690-8f6f-44d0-b0f9-604c0576ea55-probe_complete" name="probe_complete" value="true"/>
             <nvpair id="status-5c8d0690-8f6f-44d0-b0f9-604c0576ea55-fail-count-IPaddr0" name="fail-count-IPaddr0" value="1"/>
           </attributes>
         </instance_attributes>
         <instance_attributes id="master-5c8d0690-8f6f-44d0-b0f9-604c0576ea55">
           <attributes>
             <nvpair id="status-master-drbd0:0-5c8d0690-8f6f-44d0-b0f9-604c0576ea55" name="master-drbd0:0" value="75"/>
           </attributes>
         </instance_attributes>
       </transient_attributes>
       <lrm id="5c8d0690-8f6f-44d0-b0f9-604c0576ea55">
         <lrm_resources>
           <lrm_resource id="MailTo" type="MailTo" class="ocf" provider="heartbeat">
             <lrm_rsc_op id="MailTo_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" transition_key="5:0:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:7;5:0:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="4" crm_feature_set="2.0" rc_code="7" op_status="0" interval="0" op_digest="fbd1940d78f2df076bb6f38fe0afa6e7"/>
             <lrm_rsc_op id="MailTo_start_0" operation="start" crm-debug-origin="do_update_resource" transition_key="39:4:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;39:4:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="14" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="fbd1940d78f2df076bb6f38fe0afa6e7"/>
             <lrm_rsc_op id="MailTo_stop_0" operation="stop" crm-debug-origin="do_update_resource" transition_key="39:6:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;39:6:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="15" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="fbd1940d78f2df076bb6f38fe0afa6e7"/>
           </lrm_resource>
           <lrm_resource id="IPaddr0" type="IPaddr" class="ocf" provider="heartbeat">
             <lrm_rsc_op id="IPaddr0_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" transition_key="4:0:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:7;4:0:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="3" crm_feature_set="2.0" rc_code="7" op_status="0" interval="0" op_digest="5378d607d6d2a2930ff74396d4cb9be4"/>
             <lrm_rsc_op id="IPaddr0_start_0" operation="start" crm-debug-origin="do_update_resource" transition_key="37:4:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;37:4:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="12" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="5378d607d6d2a2930ff74396d4cb9be4"/>
             <lrm_rsc_op id="IPaddr0_stop_0" operation="stop" crm-debug-origin="do_update_resource" transition_key="3:6:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;3:6:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="16" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="5378d607d6d2a2930ff74396d4cb9be4"/>
           </lrm_resource>
           <lrm_resource id="drbd0:0" type="drbd" class="ocf" provider="heartbeat">
             <lrm_rsc_op id="drbd0:0_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" transition_key="3:0:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:7;3:0:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="2" crm_feature_set="2.0" rc_code="7" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
             <lrm_rsc_op id="drbd0:0_start_0" operation="start" crm-debug-origin="do_update_resource" transition_key="5:2:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;5:2:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="6" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
             <lrm_rsc_op id="drbd0:0_post_notify_start_0" operation="notify" crm-debug-origin="do_update_resource" transition_key="48:2:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;48:2:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="7" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
             <lrm_rsc_op id="drbd0:0_pre_notify_promote_0" operation="notify" crm-debug-origin="do_update_resource" transition_key="54:3:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;54:3:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="8" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
             <lrm_rsc_op id="drbd0:0_promote_0" operation="promote" crm-debug-origin="do_update_resource" transition_key="7:3:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;7:3:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="9" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
             <lrm_rsc_op id="drbd0:0_post_notify_promote_0" operation="notify" crm-debug-origin="do_update_resource" transition_key="55:3:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:0;55:3:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="10" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
             <lrm_rsc_op id="drbd0:0_monitor_10000" operation="monitor" crm-debug-origin="do_update_resource" transition_key="9:4:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:8;9:4:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="11" crm_feature_set="2.0" rc_code="8" op_status="0" interval="10000" op_digest="89f7e992322e587b5c426df866b543e0"/>
           </lrm_resource>
           <lrm_resource id="drbd0:1" type="drbd" class="ocf" provider="heartbeat">
             <lrm_rsc_op id="drbd0:1_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" transition_key="3:1:6a401341-a890-4efc-a902-a4eb7e1041e6" transition_magic="0:7;3:1:6a401341-a890-4efc-a902-a4eb7e1041e6" call_id="5" crm_feature_set="2.0" rc_code="7" op_status="0" interval="0" op_digest="c0e018b73fdf522b6cdd355e125af15e"/>
           </lrm_resource>
         </lrm_resources>
       </lrm>
     </node_state>
   </status>
 </cib>

Attachment: pgpGtuafbhYXw.pgp
Description: PGP signature

_______________________________________________
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