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

Andrew Beekhof andrew at beekhof.net
Sat Nov 20 03:50:54 EST 2010


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
>
>




More information about the Pacemaker mailing list