[ClusterLabs] logging in fence agents

Marek "marx" Grac mgrac at redhat.com
Wed Mar 11 09:18:58 UTC 2015


On 03/06/2015 03:12 PM, Kostiantyn Ponomarenko wrote:
> Hi guys,
>
> Is there a way to use Corosync's log file for fence agent?
> I was going to use the same logging system as in resource agents, but 
> I found that fence agents have a different set of environment variables.
> So this string doesn't work:
> : ${OCF_FUNCTIONS=${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs}
>
> Another question - is it possible to use OSF standart for fence agents 
> (I suppose it is not, but want to ensure).
>
> What is the common practice for logging in fence agents (where to 
> write logs)?
>
Hi,

for fence agents, there is possibility to set logging directly. Add 
"debug=file" and "verbose=1" (or on command line --debug-file=FILE 
--verbose)

m,




More information about the Users mailing list