cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] How to enable daemon_debug for dlm_controld
@ 2018-06-27  8:07 Guoqing Jiang
  2018-06-27 13:49 ` David Teigland
  0 siblings, 1 reply; 3+ messages in thread
From: Guoqing Jiang @ 2018-06-27  8:07 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi David,

I want enable the option to see why dlm_controld got repeatly launched 
repeatly by systemd, these logs happened in split
brain case.

Jun 27 15:40:24 gqj-bsc1098449-2 systemd[1]: Started Process Core Dump 
(PID 3149/UID 0).
Jun 27 15:40:24 gqj-bsc1098449-2 systemd-coredump[3150]: Process 3148 
(dlm_stonith) of user 0 dumped core.
Jun 27 15:40:25 gqj-bsc1098449-2 dlm_controld[2487]: 392 fence result 
172204701 pid 3148 result -1 term signal 6
Jun 27 15:40:25 gqj-bsc1098449-2 dlm_controld[2487]: 392 fence status 
172204701 receive -1 from 172204758 walltime 1530085225 local 392
Jun 27 15:40:25 gqj-bsc1098449-2 dlm_controld[2487]: 392 fence request 
172204701 pid 3154 nodedown time 1530085207 fence_all dlm_stonith
[snip]
Jun 27 15:40:29 gqj-bsc1098449-2 systemd[1]: Started Process Core Dump 
(PID 3207/UID 0).
Jun 27 15:40:29 gqj-bsc1098449-2 systemd-coredump[3208]: Process 3206 
(dlm_stonith) of user 0 dumped core.
Jun 27 15:40:30 gqj-bsc1098449-2 dlm_controld[2487]: 398 fence result 
172204701 pid 3206 result -1 term signal 6
Jun 27 15:40:30 gqj-bsc1098449-2 dlm_controld[2487]: 398 fence status 
172204701 receive -1 from 172204758 walltime 1530085230 local 398
Jun 27 15:40:30 gqj-bsc1098449-2 dlm_controld[2487]: 398 fence request 
172204701 pid 3212 nodedown time 1530085207 fence_all dlm_stonith

But by default, seems dlm_controld just run with "-s 0". And I tried to 
add "daemon_debug=1" to /etc/dlm/dlm.conf,
then dlm resource can't start at all. Could you tell me how to enable 
this option? Thanks in advance!

Regards,
Guoqing



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Cluster-devel] How to enable daemon_debug for dlm_controld
  2018-06-27  8:07 [Cluster-devel] How to enable daemon_debug for dlm_controld Guoqing Jiang
@ 2018-06-27 13:49 ` David Teigland
  2018-06-28  2:13   ` Guoqing Jiang
  0 siblings, 1 reply; 3+ messages in thread
From: David Teigland @ 2018-06-27 13:49 UTC (permalink / raw)
  To: cluster-devel.redhat.com

On Wed, Jun 27, 2018 at 04:07:18PM +0800, Guoqing Jiang wrote:
> But by default, seems dlm_controld just run with "-s 0". And I tried to add
> "daemon_debug=1" to /etc/dlm/dlm.conf,
> then dlm resource can't start at all. Could you tell me how to enable this
> option? Thanks in advance!

That option doesn't work in dlm.conf, see
https://pagure.io/dlm/c/9fe973004d8dbffc07bbecbdbb6c828bfb832137?branch=master

What you want instead is:
log_debug=1
debug_logfile=1

Then look in /var/log/dlm_controld/dlm_controld.log

Dave



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Cluster-devel] How to enable daemon_debug for dlm_controld
  2018-06-27 13:49 ` David Teigland
@ 2018-06-28  2:13   ` Guoqing Jiang
  0 siblings, 0 replies; 3+ messages in thread
From: Guoqing Jiang @ 2018-06-28  2:13 UTC (permalink / raw)
  To: cluster-devel.redhat.com



On 06/27/2018 09:49 PM, David Teigland wrote:
> On Wed, Jun 27, 2018 at 04:07:18PM +0800, Guoqing Jiang wrote:
>> But by default, seems dlm_controld just run with "-s 0". And I tried to add
>> "daemon_debug=1" to /etc/dlm/dlm.conf,
>> then dlm resource can't start at all. Could you tell me how to enable this
>> option? Thanks in advance!
> That option doesn't work in dlm.conf, see
> https://pagure.io/dlm/c/9fe973004d8dbffc07bbecbdbb6c828bfb832137?branch=master
>
> What you want instead is:
> log_debug=1
> debug_logfile=1

Thanks for the help, I was misguided by the previous man page.

> Then look in /var/log/dlm_controld/dlm_controld.log

However, I can't find the file with the above change during split-brain
test, perhaps I still missed something ..., thanks.

linux-u121:~ # cat /etc/dlm/dlm.conf
log_debug=1
debug_logfile=1
linux-u121:~ # ls /var/log/dlm_controld/dlm_controld.log
ls: cannot access '/var/log/dlm_controld/dlm_controld.log': No such file 
or directory
linux-u121:~ # find / -name dlm_controld
/run/dlm_controld
/usr/sbin/dlm_controld

Regards,
Guoqing



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-28  2:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-27  8:07 [Cluster-devel] How to enable daemon_debug for dlm_controld Guoqing Jiang
2018-06-27 13:49 ` David Teigland
2018-06-28  2:13   ` Guoqing Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).