I'm trying to setup a test Squid, Dansgaurdian, and HA instance on a CENTOS 6.4 virtual instance and it's failing. Hoping someone can provide some insite.
The problem I'm seeing is that HA linux is not controlling squid and dansgaurdian properly. Both instances start when i start halinux. The hb_takover also does not work. Here is my configuration for node 1. [root@bigb1 ~]# more /etc/ha.d/haresources bigb1.mydomain.com 10.10.10.115 squid dansguardian [root@bigb1 ~]# more /etc/ha.d/ha.cf logfile /var/log/ha-log debugfile /var/log/ha-debug logfacility local0 keepalive 2 deadtime 30 warntime 10 initdead 120 bcast eth1 udpport 694 auto_failback on node bigb1.mydomain.com node bigb2.mydomain.com [root@bigb1 ~]# more /etc/ha.d/authkeys auth 2 2 sha1 test-ha my configuration for node 2: [root@bigb2 ~]# more /etc/ha.d/haresources bigb1.mydomain.com 10.10.10.115 squid dansguardian [root@bigb2 ~]# more /etc/ha.d/ha.cf logfile /var/log/ha-log debugfile /var/log/ha-debug logfacility local0 keepalive 2 deadtime 30 warntime 10 initdead 120 bcast eth1 udpport 694 auto_failback on node bigb1.mydomain.com node bigb2.mydomain.com [root@bigb2 ~]# more /etc/ha.d/authkeys auth 2 2 sha1 test-ha some log data.... [root@bigb1 log]# more /var/log/ha-log Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3069]: info: Pacemaker support: false Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3069]: WARN: Logging daemon is disabled --enabling logging daemon is recommended Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3069]: info: ************************** Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3069]: info: Configuration validated. Starting heartbeat 3.0.4 Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3070]: info: heartbeat: version 3.0.4 Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3070]: info: Heartbeat generation: 1389668038 Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3070]: info: glib: UDP Broadcast heartbeat started on port 694 (694) interface eth1 Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3070]: info: glib: UDP Broadcast heartbeat closed on port 694 interface eth1 - Status: 1 Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3070]: info: G_main_add_TriggerHandler: Added signal manual handler Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3070]: info: G_main_add_TriggerHandler: Added signal manual handler Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3070]: info: G_main_add_SignalHandler: Added signal handler for signal 17 Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3070]: info: Local status now set to: 'up' Jan 21 20:01:12 bigb1.mydomain.com heartbeat: [3070]: info: Link bigb1.mydomain.com:eth1 up. Jan 21 20:03:12 bigb1.mydomain.com heartbeat: [3070]: WARN: node bigb2.mydomain.com: is dead Jan 21 20:03:12 bigb1.mydomain.com heartbeat: [3070]: info: Comm_now_up(): updating status to active Jan 21 20:03:12 bigb1.mydomain.com heartbeat: [3070]: info: Local status now set to: 'active' Jan 21 20:03:12 bigb1.mydomain.com heartbeat: [3070]: WARN: No STONITH device configured. Jan 21 20:03:12 bigb1.mydomain.com heartbeat: [3070]: WARN: Shared disks are not protected. Jan 21 20:03:12 bigb1.mydomain.com heartbeat: [3070]: info: Resources being acquired from bigb2.mydomain.com. harc(default)[3196]: 2014/01/21_20:03:12 info: Running /etc/ha.d//rc.d/status status mach_down(default)[3232]: 2014/01/21_20:03:13 info: /usr/share/heartbeat/mach_down: nice_failback: foreign resources acquired mach_down(default)[3232]: 2014/01/21_20:03:13 info: mach_down takeover complete for node bigb2.mydomain.com. Jan 21 20:03:13 bigb1.mydomain.com heartbeat: [3070]: info: mach_down takeover complete. Jan 21 20:03:13 bigb1.mydomain.com heartbeat: [3070]: info: Initial resource acquisition complete (mach_down) /usr/lib/ocf/resource.d//heartbeat/IPaddr(IPaddr_10.10.10.115)[3264]: 2014/01/21_20:03:13 INFO: Resource is stopped Jan 21 20:03:13 bigb1.mydomain.com heartbeat: [3197]: info: Local Resource acquisition completed. harc(default)[3351]: 2014/01/21_20:03:13 info: Running /etc/ha.d//rc.d/ip-request-resp ip-request-resp ip-request-resp(default)[3351]: 2014/01/21_20:03:13 received ip-request-resp 10.10.10.115 OK yes ResourceManager(default)[3374]: 2014/01/21_20:03:13 info: Acquiring resource group: bigb1.mydomain.com 10.10.10.115 squid dansguardian /usr/lib/ocf/resource.d//heartbeat/IPaddr(IPaddr_10.10.10.115)[3402]: 2014/01/21_20:03:13 INFO: Resource is stopped ResourceManager(default)[3374]: 2014/01/21_20:03:13 info: Running /etc/ha.d/resource.d/IPaddr 10.10.10.115 start IPaddr(IPaddr_10.10.10.115)[3500]: 2014/01/21_20:03:13 INFO: Adding inet address 10.10.10.115/24 with broadcast address 10.10.10.255 to device eth0 IPaddr(IPaddr_10.10.10.115)[3500]: 2014/01/21_20:03:13 INFO: Bringing device eth0 up IPaddr(IPaddr_10.10.10.115)[3500]: 2014/01/21_20:03:13 INFO: /usr/libexec/heartbeat/send_arp -i 200 -r 5 -p /var/run/resource-agents/send_arp-10.10.10.115 eth0 10.10.10 .115 auto not_used not_used /usr/lib/ocf/resource.d//heartbeat/IPaddr(IPaddr_10.10.10.115)[3486]: 2014/01/21_20:03:13 INFO: Success ResourceManager(default)[3374]: 2014/01/21_20:03:13 info: Running /etc/ha.d/resource.d/squid start ResourceManager(default)[3374]: 2014/01/21_20:03:13 info: Running /etc/ha.d/resource.d/dansguardian start Jan 21 20:03:23 bigb1.mydomain.com heartbeat: [3070]: info: Local Resource acquisition completed. (none) Jan 21 20:03:23 bigb1.mydomain.com heartbeat: [3070]: info: local resource transition completed. [root@bigb2 log]# more /var/log/ha-log Jan 21 20:01:20 bigb2.mydomain.com heartbeat: [2838]: info: Pacemaker support: false Jan 21 20:01:20 bigb2.mydomain.com heartbeat: [2838]: WARN: Logging daemon is disabled --enabling logging daemon is recommended Jan 21 20:01:20 bigb2.mydomain.com heartbeat: [2838]: info: ************************** Jan 21 20:01:20 bigb2.mydomain.com heartbeat: [2838]: info: Configuration validated. Starting heartbeat 3.0.4 Jan 21 20:01:20 bigb2.mydomain.com heartbeat: [2839]: info: heartbeat: version 3.0.4 Jan 21 20:01:21 bigb2.mydomain.com heartbeat: [2839]: info: Heartbeat generation: 1389668057 Jan 21 20:01:21 bigb2.mydomain.com heartbeat: [2839]: info: glib: UDP Broadcast heartbeat started on port 694 (694) interface eth1 Jan 21 20:01:21 bigb2.mydomain.com heartbeat: [2839]: info: glib: UDP Broadcast heartbeat closed on port 694 interface eth1 - Status: 1 Jan 21 20:01:21 bigb2.mydomain.com heartbeat: [2839]: info: G_main_add_TriggerHandler: Added signal manual handler Jan 21 20:01:21 bigb2.mydomain.com heartbeat: [2839]: info: G_main_add_TriggerHandler: Added signal manual handler Jan 21 20:01:21 bigb2.mydomain.com heartbeat: [2839]: info: G_main_add_SignalHandler: Added signal handler for signal 17 Jan 21 20:01:21 bigb2.mydomain.com heartbeat: [2839]: info: Local status now set to: 'up' Jan 21 20:01:21 bigb2.mydomain.com heartbeat: [2839]: info: Link bigb2.mydomain.com:eth1 up. Jan 21 20:03:21 bigb2.mydomain.com heartbeat: [2839]: WARN: node bigb1.mydomain.com: is dead Jan 21 20:03:21 bigb2.mydomain.com heartbeat: [2839]: info: Comm_now_up(): updating status to active Jan 21 20:03:21 bigb2.mydomain.com heartbeat: [2839]: info: Local status now set to: 'active' Jan 21 20:03:21 bigb2.mydomain.com heartbeat: [2839]: WARN: No STONITH device configured. Jan 21 20:03:21 bigb2.mydomain.com heartbeat: [2839]: WARN: Shared disks are not protected. Jan 21 20:03:21 bigb2.mydomain.com heartbeat: [2839]: info: Resources being acquired from bigb1.mydomain.com. harc(default)[2929]: 2014/01/21_20:03:21 info: Running /etc/ha.d//rc.d/status status Jan 21 20:03:21 bigb2.mydomain.com heartbeat: [2930]: info: No local resources [/usr/share/heartbeat/ResourceManager listkeys bigb2.mydomain.com] to acquire. mach_down(default)[2959]: 2014/01/21_20:03:21 info: Taking over resource group 10.10.10.115 ResourceManager(default)[2986]: 2014/01/21_20:03:21 info: Acquiring resource group: bigb1.mydomain.com 10.10.10.115 squid dansguardian /usr/lib/ocf/resource.d//heartbeat/IPaddr(IPaddr_10.10.10.115)[3014]: 2014/01/21_20:03:21 INFO: Resource is stopped ResourceManager(default)[2986]: 2014/01/21_20:03:21 info: Running /etc/ha.d/resource.d/IPaddr 10.10.10.115 start IPaddr(IPaddr_10.10.10.115)[3112]: 2014/01/21_20:03:21 INFO: Adding inet address 10.10.10.115/24 with broadcast address 10.10.10.255 to device eth0 IPaddr(IPaddr_10.10.10.115)[3112]: 2014/01/21_20:03:21 INFO: Bringing device eth0 up IPaddr(IPaddr_10.10.10.115)[3112]: 2014/01/21_20:03:21 INFO: /usr/libexec/heartbeat/send_arp -i 200 -r 5 -p /var/run/resource-agents/send_arp-10.10.10.115 eth0 10.10.10 .115 auto not_used not_used /usr/lib/ocf/resource.d//heartbeat/IPaddr(IPaddr_10.10.10.115)[3098]: 2014/01/21_20:03:21 INFO: Success ResourceManager(default)[2986]: 2014/01/21_20:03:21 info: Running /etc/ha.d/resource.d/squid start ResourceManager(default)[2986]: 2014/01/21_20:03:21 info: Running /etc/ha.d/resource.d/dansguardian start mach_down(default)[2959]: 2014/01/21_20:03:22 info: /usr/share/heartbeat/mach_down: nice_failback: foreign resources acquired mach_down(default)[2959]: 2014/01/21_20:03:22 info: mach_down takeover complete for node bigb1.mydomain.com. Jan 21 20:03:22 bigb2.mydomain.com heartbeat: [2839]: info: mach_down takeover complete. Jan 21 20:03:22 bigb2.mydomain.com heartbeat: [2839]: info: Initial resource acquisition complete (mach_down) Jan 21 20:03:32 bigb2.mydomain.com heartbeat: [2839]: info: Local Resource acquisition completed. (none) Jan 21 20:03:32 bigb2.mydomain.com heartbeat: [2839]: info: local resource transition completed. Any help would be appreciated. Thanks. _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
