[Pacemaker] ocf_log

Andrew Beekhof beekhof at gmail.com
Mon Apr 20 03:03:43 EDT 2009


On Fri, Apr 17, 2009 at 18:34, Steve Kwee <skwee at itw.de> wrote:
> Steve Kwee <skwee at ...> writes:

> Question:
> I configured a lsb:heartbeat:Stateful dummy resource and did

I hope you typed lsb but meant ocf, otherwise the lrmd has a bug.

> ocf_log debug "xxx"
> ocf_log info "xxx"
> in a monitor op every 5s
> I can see the ocf_log info in the syslog but the ocf_log debug never appears
>
> I tried all from
> debug 1
> debug on
> debug true
> debug yes
>
> I patched /etc/ha.d/shellfuncs to
> ha_debug() {
>
>        # SKW
>        echo "`date` skw $HA_debug" >> /var/log/ocf-debug.log
>
>        if [ "x${HA_debug}" = "x0" ] ; then
>                return 0
>        fi
>        ....
> and I found that HA_debug is always "0" whatever I put to ha.cf

Can you paste the initial openais startup messages pls?  grep
"openais.*CRM" /var/log/...

> What I was searching for was a way to dynamicall change the loglevel
> of ocf_log for the OCF-RAs. It seems to me that this should be
> implemented in
> .ocf-shellfuncs:ocf_log
> This is in the package heartbeat-resources so I don't know if this
> is the appropriate mailing list.

Correct.  Try the linux-ha list.




More information about the Pacemaker mailing list