> Date: Mon, 15 Dec 2008 09:19:21 +0100
> From: [email protected]
> To: [email protected]
> Subject: Re: [Linux-HA] (no subject)
> 
> On Mon, Dec 15, 2008 at 04:20, john youkhana <[email protected]> wrote:
> >
> > Hi,
> >
> > I need help setting up heartbeat with crm. I got the cib.xml from 
> > converting my haresources by a script supplied by heartbeat. 
> > (/usr/lib/heartbeat/haresource2cib.py)
> > The problem i have is when i restart heartbeat to change mastership between 
> > the two nodes in the cluster, it doesnt work. The primary node doesnt give 
> > up the resources. I'm not sure what the problem is, this all worked when i 
> > wasn't using crm. Its when i changed to crm it stopped working.
> >
> > Any ideas?
> 
> none.   "I have a cluster and it doesn't work" isn't much to go on.
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems

Sorry,



attached is my cib.xml (too large to paste here). Is there something that needs 
to go in the cib.xml to make the nodes change mastership. The starting and 
stopping of resources works.

other files

==ha.cf==
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
debug 3
keepalive 100ms
deadtime 10
warntime 5
initdead 30
mcast eth0 225.0.0.1 694 1 0
mcast eth1 225.0.0.2 694 2 0
mcast eth2 225.0.0.3 694 3 0
auto_failback off
node drbd1
node drbd2
ping 192.168.1.254
respawn hacluster /usr/lib/heartbeat/ipfail
apiauth ipfail gid=haclient uid=hacluster
deadping 1
compression bz2
compression_threshold 2
crm yes

==haresources== (not used after crm is being used but it could still be helpful 
in finding the problem)
drbd1 drbddisk Filesystem::/dev/drbd0::/drbd::ext3 mysqld Rnc 192.168.1.113

_________________________________________________________________
Net yourself a bargain. Find great deals on eBay.
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Frover%2Eebay%2Ecom%2Frover%2F1%2F705%2D10129%2D5668%2D323%2F4%3Fid%3D10&_t=763807330&_r=hotmailTAGLINES&_m=EXT
 <cib admin_epoch="0" epoch="1" num_updates="1" generated="false" have_quorum="true" ignore_dtd="false" ccm_transition="2" num_peers="2" cib_feature_revision="2.0" cib-last-written="Mon Dec 15 16:34:29 2008">
   <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="0"/>
           <nvpair id="cib-bootstrap-options-default-resource-failure-stickiness" name="default-resource-failure-stickiness" value="0"/>
           <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-startup-fencing" name="startup-fencing" value="true"/>
           <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="20s"/>
           <nvpair id="cib-bootstrap-options-is-managed-default" name="is-managed-default" value="true"/>
           <nvpair id="cib-bootstrap-options-cluster-delay" name="cluster-delay" value="60s"/>
           <nvpair id="cib-bootstrap-options-pe-error-series-max" name="pe-error-series-max" value="-1"/>
           <nvpair id="cib-bootstrap-options-pe-warn-series-max" name="pe-warn-series-max" value="-1"/>
           <nvpair id="cib-bootstrap-options-pe-input-series-max" name="pe-input-series-max" value="-1"/>
           <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="2.1.3-node: 552305612591183b1628baa5bc6e903e0f1e26a3"/>
         </attributes>
       </cluster_property_set>
     </crm_config>
     <nodes>
       <node id="0b4e0b1b-b2c3-402e-b9a8-ce25b93ab99c" uname="drbd2" type="normal"/>
       <node id="9d3cc56d-ff64-4a89-ac7a-4e004ec96cba" uname="drbd1" type="normal"/>
     </nodes>
     <resources>
       <group id="group_1">
         <primitive class="heartbeat" id="drbddisk_1" provider="heartbeat" type="drbddisk"/>
         <primitive class="heartbeat" id="Filesystem_2" provider="heartbeat" type="Filesystem">
           <operations>
             <op id="Filesystem_2_mon" interval="120s" name="monitor" timeout="60s"/>
           </operations>
           <instance_attributes id="Filesystem_2_inst_attr">
             <attributes>
               <nvpair id="Filesystem_2_attr_1" name="1" value="/dev/drbd0"/>
               <nvpair id="Filesystem_2_attr_2" name="2" value="/drbd"/>
               <nvpair id="Filesystem_2_attr_3" name="3" value="ext3"/>
             </attributes>
           </instance_attributes>
         </primitive>
         <primitive class="lsb" id="mysqld_3" provider="heartbeat" type="mysqld">
           <operations>
             <op id="mysqld_3_mon" interval="120s" name="monitor" timeout="60s" role="Master"/>
           </operations>
         </primitive>
         <primitive class="heartbeat" id="Rnc_4" provider="heartbeat" type="Rnc">
           <operations>
             <op id="Rnc_4_mon" interval="120s" name="monitor" timeout="60s" role="Master"/>
           </operations>
         </primitive>
         <primitive class="heartbeat" id="IPaddr_192_168_1_113" provider="heartbeat" type="IPaddr">
           <operations>
             <op id="IPaddr_192_168_1_113_mon" interval="120s" name="monitor" timeout="60s"/>
           </operations>
           <instance_attributes id="IPaddr_192_168_1_113_inst_attr">
             <attributes>
               <nvpair id="IPaddr_192_168_1_113_attr_1" name="1" value="192.168.1.113"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </group>
     </resources>
     <constraints>
       <rsc_location id="rsc_location_group_1" rsc="group_1">
         <rule id="prefered_location_group_1" score="100">
           <expression attribute="#uname" id="prefered_location_group_1_expr" operation="eq" value="drbd1"/>
         </rule>
       </rsc_location>
     </constraints>
   </configuration>
 </cib>
_______________________________________________
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