Michael Weiser
2009-Jan-06 13:28 UTC
[Samba] smbcontrol smbd ping also answered by nmbd and winbindd
Hello, with samba-3.0.x an "smbcontrol smbd ping" was answered by all running smbd processes. With samba-3.2.x it is now *also* answered by nmbd and winbindd: [root@cs00 ~]# smbcontrol -V Version 3.2.5 [root@cs00 ~]# for i in `smbcontrol -t 1 winbindd ping | grep PONG | awk '{ print $4}'` ; do pstree -p | grep $i ; done winbindd(29908) - winbindd(29909) [root@cs00 ~]# for i in `smbcontrol -t 1 nmbd ping | grep PONG | awk '{ print $4}'` ; do pstree -p | grep $i ; done nmbd(29266) [root@cs00 ~]# for i in `smbcontrol -t 1 smbd ping | grep PONG | awk '{ print $4}'` ; do pstree -p | grep $i ; done smbd(29275)---smbd(29277) winbindd(29908)---winbindd(29909) nmbd(29266) (I'm using SerNet RPMs for RHEL4 on an RHEL4u4 machine.) With 3.0.30 it looked like this: l1-auto-du:~ # smbcontrol -V Version 3.0.30-s+c l1-auto-du:~ # for i in `smbcontrol -t 1 smbd ping | grep PONG | awk '{ print $4}'` ; do pstree -p | grep $i ; done |-smbd(4587)-+-smbd(4591) | |-smbd(5681) [...] | `-smbd(6431) Is this known behaviour? What can be done about it? Thanks, -- Michael Weiser science + computing ag Senior Systems Engineer Geschaeftsstelle Duesseldorf Martinstrasse 47-55, Haus A phone: +49 211 302 708 32 D-40223 Duesseldorf fax: +49 211 302 708 50 www.science-computing.de -- Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Michel Lepert Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196
Jeremy Allison
2009-Jan-08 00:18 UTC
[Samba] smbcontrol smbd ping also answered by nmbd and winbindd
On Tue, Jan 06, 2009 at 02:28:22PM +0100, Michael Weiser wrote:> Hello, > > with samba-3.0.x an "smbcontrol smbd ping" was answered by all running > smbd processes. With samba-3.2.x it is now *also* answered by nmbd and > winbindd: > > [root@cs00 ~]# smbcontrol -V > Version 3.2.5 > [root@cs00 ~]# for i in `smbcontrol -t 1 winbindd ping | grep PONG | awk > '{ print $4}'` ; do pstree -p | grep $i ; done > winbindd(29908) - winbindd(29909) > [root@cs00 ~]# for i in `smbcontrol -t 1 nmbd ping | grep PONG | awk '{ > print $4}'` ; do pstree -p | grep $i ; done > nmbd(29266) > > [root@cs00 ~]# for i in `smbcontrol -t 1 smbd ping | grep PONG | awk '{ > print $4}'` ; do pstree -p | grep $i ; done > smbd(29275)---smbd(29277) > winbindd(29908)---winbindd(29909) > nmbd(29266) > > (I'm using SerNet RPMs for RHEL4 on an RHEL4u4 machine.) > > With 3.0.30 it looked like this: > > l1-auto-du:~ # smbcontrol -V > Version 3.0.30-s+c > l1-auto-du:~ # for i in `smbcontrol -t 1 smbd ping | grep PONG | awk '{ > print $4}'` ; do pstree -p | grep $i ; done > |-smbd(4587)-+-smbd(4591) > | |-smbd(5681) > [...] > | `-smbd(6431) > > Is this known behaviour? What can be done about it?Yeah - Herb found this problem, see this mail thread : "http://markmail.org/message/iivngxhc4mwpdi4s#query:herb lewis smbcontrol samba.org+page:1+mid:j5n4r27dnkiciemo+state:results" for details. This got changed in the 3.3 source tree (and beyond) but not in the 3.2.x tree. Jeremy.
Michael Weiser
2009-Jan-08 14:11 UTC
[Samba] smbcontrol smbd ping also answered by nmbd and winbindd
Hello Jeremy, thanks for your answer. On Wed, Jan 07, 2009 at 04:17:40PM -0800, Jeremy Allison wrote:> > with samba-3.0.x an "smbcontrol smbd ping" was answered by all running > > smbd processes. With samba-3.2.x it is now *also* answered by nmbd and > > winbindd: > Yeah - Herb found this problem, see this mail thread :> "http://markmail.org/message/iivngxhc4mwpdi4s#query:herb lewis smbcontrol samba.org+page:1+mid:j5n4r27dnkiciemo+state:results"> for details. This got changed in the 3.3 source tree > (and beyond) but not in the 3.2.x tree.I backported the patch to 3.2.7. It applies cleanly and restores part of the old behaviour. But: If smbd is not running, smbcontrol still reverts to broadcasting which will again trigger answers from nmbd and winbindd. In effect, ping can still not be used to determine if smbd is running or not. This would also be the case for 3.3. Can this be changed? Thanks, -- Michael Weiser science + computing ag Senior Systems Engineer Geschaeftsstelle Duesseldorf Martinstrasse 47-55, Haus A phone: +49 211 302 708 32 D-40223 Duesseldorf fax: +49 211 302 708 50 www.science-computing.de -- Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Michel Lepert Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196
Reasonably Related Threads
- only one mysql process in pstree
- Defunct / zombie AGI after some execution time
- R CMD check --as-cran attempts to hide R_LIBS_USER but fails
- increase number of libvirt threads by starting tansient guest doamin - is it a bug?
- Failed to connect host xx on port 135 - NT_STATUS_CONNECTION_REFUSED