Re: [ClusterLabs] Antw: Monitoring Op for LVM - Excessive Logging

2015-10-09 Thread Jorge Fábregas
On 10/09/2015 09:06 AM, Ulrich Windl wrote:
> Did you try daemon_options="-d0"? (in clvmd resource)

I've just found this:

http://pacemaker.oss.clusterlabs.narkive.com/C5BaFych/ocf-lvm2-clvmd-resource-agent

...so apparently SUSE changed the resource agent's default of "-d0" to
"-d2" (from SP2 to SP3).  This is still the case in  SP4.

Can anyone from SUSE please explain why is the "clvmd" resource agent
coming with such a noisy default out of the box?  I'm curious.

Thanks,
Jorge

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Antw: Monitoring Op for LVM - Excessive Logging

2015-10-09 Thread Ken Gaillot
On 10/09/2015 08:06 AM, Ulrich Windl wrote:
 Jorge Fábregas  schrieb am 09.10.2015 um 14:20
> in
> Nachricht <5617b10f.1060...@gmail.com>:
>> Hi,
>>
>> Is there a way to stop the excessive logging produced by the LVM monitor
>> operation?  I got it set at the default (30 seconds) here on SLES 11
>> SP4.  However, everytime it runs the DC will write 174 lines on
>> /var/log/messages (all coming from LVM).   I'm referring to the LVM
>> primitive resource (the one that activates a VG).  I'm also using DLM/cLVM.
>>
>> I checked /etc/lvm/lvm.conf and the logging defaults are reasonable
>> (verbose value set at 0 which is the lowest).
> 
> Did you try daemon_options="-d0"? (in clvmd resource)

It's been a long while since I used clvmd, so they may have fixed this
since then, but there used to be a bug that clvmd would always start up
with debug logging, even if -d0 was set.

Luckily, dynamic disabling of debug mode worked and could be done
anytime after clvmd is started, using "clvmd -C -d0".

What I wound up doing was configuring swatch to monitor the logs, and
run that command if it saw debug messages!


___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Antw: Monitoring Op for LVM - Excessive Logging

2015-10-09 Thread Andrei Borzenkov

09.10.2015 19:40, Jorge Fábregas пишет:

On 10/09/2015 09:06 AM, Ulrich Windl wrote:

Did you try daemon_options="-d0"? (in clvmd resource)


I've just found this:

http://pacemaker.oss.clusterlabs.narkive.com/C5BaFych/ocf-lvm2-clvmd-resource-agent

...so apparently SUSE changed the resource agent's default of "-d0" to
"-d2" (from SP2 to SP3).  This is still the case in  SP4.

Can anyone from SUSE please explain why is the "clvmd" resource agent
coming with such a noisy default out of the box?  I'm curious.



Personally I find more logs better than less logs. It is not always 
possible to reproduce problem, especially on production system, so 
having as much information as possible to be able to analyze it is a 
good thing.


Of course, as long as it does not get in the way ...

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org