[Pacemaker] ocf_log

Andrew Beekhof beekhof at gmail.com
Fri Apr 17 12:41:18 UTC 2009


On Fri, Apr 17, 2009 at 13:28, Steve Kwee <skwee at itw.de> wrote:
>
> In my /etc/ha.cf I now have:
> debug           1
> use_logd        false
> logfacility     daemon
>
> I get all crit, error, warning and info messags in the syslog.

Opps - this makes no difference for openais clusters (I missed that
part of your original email).

find this part of openais.conf and change debug: to "on"

logging {
	debug: off
	fileline: off
	to_syslog: yes
	to_stderr: no
	syslog_facility: daemon
	timestamp: on
}


>
> But I have still some questions.
>
> 1. Is http://www.linux-ha.org/wiki/Ha.cf#debug_-_set_debug_level
> still valid concerning the changing of the debuglevel ?
> I says:
> ..Additionally, the debug level of the system can be dynamically changed by
> sending the heartbeat process SIGUSR1 and SIGUSR2 signals. SIGUSR1 raises the
> debug level, and SIGUSR2 lowers it. A sample debug directive is shown below.
>
> Which process should the signal be sent to ?

Whichever one you want to increase its logging.

> Converning the logging of RA-Agents the lrmd ?

They may inherit changes to the lrmd's log level, but i'm not 100% sure.

> If not how do I change the debuglevel ?
> I guess there is a better option than "rcopenais restart"
>
> 2. Is there a relation between ha.cf/debug and the loglevels
> and if where can i find it ?

debug: off means log LOG_INFO and higher
debug: on means log LOG_DEBUG and higher

> 3. I was not able to get any message of type debug
> I can force my own test messages to become visibile by using "err"
>
> How can I get the debug-level messages i.e. from the drbd RA ?
> Messages of level debug go to /etc/ha.d/shellfuncs:ha_debug
>
> What is the appropriate logging solution and how can I configure it in
> a openAIS / pacemacker setup ?
>
> I read a lot of hints on using the logger daemon ha_logd in combination with
> ha_logger. Is this still valid and how do I configure it ?
> ha.cf: use_logd true
> seems not to work
>
> Sorry for so many questions.
> I can post a summary on logging when things sort out
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>




More information about the Pacemaker mailing list