[ClusterLabs] corosync log are getting updated in message logs.

Ken Gaillot kgaillot at redhat.com
Fri Jan 17 11:02:02 EST 2020


On Fri, 2020-01-17 at 12:32 +0000, S Sathish S wrote:
> Hi All,
>  
> The version of pacemaker rpm's being used is:
>  
> corosync-2.4.4 -->  https://github.com/corosync/corosync/tree/v2.4.4
> pacemaker-2.0.2 --> 
> https://github.com/ClusterLabs/pacemaker/tree/Pacemaker-2.0.2
>  
> We see that the pacemaker related warnings and messages are getting
> updated in Corosync.log as expected but are also additionally being
> printed in /var/log/message
>  
> The corosync.conf file logging enabled as follows:
>  
> logging {
>     to_logfile: yes
>     logfile: /var/log/cluster/corosync.log
>     to_syslog: no
> }
>  
> Though we have set the to_syslog:no the /var/log/messages is still
> getting updated.
>  
> How to suppress the corosync related information from being
> duplicated in message log?
>  
> Let us know if any additional information required from our end.
>  
> Regards,
> S Sathish S 

See /etc/sysconfig/pacemaker or the equivalent on your OS (/etc/default
or wherever). You can set PCMK_logfacility=none, or raise
PCMK_logpriority to see only the most important messages in the system
log.
-- 
Ken Gaillot <kgaillot at redhat.com>



More information about the Users mailing list