Heartbeat is not assigning a virtual IP

Discussion in 'Installation/Configuration' started by Rutu0526, Feb 24, 2015.

  1. Rutu0526

    Rutu0526 New Member

    I am trying to setup HA Cluster with Heartbeat on CentOS here is my configurations.
    $ cat /etc/ha.d/authkeys
    auth 2
    2 sha1 test-ha
    $ cat /etc/ha.d/ha.cf
    logfile /var/log/ha-log
    logfacility local0
    keepalive 2
    deadtime 30
    initdead 120
    bcast eth1
    udpport 694
    auto_failback on
    #node ns224782.ip-46-105-118.eu
    #node ns338695.ip-46-105-117.eu
    node ns224782
    node ns338695
    $ cat /etc/ha.d/haresources
    ns224782 172.16.0.21 mysqld
    $ tail -f /var/log/ha-log
    Feb 03 07:01:16 ns338695 heartbeat: [21675]: info: Configuration validated. Starting heartbeat 3.0.4
    Feb 03 07:01:16 ns338695 heartbeat: [21676]: info: heartbeat: version 3.0.4
    Feb 03 07:01:16 ns338695 heartbeat: [21676]: info: Heartbeat generation: 1422600209
    Feb 03 07:01:16 ns338695 heartbeat: [21676]: info: glib: UDP Broadcast heartbeat started on port 694 (694) interface eth1
    Feb 03 07:01:16 ns338695 heartbeat: [21676]: info: glib: UDP Broadcast heartbeat closed on port 694 interface eth1 - Status: 1
    Feb 03 07:01:16 ns338695 heartbeat: [21676]: info: G_main_add_TriggerHandler: Added signal manual handler
    Feb 03 07:01:16 ns338695 heartbeat: [21676]: info: G_main_add_TriggerHandler: Added signal manual handler
    Feb 03 07:01:16 ns338695 heartbeat: [21676]: info: G_main_add_SignalHandler: Added signal handler for signal 17
    Feb 03 07:01:16 ns338695 heartbeat: [21676]: info: Local status now set to: 'up'
    Feb 03 07:01:16 ns338695 heartbeat: [21676]: info: Link ns338695:eth1 up.
    Feb 03 07:03:17 ns338695 heartbeat: [21676]: WARN: node ns224782: is dead
    Feb 03 07:03:17 ns338695 heartbeat: [21676]: info: Comm_now_up(): updating status to active
    Feb 03 07:03:17 ns338695 heartbeat: [21676]: info: Local status now set to: 'active'
    Feb 03 07:03:17 ns338695 heartbeat: [21676]: WARN: No STONITH device configured.
    Feb 03 07:03:17 ns338695 heartbeat: [21676]: WARN: Shared disks are not protected.
    Feb 03 07:03:17 ns338695 heartbeat: [21676]: info: Resources being acquired from ns224782.
    harc(default)[21770]: 2015/02/03_07:03:17 info: Running /etc/ha.d//rc.d/status status
    Feb 03 07:03:17 ns338695 heartbeat: [21771]: info: No local resources [/usr/share/heartbeat/ResourceManager listkeys ns338695] to acquire.
    mach_down(default)[21800]: 2015/02/03_07:03:17 info: Taking over resource group 172.16.0.21
    ResourceManager(default)[21827]: 2015/02/03_07:03:17 info: Acquiring resource group: ns224782 172.16.0.21 mysqld
    /usr/lib/ocf/resource.d//heartbeat/IPaddr(IPaddr_172.16.0.21)[21856]: 2015/02/03_07:03:17 INFO: Resource is stopped
    ResourceManager(default)[21827]: 2015/02/03_07:03:17 info: Running /etc/ha.d/resource.d/IPaddr 172.16.0.21 start
    IPaddr(IPaddr_172.16.0.21)[21955]: 2015/02/03_07:03:17 INFO: Adding inet address 172.16.0.21/12 with broadcast address 172.31.255.255 to device eth1
    IPaddr(IPaddr_172.16.0.21)[21955]: 2015/02/03_07:03:17 INFO: Bringing device eth1 up
    IPaddr(IPaddr_172.16.0.21)[21955]: 2015/02/03_07:03:17 INFO: /usr/libexec/heartbeat/send_arp -i 200 -r 5 -p /var/run/resource-agents/send_arp-172.16.0.21 eth1 172.16.0.21 auto not_used not_used
    /usr/lib/ocf/resource.d//heartbeat/IPaddr(IPaddr_172.16.0.21)[21941]: 2015/02/03_07:03:17 INFO: Success
    ResourceManager(default)[21827]: 2015/02/03_07:03:17 info: Running /etc/init.d/mysqld start
    mach_down(default)[21800]: 2015/02/03_07:03:18 info: /usr/share/heartbeat/mach_down: nice_failback: foreign resources acquired
    mach_down(default)[21800]: 2015/02/03_07:03:18 info: mach_down takeover complete for node ns224782.
    Feb 03 07:03:18 ns338695 heartbeat: [21676]: info: mach_down takeover complete.
    Feb 03 07:03:18 ns338695 heartbeat: [21676]: info: Initial resource acquisition complete (mach_down)
    Feb 03 07:03:28 ns338695 heartbeat: [21676]: info: Local Resource acquisition completed. (none)
    Feb 03 07:03:28 ns338695 heartbeat: [21676]: info: local resource transition completed.

    Here in logs it shows everything fine but I don't see assigned VIP when I am running ifconfig command.
    Even I am able to ping VIP from same server, but not from another server within same network.

    Anyone can tell what's going wrong here ?
     

Share This Page