[Pacemaker] Problem with pacemaker/heartbeat setup
Rene Hellmann
me at rehe.me
Fri May 11 18:38:51 UTC 2012
Hello,
I'm trying to setup an active/active cluster in my staging environment.
VM1 :
CentOS-6.2 ; HA1 ; 192.168.2.108
VM2:
CentOS-6.2 ; HA2 ; 192.168.2.109
I'm using heartbeat 3.0.4 and pacemaker 1.1.6 (both from EPEL).
my ha.cf (is simple ) :
As you can see I'm using an unicast-setup (this is very important for an later live-setup).
$$$ BEGINNING
# log where ?
logfacility local0
logfile /var/log/ha-log
# warning of soon be dead
warntime 10
# declare a host (the other node) dead after:
deadtime 20
# dead time on boot (could take some time until net is up)
initdead 120
# time between heartbeats
keepalive 2
# the nodes
node HA1
node HA2
# heartbeats, over dedicated replication interface!
ucast eth0 192.168.2.108
ucast eth0 192.168.2.109
crm respawn
$$$ END
If I try to start pacemaker it fails.
/var/log/messages :
$$$ BEGINNING
May 11 20:18:44 HA2 automount[1194]: lookup_read_master: lookup(nisplus): couldn't locate nis+ table auto.master
May 11 20:18:45 HA2 mcelog: Cannot open logfile /var/log/mcelog: Permission denied
May 11 20:18:45 HA2 mcelog: Cannot bind to client unix socket `/var/run/mcelog-client': Permission denied
May 11 20:18:45 HA2 heartbeat: [1275]: info: Pacemaker support: false
May 11 20:18:45 HA2 heartbeat: [1275]: WARN: Deprecated 'legacy' auto_failback option selected.
May 11 20:18:45 HA2 heartbeat: [1275]: WARN: Please convert to 'auto_failback on'.
May 11 20:18:45 HA2 heartbeat: [1275]: WARN: See documentation for conversion details.
May 11 20:18:45 HA2 heartbeat: [1275]: WARN: Logging daemon is disabled --enabling logging daemon is recommended
May 11 20:18:45 HA2 heartbeat: [1275]: info: **************************
May 11 20:18:45 HA2 heartbeat: [1275]: info: Configuration validated. Starting heartbeat 3.0.4
May 11 20:18:45 HA2 heartbeat: [1276]: info: heartbeat: version 3.0.4
May 11 20:18:46 HA2 heartbeat: [1276]: info: Heartbeat generation: 1336635253
May 11 20:18:46 HA2 heartbeat: [1276]: info: glib: ucast: write socket priority set to IPTOS_LOWDELAY on eth0
May 11 20:18:46 HA2 heartbeat: [1276]: info: glib: ucast: bound send socket to device: eth0
May 11 20:18:46 HA2 heartbeat: [1276]: info: glib: ucast: bound receive socket to device: eth0
May 11 20:18:46 HA2 heartbeat: [1276]: info: glib: ucast: started on port 694 interface eth0 to 10.3.1.25
May 11 20:18:46 HA2 heartbeat: [1276]: info: G_main_add_TriggerHandler: Added signal manual handler
May 11 20:18:46 HA2 heartbeat: [1276]: info: G_main_add_TriggerHandler: Added signal manual handler
May 11 20:18:46 HA2 heartbeat: [1276]: info: G_main_add_SignalHandler: Added signal handler for signal 17
May 11 20:18:46 HA2 heartbeat: [1276]: info: Local status now set to: 'up'
May 11 20:18:47 HA2 abrtd: Init complete, entering main loop
May 11 20:18:48 HA2 qpidd[1400]: 2012-05-11 20:18:48 notice Listening on TCP/TCP6 port 5672
May 11 20:18:48 HA2 qpidd[1400]: 2012-05-11 20:18:48 notice SSL plugin not enabled, you must set --ssl-cert-db to enable it.
May 11 20:18:48 HA2 qpidd[1400]: 2012-05-11 20:18:48 notice Broker running
May 11 20:18:59 HA2 kernel: type=1305 audit(1336760339.768:17052): auid=4294967295 ses=4294967295 subj=system_u:system_r:readahead_t:s0 op="remove rule" key=(null) list=4 res=1
May 11 20:18:59 HA2 kernel: type=1305 audit(1336760339.768:17053): audit_enabled=0 old=1 auid=4294967295 ses=4294967295 subj=system_u:system_r:readahead_t:s0 res=1
May 11 20:19:00 HA2 kernel: readahead-collector: starting delayed service auditd
May 11 20:19:00 HA2 auditd[1489]: Started dispatcher: /sbin/audispd pid: 1491
May 11 20:19:00 HA2 audispd: No plugins found, exiting
May 11 20:19:00 HA2 auditd[1489]: Init complete, auditd 2.1.3 listening for events (startup state enable)
May 11 20:19:00 HA2 kernel: readahead-collector: sorting
May 11 20:19:00 HA2 kernel: readahead-collector: finished
May 11 20:19:44 HA2 kernel: e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
May 11 20:19:46 HA2 dhclient[1597]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 (xid=0x76ff640)
May 11 20:19:46 HA2 dhclient[1597]: DHCPOFFER from 192.168.2.1
May 11 20:19:46 HA2 dhclient[1597]: DHCPREQUEST on eth0 to 255.255.255.255 port 67 (xid=0x76ff640)
May 11 20:19:46 HA2 dhclient[1597]: DHCPACK from 192.168.2.1 (xid=0x76ff640)
May 11 20:19:46 HA2 NET[1654]: /sbin/dhclient-script : updated /etc/resolv.conf
May 11 20:19:46 HA2 dhclient[1597]: bound to 192.168.2.109 -- renewal in 133148 seconds.
May 11 20:20:47 HA2 heartbeat: [1276]: WARN: node ha1: is dead
May 11 20:20:47 HA2 heartbeat: [1276]: info: Comm_now_up(): updating status to active
May 11 20:20:47 HA2 heartbeat: [1276]: info: Local status now set to: 'active'
May 11 20:20:47 HA2 heartbeat: [1276]: WARN: No STONITH device configured.
May 11 20:20:47 HA2 heartbeat: [1276]: WARN: Shared disks are not protected.
May 11 20:20:47 HA2 heartbeat: [1276]: info: Resources being acquired from ha1.
May 11 20:20:47 HA2 heartbeat: [1668]: info: No local resources [/usr/share/heartbeat/ResourceManager listkeys ha2] to acquire.
May 11 20:20:47 HA2 heartbeat: [1675]: info: No local resources [/usr/share/heartbeat/ResourceManager listkeys ha2] to acquire.
May 11 20:20:47 HA2 harc[1694]: info: Running /etc/ha.d//rc.d/status status
May 11 20:20:47 HA2 mach_down[1711]: info: mach_down takeover complete for node ha1.
May 11 20:20:47 HA2 heartbeat: [1276]: info: Initial resource acquisition complete (status)
May 11 20:22:52 HA2 heartbeat: [1817]: info: Pacemaker support: false
May 11 20:22:52 HA2 heartbeat: [1817]: WARN: Deprecated 'legacy' auto_failback option selected.
May 11 20:22:52 HA2 heartbeat: [1817]: WARN: Please convert to 'auto_failback on'.
May 11 20:22:52 HA2 heartbeat: [1817]: WARN: See documentation for conversion details.
May 11 20:22:52 HA2 heartbeat: [1817]: WARN: Logging daemon is disabled --enabling logging daemon is recommended
May 11 20:22:52 HA2 heartbeat: [1817]: info: **************************
May 11 20:22:52 HA2 heartbeat: [1817]: info: Configuration validated. Starting heartbeat 3.0.4
May 11 20:22:52 HA2 heartbeat: [1817]: info: heartbeat: already running [pid 1276].
May 11 20:24:12 HA2 pacemakerd: [1837]: info: Invoked: pacemakerd
May 11 20:24:12 HA2 pacemakerd: [1837]: info: crm_log_init_worker: Changed active directory to /var/lib/heartbeat/cores/root
May 11 20:24:12 HA2 pacemakerd: [1837]: info: get_cluster_type: Assuming a 'heartbeat' based cluster
May 11 20:24:12 HA2 pacemakerd: [1837]: CRIT: get_cluster_type: This installation of Pacemaker does not support the 'heartbeat' cluster infrastructure. Terminating.
$$$ END
The last line is very interesting :
-> "This installation of Pacemaker does not support the 'heartbeat' cluster infrastructure."
Do I get it wrong ?
Best
Rene
More information about the Pacemaker
mailing list