[Linux-HA] socket of lrmd
Junko IKEDA
ikedaj at intellilink.co.jp
Thu Jul 2 03:40:26 MDT 2009
Hi,
I try to strace of lrmd.
(1) running syslog, and strace
# service syslog start
# strace -o /tmp/strace-syslog-start.txt /usr/lib64/heartbeat/lrmd -rv
socket(PF_FILE, SOCK_DGRAM, 0) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sa_family=AF_FILE, path="/dev/log"...}, 110) = 0
sendto(3, "<30>Jul 2 17:02:46 lrmd: [16211"..., 102, MSG_NOSIGNAL, NULL, 0) = 102
(2) stop syslog and strace
# service syslog stop
# strace -o /tmp/strace-syslog-stop.txt /usr/lib64/heartbeat/lrmd -rv
socket(PF_FILE, SOCK_DGRAM, 0) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sa_family=AF_FILE, path="/dev/log"...}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
open("/dev/console", O_WRONLY|O_NOCTTY) = 3
(for more details, see the attached files)
Is the socket of lrmd for syslog?
wild guess?
Thanks,
Junko
On Thu, 02 Jul 2009 16:09:16 +0900, Junko IKEDA <ikedaj at intellilink.co.jp> wrote:
>
> Hi,
>
> When I run LVM RA with Heartbeat 2.1.4,
> I could see the following message.
>
> lrmd[14994]: 2009/07/02_15:29:20 info: RA output: (lvm:monitor:stderr) File descriptor 3 (socket:[46374]) leaked on vgck invocation. Parent PID 15446: /bin/sh
>
> It seems that some LVM commands (vgdisplay or vgck) try to close the file descriptor which lrmd opened.
> lsof command showed that lrmd had socket like this;
>
> # lsof | grep lrmd | grep socket
> lrmd 14994 nobody 3u unix 0xffff81011b05f740 46374 socket
>
> (for more details, see the attached hb_report and lsof.txt)
>
> lvm commands tried to close this socket and failed. :(
> What is this socket for?
> For the communication with othre processes like crmd or ha_logd?
>
> This problem depends on the specification of lvm,
> but I just want to confirm whether the above log message could have an impact on the cluster behavior or not.
>
> This list might be the same issue.
> http://www.gossamer-threads.com/lists/linuxha/users/49687
>
> Thanks,
> Junko
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: strace-syslog-start.txt
Url: http://lists.linux-ha.org/pipermail/linux-ha/attachments/20090702/e87cc161/attachment-0002.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: strace-syslog-stop.txt
Url: http://lists.linux-ha.org/pipermail/linux-ha/attachments/20090702/e87cc161/attachment-0003.txt
More information about the Linux-HA
mailing list