[Linux-HA] Possibly a bug in 2.0.2

Guochun Shi gshi at ncsa.uiuc.edu
Thu Oct 27 18:15:18 MDT 2005


OK, it is a bug, here is a patch to fix it
Index: cl_log.c
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/lib/clplumbing/cl_log.c,v
retrieving revision 1.66
retrieving revision 1.68
diff -u -r1.66 -r1.68
--- cl_log.c    28 Sep 2005 20:29:56 -0000      1.66
+++ cl_log.c    28 Oct 2005 00:13:42 -0000      1.68
@@ -1,4 +1,4 @@
-/* $Id: cl_log.c,v 1.66 2005/09/28 20:29:56 gshi Exp $ */
+/* $Id: cl_log.c,v 1.68 2005/10/28 00:13:42 gshi Exp $ */
 /*
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -130,6 +130,7 @@
        return;
 }

+
 gboolean
 cl_inherit_use_logd(const char* param_name, int sendq_length)
 {
@@ -156,10 +157,10 @@

 }

-#define HADEBUGVAL     "HA_DEBUG"
-#define LOGFENV                "HA_LOGFILE"    /* well-formed log file 
:-) */
-#define DEBUGFENV      "HA_DEBUGLOG"   /* Debug log file */
-#define LOGFACILITY    "HA_LOGFACILITY"/* Facility to use for logger */
+#define HADEBUGVAL     "HA_debug"
+#define LOGFENV                "HA_logfile"    /* well-formed log file 
:-) */
+#define DEBUGFENV      "HA_debugfile"  /* Debug log file */
+#define LOGFACILITY    "HA_logfacility"/* Facility to use for logger */
 void
 inherit_logconfig_from_environment(void)
 {

********************************************************************

thanks
-Guochun

Serge.Dubrouski at fjcomm.com wrote:

>Try to comment out logfacility either.
>
>linux-ha-bounces at lists.linux-ha.org wrote on 10/27/2005 04:03:46 PM:
>
>  
>
>>It works for me. Here is my ha.cf
>>
>>logfile   /dev/null
>>#debugfile /tmp/lha-Z20668
>>logfacility local7
>>keepalive 1
>>deadtime 10
>>initdead 10
>>warntime 2
>>auto_failback legacy
>>mcast eth0 225.0.0.1 694 1 0
>>node posic066 posic067.ncsa.uiuc.edu kfs3
>>crm on
>>compression zlib
>>
>>
>>
>>Serge.Dubrouski at fjcomm.com wrote:
>>
>>    
>>
>>>Hello -
>>>
>>>lrmd in 2.0.2 sends following messages into syslog if debugfile variable
>>>isn't set in ha.cf:
>>>
>>>Oct 27 08:53:41 aspdev1 lrmd: Cannot open : Bad file descriptor
>>>Oct 27 08:53:41 aspdev1 lrmd: Cannot open : Bad file descriptor
>>>Oct 27 08:53:41 aspdev1 lrmd: Cannot open : Bad file descriptor
>>>
>>>Serge Dubrouski.
>>>
>>>_______________________________________________
>>>Linux-HA mailing list
>>>Linux-HA at lists.linux-ha.org
>>>http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>>See also: http://linux-ha.org/ReportingProblems
>>>
>>>
>>>
>>>
>>>      
>>>
>>_______________________________________________
>>Linux-HA mailing list
>>Linux-HA at lists.linux-ha.org
>>http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>See also: http://linux-ha.org/ReportingProblems
>>
>>[flyingj]
>>    
>>
>
>_______________________________________________
>Linux-HA mailing list
>Linux-HA at lists.linux-ha.org
>http://lists.linux-ha.org/mailman/listinfo/linux-ha
>See also: http://linux-ha.org/ReportingProblems
>
>
>  
>




More information about the Linux-HA mailing list