[Ocfs2-tools-devel] [Ocfs2-devel] Patch to Pacemaker hooks in ocfs2_controld

Andrew Beekhof beekhof at gmail.com
Thu Mar 5 00:07:13 PST 2009


On Wed, Mar 4, 2009 at 21:36, Joel Becker <Joel.Becker at oracle.com> wrote:
> On Wed, Mar 04, 2009 at 09:31:17PM +0100, Andrew Beekhof wrote:
>> >        I don't like log_printf().  First because log_error() already
>> > exists for LOG_ERR printing, second because you strip out all the useful
>> > log_debug() calls, but most of all because your log_printf() doesn't add
>> > to the internal daemon ring buffer.  So debugfs.ocfs2 -R 'controld dump'
>> > doesn't show those messages.
>> >        Is there a reason log_error() didn't work for you?
>>
>> Re: log_error, I think I was just trying to be consistent with the
>> other calls I saw.
>> But I was working with the dlm_controld hooks at the same time so I
>> may have gotten my wires crossed.
>
>        Yeah, dave's changed his scheme some, and I haven't caught up.
> The big deal is that it skips the dump buffer.
>
>> Re: log_debug, I got complaints about the logging being too noisy.
>> Plus there's not a lot of logging in the rest of ocfs2_controld, so in
>> many ways its more consistent ;-)
>>
>> Would you be interested in a patch that adds more logging to the rest
>> of ocfs2_controld?
>> The lack of logging, particularly in some of the error paths, has been
>> killing us.
>
>        I'm confused.  You took out useful logging messages

I just refreshed my memory of the patch (I wrote it a while ago), and
I didn't actually remove any logging at all (again, I was confusing
myself with the dlm equivalent - sorry).

For example, yes the following line is removed:
-       log_debug("Local node id: %d", our_nodeid);
but only because it is already logged by init_ais_connection()

Likewise, ais_dispatch() logs all the interesting things that used to
be reported by process_pcmk().

So anyway, you're happy with the current patch if I resubmit with all
the log_printf's changed back to log_debug/log_error?

I'll create a new one for any additional logging I think might be helpful.



More information about the Ocfs2-tools-devel mailing list