heartebat is not working.......

Discussion in 'Server Operation' started by hhh123, Nov 29, 2011.

  1. hhh123

    hhh123 New Member

    HI All,

    I have installed heartbeat on my local server.My setup have following configuration,
    Packages :-
    Heartbeat

    heartbeat-stonith-2.1.3-3.el5.centos
    heartbeat-2.1.3-3.el5.centos
    heartbeat-devel-2.1.3-3.el5.centos
    heartbeat-pils-2.1.3-3.el5.centos
    heartbeat-ldirectord-2.1.3-3.el5.centos
    heartbeat-gui-2.1.3-3.el5.centos

    Apache

    httpd-manual-2.2.3-53.el5.centos.1
    httpd-2.2.3-53.el5.centos.1
    httpd-devel-2.2.3-53.el5.centos.1
    httpd-devel-2.2.3-53.el5.centos.1


    Kernel

    kernel-2.6.18-238.el5
    kernel-headers-2.6.18-274.3.1.el5

    I have configure httpd with heartbeat for failoever ie. When i 1st server goest down then 2nd server should takeover 1st, but when i am testing my setup, i found that heartbeat is not working when i stop httpd service and heartbeat works fine when ever i restart/start/stop heartbeat service. And i also found that logs are getting in for "httpd stop" even in /var/log/ha-log but "httpd stop" logs found in /var/log/messages .

    Below is the configuration file output.

    /etc/ha.d/ha.cf

    logfile /var/log/ha-log
    logfacility local0
    warntime 5
    keepalive 2
    deadtime 15
    initdead 60
    bcast eth1
    udpport 694
    auto_failback on
    node web1
    node web2

    /etc/ha.d/haresources

    web2 192.168.1.55 httpd

    /etc/ha.d/authkeys

    auth 1
    1 sha1 password

    /etc/hosts

    192.168.1.52 web2 web2
    192.168.1.51 web1 web2

    -------------------------------------------------------------
    Reference :- http://www.howtoforge.com/high_availability_heartbeat_centos
    Thank You.
     

Share This Page