Hi,

I've been using RHCS for a while but for a couple of projects I need to evaluate some other solutions.

I download/installed and configured (for what I could understand) heartbeat but I'm haveing some problems.

Thank in advance for help.

Goal is to have a two cluster node with an active/passive apache2 configuration.

The setup is two nodes with Ubuntu 7.04 with (ConfigureME configure/make/install) hearbeat 2.1.3.

Ubuntu01 eth0 192.168.43.161
Ubuntu02 eth0 192.168.43.112
Both nodes have eth0:0 configured at 192.168.42.185

The problem is I can't manage to let this work, after a couple of seconds crm_mon gives:

Refresh in 2s...

============
Last updated: Thu Jan 17 19:10:20 2008
Current DC: NONE
2 Nodes configured.
1 Resources configured.
============

Node: ubuntu02 (0847955e-60b6-465b-8847-953e8f43a6eb): OFFLINE
Node: ubuntu01 (29e45e42-476f-4fff-ae68-866c06815b3f): OFFLINE

and after some more time it prints:

Refresh in 2s...

============
Last updated: Thu Jan 17 19:11:11 2008
Current DC: ubuntu02 (0847955e-60b6-465b-8847-953e8f43a6eb)
2 Nodes configured.
1 Resources configured.
============

Node: ubuntu02 (0847955e-60b6-465b-8847-953e8f43a6eb): online
Node: ubuntu01 (29e45e42-476f-4fff-ae68-866c06815b3f): online


Failed actions:
    IPaddr_192_168_42_185_start_0 (node=ubuntu01, call=5, rc=1): Error
    IPaddr_192_168_42_185_start_0 (node=ubuntu02, call=5, rc=1): Error

I hope I made myself clear enough, configuration files follow.

Here is the very simple ha.cf:

use_logd yes
ping 192.168.42.254
bcast eth0
auto_failback off
node ubuntu01 ubuntu02
crm on

I created the cib.xml for each node converting a very easy haresources file (ubuntu01 192.168.42.185/24/eth0:0 apache2) with the appropriate python script; here is the cib.xml for the node ubuntu01:

<cib admin_epoch="0" epoch="1" have_quorum="true" ignore_dtd="false" num_peers="2" ccm_transition="2" cib_feature_revision="2.0" generated="true" dc_uuid="0847955e-60b6-465b-8847-953e8f43a6eb" num_updates="4" cib-last-written="Thu Jan 17 18:49:08 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="0847955e-60b6-465b-8847-953e8f43a6eb" uname="ubuntu02" type="normal"/> <node id="29e45e42-476f-4fff-ae68-866c06815b3f" uname="ubuntu01" type="normal"/>
     </nodes>
     <resources>
       <group id="group_1">
<primitive class="ocf" id="IPaddr_192_168_42_185" provider="heartbeat" type="IPaddr">
           <operations>
<op id="IPaddr_192_168_42_185_mon" interval="5s" name="monitor" timeout="5s"/>
           </operations>
           <instance_attributes id="IPaddr_192_168_42_185_inst_attr">
             <attributes>
<nvpair id="IPaddr_192_168_42_185_attr_0" name="ip" value="192.168.42.185"/> <nvpair id="IPaddr_192_168_42_185_attr_1" name="nic" value="24"/> <nvpair id="IPaddr_192_168_42_185_attr_2" name="cidr_netmask" value="eth0:0"/>
             </attributes>
           </instance_attributes>
         </primitive>
<primitive class="lsb" id="apache2_2" provider="heartbeat" type="apache2">
           <operations>
<op id="apache2_2_mon" interval="120s" name="monitor" timeout="60s"/>
           </operations>
         </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="ubuntu02"/>
         </rule>
       </rsc_location>
     </constraints>
   </configuration>
 </cib>

Regards.


--
Marco Leone.
_______________________________________________
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