[Pacemaker] About the log output in the V1 mode of pacemaker 1.1

nozawat nozawat at gmail.com
Sat Nov 20 04:56:51 EST 2010


Hi Andrew,

 Thanks for reply.
 I confirmed it.

Regards,
Tomo

2010/11/20 Andrew Beekhof <andrew at beekhof.net>

> On Fri, Nov 19, 2010 at 8:48 AM, nozawat <nozawat at gmail.com> wrote:
> > Hi
> >
> >  I output log in /var/log/ha.log by the following setting.
> >  It is not output by /var/log/ha.log when I operate this with a V1 mode.
> >  In the case of a V1 mode, is not setting enough?
>
> It should be.  Summarizing from mcp/corosync.c
>
>    get_config_opt(config, local_handle, "to_syslog", &value, "on");
>    get_config_opt(config, local_handle, "syslog_facility", &value,
> "daemon");
>
>    setenv("HA_logfacility", value?value:"none", 1);
>    setenv("HA_LOGFACILITY", value?value:"none", 1);
>
> >
> > --- /etc/corosync/corosync.conf ---
> > service {
> >     name: pacemaker
> >     ver: 0
> > }
> > logging {
> >     fileline: on
> >     to_syslog: yes
> >     syslog_facility: local1
> >     syslog_priority: debug
> >     debug: off
> >     timestamp: on
> > }
> > -------------------------------
> >
> > --- /etc/syslog.conf ---
> > # Corosync + Pacemaker
> > local1.*           /var/log/ha.log
> > -------------------------------
> >
> > Regards,
> > Tomo
> >
> >
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs:
> >
> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
> >
> >
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs:
> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20101120/bae834bf/attachment-0002.html>


More information about the Pacemaker mailing list