1819910 Members
2630 Online
109607 Solutions
New Discussion юеВ

Re: Samba nmbd dying

 
Gregory Heil
Occasional Advisor

Samba nmbd dying

I believe that I had heard awhile ago that nmbd would die if the network connection gets dropped . This could be caused by a bad piece of networking gear, etc.

Is this still true in the latest versions?
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: Samba nmbd dying

I'm not too sure.

I havn't had nmbd die on me at all...from CIFS Server based on Samba 2.0X to 2.2.8a.

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA

I do remember if name resolution isn't correctly configured, nmbd could die(or not start at all).

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Gregory Heil
Occasional Advisor

Re: Samba nmbd dying

This is what we usually see in /var/opt/samba/log.nmbd

[2004/06/30 08:59:41, 0] nmbd/nmbd.c:(256)
reload_interfaces: No subnets to listen to. Shutting down...

Of course, just because it's Monday, I don't see an entry like that for today. When we looked at Samba'a status via the web interface, it listed nmbd as stopped. Makes sense, as all of the PC users couldn't connect. I restarted it and here's what the log showed:

[2004/07/12 12:44:17, 0] nmbd/nmbd.c:(795)
Netbios nameserver version 2.2.8a based HP CIFS Server A.01.10 started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2004/07/12 12:44:17, 1] lib/debug.c:(256)
INFO: Debug class all level = 1 (pid 10428 from pid 10428)
[2004/07/12 12:47:44, 0] nmbd/nmbd.c:(795)
Netbios nameserver version 2.2.8a based HP CIFS Server A.01.10 started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2004/07/12 12:47:44, 1] lib/debug.c:(256)
INFO: Debug class all level = 1 (pid 10537 from pid 10537)
[2004/07/12 12:47:44, 0] lib/pidfile.c:(85)
ERROR: nmbd is already running. File /var/opt/samba/locks/nmbd.pid exists and process
id 10429 is running.
Geoff Wild
Honored Contributor

Re: Samba nmbd dying

Okay - I have found that sometimes, starting/stopping via SWAT doesn't work very well.

ERROR: nmbd is already running

Okay - from command line:
/sbin/init.d/samba stop

ps -ef |grep mbd

Is anything still running?
If yes - kill manually.

Next, rm /var/opt/samba/locks/nmbd.pid and smbd.pid if there.

/sbin/init.d/samba start

Check logs and ps -ef mbd

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
D Block 2
Respected Contributor

Re: Samba nmbd dying

try to inspect what your server offers up to a client by running on your server:


# /opt/samba/bin/smbclient -U% -L localhost

btw, there is a percent-sign above after the -U.

you can increase your logging level seting in GLOBALS from SWAT.

did you set up the WINS IP address for your network ?

Golf is a Good Walk Spoiled, Mark Twain.