Solved

log.nmbd filling up /usr directory

Posted on 2006-11-14
10
2,020 Views
Last Modified: 2013-11-17
After a power outage a week ago, the /usr directory (AIX4.3.3) started filling up. If I added filespace (chfs -a size=+xxxxx /usr) it would fill that new space up too within hours. I think I've found the culprit. The /usr/local/samba/var/log.nmbd file is huge!

root@ifs-server:/usr/local/samba/var>ls -l
total 2275760
drwxr-xr-x   2 root     system       512 Nov 13 16:39 locks
-rw-r--r--   1 root     system   1155338240 Nov 13 11:59 log.nmbd
-rw-r--r--   1 root     system   4722672 Nov 13 16:34 log.smbd
-rw-r--r--   1 root     system   5120098 Jul 13 04:22 log.smbd.old

CAT of log.nmbd shows:

[2006/11/02 10:01:40, 0] nmbd/nmbd.c:main(794)
  Netbios nameserver version 2.2.5 started.
  Copyright Andrew Tridgell and the Samba Team 1994-2002
[2006/11/02 10:01:40, 1] lib/debug.c:debug_message(258)
  INFO: Debug class all level = 1   (pid 69524 from pid 69524)
[2006/11/02 10:01:40, 0] nmbd/nmbd_subnetdb.c:create_subnets(291)
  No 'live' WINS servers found.  Check 'wins server' parameter.
[2006/11/02 10:01:40, 0] nmbd/nmbd.c:main(872)
  ERROR: Failed when creating subnet lists. Exiting.

The smb.conf is configured and points to a machine which has netbois over tcpip enabled, but I don't believe it's ever had the WINS service installed & running.

The smb.conf file is listed below, and does point to aurora-tsm2 as the wins server'.
Any thoughts?


root@ifs-server:/usr/local/samba/lib>cat smb.conf
# Samba config file created using SWAT
# from 172.16.2.77 (172.16.2.77)
# Date: 2003/06/18 09:34:38
# Date: 2/8/2005 -add interfaces =  Gary Finfrock
#               add max log size
#               add socket options

# Global parameters
[global]
        workgroup = MITUTOYO
        server string = IFS Server
        security = SERVER
        encrypt passwords = Yes
        password server = aurora-tsm2
        username map = /etc/users.map
        log level = 1
        log file = /var/samba/log/%m.log
#       socket options = IPTOS_LOWDELAY TCP_NODELAY
        preferred master = False
        local master = No
        domain master = False
        wins server = aurora-tsm2
        write cache size = 262144
        interfaces = 172.16.2.120/23
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

[ExFile]
        comment = ExFile Flatfile Directory
        path = /u06
        valid users = +samba
        read only = No
        create mask = 0664
        browseable = No

[u02]
        comment = ExFile Flatfile Directory
        path = /u02
        valid users = +samba
        read only = No
        create mask = 0664
        browseable = No
root@ifs-server:/usr/local/samba/lib>

My question is, can I just delete this file and will it then recreate itself? If it does recreate itself, I am obviously going to run into this issue again when it gets big enough. Is there any way to test that it's getting the corrrect WINS information from this server? I do not have any apparent connectivity issues with this machine and the rest of the network.

PLEASE HELP!

0
Comment
Question by:khowe34
  • 5
  • 5
10 Comments
 
LVL 61

Expert Comment

by:gheist
ID: 17944788
[global]
log file = /dev/null

0
 

Author Comment

by:khowe34
ID: 17946290
I actually performed >cat /dev/null > /usr/local/samba/var/log.nmbd which removed the contents fo the log file, but the original issue persists, so it is filling up again. Albeit not as fast, but rather than taking a matter of hours to fill up /usr, it takes about a day and a half.

I need to be able to treolve the problem causing the error log to fill:

2006/11/02 10:01:40, 0] nmbd/nmbd.c:main(794)
  Netbios nameserver version 2.2.5 started.
  Copyright Andrew Tridgell and the Samba Team 1994-2002
