khowe34
asked on
log.nmbd filling up /usr directory
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.n mbd 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:creat e_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!
root@ifs-server:/usr/local
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(
INFO: Debug class all level = 1 (pid 69524 from pid 69524)
[2006/11/02 10:01:40, 0] nmbd/nmbd_subnetdb.c:creat
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 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
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!
ASKER
I actually performed >cat /dev/null > /usr/local/samba/var/log.n mbd 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:creat e_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.
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(
INFO: Debug class all level = 1 (pid 69524 from pid 69524)
[2006/11/02 10:01:40, 0] nmbd/nmbd_subnetdb.c:creat
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.
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.
$ : > /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.
ASKER
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:creat e_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.
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(
INFO: Debug class all level = 1 (pid 69524 from pid 69524)
[2006/11/02 10:01:40, 0] nmbd/nmbd_subnetdb.c:creat
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.
ORA errors relate to oracle database.
Samba is another application software.
Setting up WINS will make your network browsing swifter.
Samba is another application software.
Setting up WINS will make your network browsing swifter.
ASKER
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
Thanks
-khowe34
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.
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.
ASKER
I just need to make sure that the standby server isn't a WNS server too right?
ASKER
Because you can't have more than one Samba server running as WINS sserver in one broadcast domain....Did I read that right?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
log file = /dev/null