I found some problems in the heartbeat-2.0.7 ebuild. The first one concerns the user cluster declared in the ebuild. I noticed that the ./configure script of heartbeat package doesn't honour: --with-group-name --with-ccmuser-name due to this aspect the haclient.py doesn't work, for example. The second one concerns the crm module. If you enable .xml configuration (CIB) file using: crm = yes in the ha.cf, i noticed some IPC problems and heartbeat doesn't work at all (in attach the output of /usr/lib/heartbeat/BasicSanityCheck). I attached a modified version of the ebuild that uses hacluster (as user) and haclient (as group). Br, Davide Restivo
Created attachment 100452 [details] The output of /usr/lib/heartbeat/BasicSanityCheck
Created attachment 100453 [details, diff] Patch for heartbeat-2.0.7-r2.ebuild
Sorry, i forgot the solution to IPC problem :D I used vanilla kernel: Linux idra 2.6.16.14 #1 SMP Tue Oct 24 15:32:19 CEST 2006 i686 Intel(R) Xeon(TM) CPU 3.60GHz GNU/Linux and IPC problem has been solved.
Created attachment 101925 [details, diff] New ebuild patch for heartbeat-2.0.7-r2.ebuild This path solve the following problem: add new patch update-resources-failcount.patch. This patch is needed in order to solve the "update failcount" problem More info can be found at http://www.gossamer-threads.com/lists/linuxha/users/35052?nohighlight=1#35052
Created attachment 101927 [details, diff] The update-resources-failcount patch
Created attachment 101929 [details, diff] Heartbeat init script patch This patch allows the heartbeat init script to start and stop the ha_logd daemon correctly. Br, Davide Restivo
Created attachment 107435 [details, diff] New version of ebuild that uses virtual/perl-libnet instead of perl-core/libnet Solve bug 162162
See bug 162162 for heartbeat-2.0.8 ebuild.
Created attachment 109962 [details] heartbeat-2.0.7-r5 Ebuild
Created attachment 109963 [details] New heartbeat init script
This new ebuild (r5) solves the following problems: * incorrect permissions on: /var/run/heartbeat/ccm /var/run/heartbeat/crm /var/lib/heartbeat/cores /var/lib/heartbeat/crm /var/lib/heartbeat/pengine /var/lib/heartbeat/cores/hacluster * Moves /etc/ha_logd.cf to /etc/ha.d/ha_logd.cf * If "crm on" in /etc/ha.d/ha.cf /etc/init.d/hearbeat fails with the following output: cat: /etc/ha.d/haresources: No such file or directory (See bug 163432) * ha_logd is started only if "use_logd" is set to on in /etc/ha.d/ha.cf. Br, Davide Restivo
This stuff is fixed for the heartbeat-3.x series from what i can see. We wont touch 2.x anymore sorry.