Attached is the ha log from /var/log/ha-log when I start the heartbeat service.
below is the processlist created in linux
#ps afx
.......
.........
22111 pts/0    S      0:00 ha_logd: read process
22112 pts/0    S      0:00  \_ ha_logd: write process
22133 ?        SLs    0:00 heartbeat: master control process
22136 ?        SL     0:00  \_ heartbeat: FIFO reader
22137 ?        SL     0:00  \_ heartbeat: write: bcast eth0
22138 ?        SL     0:00  \_ heartbeat: read: bcast eth0
22140 ?        S      0:00  \_ /usr/lib/heartbeat/ccm
22141 ?        S      0:00  \_ /usr/lib/heartbeat/cib
22142 ?        S      0:00  \_ /usr/lib/heartbeat/lrmd -r
22143 ?        SL     0:00  \_ /usr/lib/heartbeat/stonithd
22144 ?        S      0:00  \_ /usr/lib/heartbeat/attrd
22145 ?        S      0:00  \_ /usr/lib/heartbeat/crmd
22150 ?        S      0:00  |   \_ /usr/lib/heartbeat/tengine
22151 ?        S      0:00  |   \_ /usr/lib/heartbeat/pengine
22146 ?        S      0:00  \_ /usr/lib/heartbeat/mgmtd -v


On Mon, Dec 15, 2008 at 2:20 PM, Andrew Beekhof <[email protected]> wrote:
> Logs?
>
> On Mon, Dec 15, 2008 at 05:03, Tanveer Chowdhury
> <[email protected]> wrote:
>> Hi,
>> I have configured the below in RHEL but it doesn't start the Virtual
>> IP address or even the services.
>> Below is the settings I took. Most probably the cib.xml file is not in
>> right format.
>>
>> Thanks in advance.
>>
>> # cat /etc/ha.d/ha.cf
>>
>> debugfile /var/log/ha-debug
>> logfile /var/log/ha-log
>> logfacility     local0
>> keepalive 1
>> deadtime 5
>> warntime 3
>> initdead 10
>> udpport 694
>> bcast   eth0
>> auto_failback on
>> node    clusternode1
>> node    clusternode2
>> crm on
>>
>>
>> # vi /etc/ha.d/haresources
>> clusternode1    10.10.4.xxx httpd
>>
>>
>> # vi /etc/ha.d/authkeys
>> auth 1
>> 1 crc
>>
>> # ll /etc/init.d/apache
>> lrwxrwxrwx 1 root root 31 Feb  1 00:20 /etc/init.d/apache ->
>> /usr/local/apache/bin/apachectl
>> # ll /etc/init.d/httpd
>> lrwxrwxrwx 1 root root 31 Oct 22  2008 /etc/init.d/httpd ->
>> /usr/local/apache/bin/apachectl
>>
>> # rpm -qa | grep heartbeat
>> heartbeat-pils-2.1.3-3.el5.centos
>> heartbeat-stonith-2.1.3-3.el5.centos
>> heartbeat-2.1.3-3.el5.centos
>>
>> # uname -a
>> Linux clusternode2 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:02 EDT 2007
>> i686 i686 i386 GNU/Linux
>>
>>
>> # cat /etc/issue
>> Red Hat Enterprise Linux Server release 5.1 (Tikanga)
>>
>> This cib.xml file was auto generated after I started heartbeat service.
>>
>> # vi /var/lib/heartbeat/crm/cib.xml
>>
>> <cib generated="true" admin_epoch="0" epoch="1" num_updates="1"
>> have_quorum="true" ignore_dtd="false" ccm_transition="1" num_peers="1"
>> cib_feature_revision="2.0" cib-last-written="Fri Dec 15 00:15:48
>> 2008">
>>  <configuration>
>>    <crm_config>
>>      <cluster_property_set id="cib-bootstrap-options">
>>        <attributes>
>>          <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="d354acf4-568d-4583-9fe9-72eabb2835b1"
>> uname="clusternode2" type="normal"/>
>>    </nodes>
>>    <resources/>
>>    <constraints/>
>>  </configuration>
>> </cib>
>>
>> Then I added these lines with it as follows
>>    <resources>
>>     <group id="apache_group">
>>       <primitive id="ip_resource_1" class="ocf" type="IPaddr"
>> provider="heartbeat">
>>         <instance_attributes>
>>           <attributes>
>>             <nvpair name="ip" value="10.10.4.xxx"/>
>>           </attributes>
>>         </instance_attributes>
>>       </primitive>
>>       <primitive id="apache" class="heartbeat" type="apache"/>
>>     </group>
>>
>> So it became like
>> <cib generated="true" admin_epoch="0" epoch="1" num_updates="1"
>> have_quorum="true" ignore_dtd="false" ccm_transition="1" num_peers="1"
>> cib_feature_revision="2.0" cib-last-written="Fri Dec 15 00:15:48
>> 2008">
>>  <configuration>
>>    <crm_config>
>>      <cluster_property_set id="cib-bootstrap-options">
>>        <attributes>
>>          <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="d354acf4-568d-4583-9fe9-72eabb2835b1"
>> uname="clusternode2" type="normal"/>
>>    </nodes>
>>    <resources>
>>     <group id="apache_group">
>>       <primitive id="ip_resource_1" class="ocf" type="IPaddr"
>> provider="heartbeat">
>>         <instance_attributes>
>>           <attributes>
>>             <nvpair name="ip" value="10.10.4.xxx"/>
>>           </attributes>
>>         </instance_attributes>
>>       </primitive>
>>       <primitive id="apache" class="heartbeat" type="apache"/>
>>     </group>
>>    <resources/>
>>    <constraints/>
>>  </configuration>
>> </cib>
>> _______________________________________________________
>> Linux-HA-Dev: [email protected]
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
>>
> _______________________________________________________
> Linux-HA-Dev: [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>

Attachment: ha-log
Description: Binary data

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to