[2006/11/02 10:01:40, 1] lib/debug.c:debug_message(258)
  INFO: Debug class all level = 1   (pid 69524 from pid 69524)
[2006/11/02 10:01:40, 0] nmbd/nmbd_subnetdb.c:create_subnets(291)
  No 'live' WINS servers found.  Check 'wins server' parameter.
[2006/11/02 10:01:40, 0] nmbd/nmbd.c:main(872)
  ERROR: Failed when creating subnet lists. Exiting.
0
 
LVL 61

Expert Comment

by:gheist
ID: 17960967
You do not have to cat /dev/null

$ : > /var/log/badlog will null file.

For your problem:
http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetworkBrowsing.html#id2587274

Basically well-configured windows networks track names using WINS server, not broadcasts. This allows windows machines on different subnets "browse" eachother.
0
 

Author Comment

by:khowe34
ID: 17962377
Right, I know how to clear the log file, but I can't pinpoint what to do about the error that is filling it up.

2006/11/02 10:01:40, 0] nmbd/nmbd.c:main(794)
  Netbios nameserver version 2.2.5 started.
  Copyright Andrew Tridgell and the Samba Team 1994-2002
[2006/11/02 10:01:40, 1] lib/debug.c:debug_message(258)
  INFO: Debug class all level = 1   (pid 69524 from pid 69524)
[2006/11/02 10:01:40, 0] nmbd/nmbd_subnetdb.c:create_subnets(291)
  No 'live' WINS servers found.  Check 'wins server' parameter.
[2006/11/02 10:01:40, 0] nmbd/nmbd.c:main(872)
  ERROR: Failed when creating subnet lists. Exiting.

The 3rd entry say there are 'no live wins servers found'
The smb.conf points to  tsm2, which is not cnfigured as a WINS server. As far as I know it never has.

I don't know if during the power outage mentioned above, some configuration of smb.conf didn't get saved, or whatever.

I have an out of support version of AIX 4.3.3, there are no ORA-XXXX numbers to accociate the error to.

I need to figure out if I realy need WINS running. I don't know if netbios is necessary in this enviroment. Although the error is slamming the log file, there appears to be no problem with connectivity of any other host or device on the network.

I will say, however, that after the power outage, I did lose a mount to the standby server.  I had to export the mount first, then mount the filesystem to the remote (standby/AIX) box, or I could just do a mount. I wonder now if this could be related?
Perhaps/Perhaps not.

The artilce linked above also references a 'WINS Suport" entry in the smb.conf, but the one I have does not have that entry, & I don't know if it's something I can just add in the [global] config.?

I do not know how to tell what version of Samba I am running. I am looking the up as we speak.


0
 
LVL 61

Expert Comment

by:gheist
ID: 17963335
ORA errors relate to oracle database.
Samba is another application software.
Setting up WINS will make your network browsing swifter.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:khowe34
ID: 17964517
ORA is oracle. I knew That I just wasn't thinking. I guess what I meant to say was that I can't find anyother information on the error, or suggestions about what to about it.

Thanks
-khowe34
0
 
LVL 61

Expert Comment

by:gheist
ID: 17966628
Error on posix systems are found in /usr/include/sys/errno.h
And AIX is one of them.

Errors you try to resolve are of Samba, and WINS server is veru welcome addition to any windows network, even those in single subnet
In that error Samba attempts to get broadcast subnets form wins server, so that nmblookup on your AIX will do its best.

My hint is that you make Samba server a WINS server. Errors will go away and users will feel happier.
0
 

Author Comment

by:khowe34
ID: 17967034
I just need to make sure that the standby server isn't a WNS server too right?
0
 

Author Comment

by:khowe34
ID: 17968196
Because you can't have more than one Samba server running as WINS sserver in one broadcast domain....Did I read that right?

0
 
LVL 61

Accepted Solution

by:
gheist earned 250 total points
ID: 17968573
WINS servers do not appear out of nowhere. Just run it. And if you use DHCP - make that WINS server used by everyone.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now