Re: [Cluster-devel] How to enable daemon_debug for dlm_controld

2018-06-27 Thread Guoqing Jiang




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



Re: [Cluster-devel] How to enable daemon_debug for dlm_controld

2018-06-27 Thread David Teigland
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



[Cluster-devel] How to enable daemon_debug for dlm_controld

2018-06-27 Thread Guoqing Jiang

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