This site best when viewed with a modern standards-compliant browser. We recommend Firefox Get Firefox!.

Linux-HA project logo
Providing Open Source High-Availability Software for Linux and other OSes since 1999.

USA Flag UK Flag

Japanese Flag

Homepage

About Us

Contact Us

Legal Info

How To Contribute

Security Issues

This web page is no longer maintained. Information presented here exists only to avoid breaking historical links.
The Project stays maintained, and lives on: see the Linux-HA Reference Documentation.
To get rid of this notice, you may want to browse the old wiki instead.

1 February 2010 Hearbeat 3.0.2 released see the Release Notes

18 January 2009 Pacemaker 1.0.7 released see the Release Notes

16 November 2009 LINBIT new Heartbeat Steward see the Announcement

Last site update:
2018-09-19 17:50:48

To run multiple copies of cl_status in one node, here is what you need to do:

Apply this patch to cl_status.c (This patch changes cl_status to signon as casual client. A casual client's name is the same as its process id)

RCS file: /home/cvs/linux-ha/linux-ha/tools/cl_status.c,v
retrieving revision 1.10
diff -u -r1.10 cl_status.c
--- cl_status.c 11 Nov 2004 13:44:45 -0000      1.10
+++ cl_status.c 28 Jan 2005 09:37:17 -0000
@@ -298,7 +298,7 @@
                        }


                        /* cl_log(LOG_DEBUG, "Signing in with heartbeat."); */
-                       if (hb->llc_ops->signon(hb, cl_status_name)!= HA_OK) {
+                       if (hb->llc_ops->signon(hb, NULL)!= HA_OK) {
                                cl_log(LOG_ERR, "Cannot signon with heartbeat");
                                cl_log(LOG_ERR, "REASON: %s",
                                        hb->llc_ops->errmsg(hb));

Add the following line to the end of the file ha.cf

apiauth default uid=<what_ever_id_u_use_to_run_cl_status>

Now compile cl_status and restart heartbeat.


Some slightly different thoughts on this subject:

  • make a new group just for this purpose
  • make cl_status setgid to that group
  • add this apiauth line instead of the one listed above:

apiauth default gid=<special_gid_created_above>