FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 02-20-2009, 03:00 PM
David Teigland
 
Default cluster3 logging config

I have a suggestion to improve our logging config. The format below is the
default configuration (more or less, the corosync systems aren't sending
anything to syslog, but cman.log seems full of "info"-like stuff, but it's
beside the point):

<logging to_syslog="yes" to_logfile="yes" syslog_facility="daemon"
syslog_priority="info" logfile_priority="info">
<logging_subsys="qdiskd"
logfile="/var/log/cluster/qdisk.log"/>
<logging_subsys="groupd"
logfile="/var/log/cluster/groupd.log"/>
<logging_subsys="fenced"
logfile="/var/log/cluster/fenced.log"/>
<logging_subsys="dlm_controld"
logfile="/var/log/cluster/dlm_controld.log"/>
<logging_subsys="gfs_controld"
logfile="/var/log/cluster/gfs_controld.log"/>
<logging_subsys="rgmanager"
logfile="/var/log/cluster/rgmanager.log"/>
<logging_subsys="CLM"
logfile="/var/log/cluster/cman.log"/>
<logging_subsys="CPG"
logfile="/var/log/cluster/cman.log"/>
<logging_subsys="MAIN"
logfile="/var/log/cluster/cman.log"/>
<logging_subsys="SERV"
logfile="/var/log/cluster/cman.log"/>
<logging_subsys="CMAN"
logfile="/var/log/cluster/cman.log"/>
<logging_subsys="TOTEM"
logfile="/var/log/cluster/cman.log"/>
<logging_subsys="QUORUM"
logfile="/var/log/cluster/cman.log"/>
<logging_subsys="CONFDB"
logfile="/var/log/cluster/cman.log"/>
<logging_subsys="CONFDB"
logfile="/var/log/cluster/cman.log"/>
</logging>

Now, I just realized that I've missed some corosync subsystems, EVT, and CKPT
is probably one?, and maybe some others, I don't know. The point is, to make
a change to "corosync" in general, a user has to go and list every single one
of these things, repeating the same info for each. That's a big pain, and
definately not intuitive. I realize it can be useful to enable debugging for
select corosync subsystems, so that should still be possible.

I suggest the following, notice the final "corosync" entry,

<logging to_syslog="yes" to_logfile="yes" syslog_facility="daemon"
syslog_priority="info" logfile_priority="info">
<logging_daemon="qdiskd"
logfile="/var/log/cluster/qdisk.log"/>
<logging_daemon="groupd"
logfile="/var/log/cluster/groupd.log"/>
<logging_daemon="fenced"
logfile="/var/log/cluster/fenced.log"/>
<logging_daemon="dlm_controld"
logfile="/var/log/cluster/dlm_controld.log"/>
<logging_daemon="gfs_controld"
logfile="/var/log/cluster/gfs_controld.log"/>
<logging_daemon="rgmanager"
logfile="/var/log/cluster/rgmanager.log"/>
<logging_daemon="corosync"
logfile="/var/log/cluster/corosync.log"/>
</logging>

the corosync entry would apply to *all* corosync subsystems by default.
We can still allow per-subsystem configuration,

<logging_daemon="corosync" subsys="QUORUM"
logfile="/var/log/cluster/corosync-quorum.log"/>
<logging_daemon="corosync" subsys="TOTEM"
logfile="/var/log/cluster/corosync-totem.log"/>
...
 
Old 02-20-2009, 03:49 PM
David Teigland
 
Default cluster3 logging config

On Fri, Feb 20, 2009 at 10:00:03AM -0600, David Teigland wrote:
> I suggest the following, notice the final "corosync" entry,
>
> <logging to_syslog="yes" to_logfile="yes" syslog_facility="daemon"
> syslog_priority="info" logfile_priority="info">
> <logging_daemon="qdiskd"
> logfile="/var/log/cluster/qdisk.log"/>
> <logging_daemon="groupd"
> logfile="/var/log/cluster/groupd.log"/>
> <logging_daemon="fenced"
> logfile="/var/log/cluster/fenced.log"/>
> <logging_daemon="dlm_controld"
> logfile="/var/log/cluster/dlm_controld.log"/>
> <logging_daemon="gfs_controld"
> logfile="/var/log/cluster/gfs_controld.log"/>
> <logging_daemon="rgmanager"
> logfile="/var/log/cluster/rgmanager.log"/>
> <logging_daemon="corosync"
> logfile="/var/log/cluster/corosync.log"/>
> </logging>
>
> the corosync entry would apply to *all* corosync subsystems by default.
> We can still allow per-subsystem configuration,
>
> <logging_daemon="corosync" subsys="QUORUM"
> logfile="/var/log/cluster/corosync-quorum.log"/>
> <logging_daemon="corosync" subsys="TOTEM"
> logfile="/var/log/cluster/corosync-totem.log"/>
> ...

Correcting the XML,

<logging_daemon name="qdiskd"
logfile="/var/log/cluster/qdisk.log"/>
...

<logging_daemon name="corosync" subsys="QUORUM"
logfile="/var/log/cluster/corosync-quorum.log"/>
 
Old 02-20-2009, 05:25 PM
"Fabio M. Di Nitto"
 
Default cluster3 logging config

On Fri, 2009-02-20 at 10:49 -0600, David Teigland wrote:
> On Fri, Feb 20, 2009 at 10:00:03AM -0600, David Teigland wrote:
> > I suggest the following, notice the final "corosync" entry,
> >
> > <logging to_syslog="yes" to_logfile="yes" syslog_facility="daemon"
> > syslog_priority="info" logfile_priority="info">
> > <logging_daemon="qdiskd"
> > logfile="/var/log/cluster/qdisk.log"/>
> > <logging_daemon="groupd"
> > logfile="/var/log/cluster/groupd.log"/>
> > <logging_daemon="fenced"
> > logfile="/var/log/cluster/fenced.log"/>
> > <logging_daemon="dlm_controld"
> > logfile="/var/log/cluster/dlm_controld.log"/>
> > <logging_daemon="gfs_controld"
> > logfile="/var/log/cluster/gfs_controld.log"/>
> > <logging_daemon="rgmanager"
> > logfile="/var/log/cluster/rgmanager.log"/>
> > <logging_daemon="corosync"
> > logfile="/var/log/cluster/corosync.log"/>
> > </logging>
> >
> > the corosync entry would apply to *all* corosync subsystems by default.
> > We can still allow per-subsystem configuration,
> >
> > <logging_daemon="corosync" subsys="QUORUM"
> > logfile="/var/log/cluster/corosync-quorum.log"/>
> > <logging_daemon="corosync" subsys="TOTEM"
> > logfile="/var/log/cluster/corosync-totem.log"/>
> > ...
>
> Correcting the XML,
>
> <logging_daemon name="qdiskd"
> logfile="/var/log/cluster/qdisk.log"/>
> ...
>
> <logging_daemon name="corosync" subsys="QUORUM"
> logfile="/var/log/cluster/corosync-quorum.log"/>

Since I haven't finished to convert logsys to our standard, I'd happy to
do this change. It sounds sane to me.

Of course this is only when we explicitly add info for the subsystem.
Otherwise we go default like we already implemented.

Fabio
 

Thread Tools




All times are GMT. The time now is 12:32 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org