?
Solved

Samba Problems

Posted on 2002-04-02
5
Medium Priority
?
675 Views
Last Modified: 2013-12-16
Running Samba 2.0.7 on a FreeBSD machine.

Getting the following messages in the samba-specific log files.


[2001/10/22 08:38:18, 1] smbd/server.c:main(641)
  smbd version 2.0.7 started.
  Copyright Andrew Tridgell 1992-1998
[2001/10/22 08:38:18, 1] smbd/files.c:file_init(216)
  file_init: Information only: requested 10000 open files, 1054 are available.
[2001/10/22 08:38:47, 1] lib/util_sock.c:client_name(1010)
  Gethostbyaddr failed for 192.168.0.69
[2001/10/23 07:36:16, 1] lib/util_sock.c:client_name(1010)
  Gethostbyaddr failed for 192.168.0.69
[2001/10/24 17:07:25, 1] lib/util_sock.c:client_name(1010)
  Gethostbyaddr failed for 192.168.0.69


Also recently have been getting the following errors; it seems like something is causing the smbd daemon to stop and restart but I dunno what nor why.

[2002/03/17 20:23:59, 1] smbd/server.c:main(641)
  smbd version 2.0.7 started.
  Copyright Andrew Tridgell 1992-1998
[2002/03/17 20:23:59, 1] smbd/files.c:file_init(216)
  file_init: Information only: requested 10000 open files, 1054 are available.
[2002/03/17 20:23:59, 0] lib/pidfile.c:pidfile_create(86)
  ERROR: smbd is already running. File /var/run/smbd.pid exists and process id 123 is running.
[2002/03/17 20:27:17, 1] smbd/server.c:main(641)
  smbd version 2.0.7 started.
  Copyright Andrew Tridgell 1992-1998
[2002/03/17 20:27:17, 1] smbd/files.c:file_init(216)
  file_init: Information only: requested 10000 open files, 1054 are available.
[2002/03/17 20:27:17, 0] lib/pidfile.c:pidfile_create(86)
  ERROR: smbd is already running. File /var/run/smbd.pid exists and process id 123 is running.
[2002/03/17 20:28:30, 1] smbd/server.c:main(641)
  smbd version 2.0.7 started.
  Copyright Andrew Tridgell 1992-1998
[2002/03/17 20:28:30, 1] smbd/files.c:file_init(216)
  file_init: Information only: requested 10000 open files, 1054 are available.
[2002/03/17 20:28:43, 1] smbd/server.c:main(641)


I'm a Samba newbie, any tips on what to look for would be appreciated.
0
Comment
Question by:Zoplax
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6914306
sounds like FreeBSD also uses one of these stupid scripts which rely on pid files.
Remove /var/run/smbd.pid and start the script again.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 800 total points
ID: 6914956
The first error is caused by the client with the IP of 192.168.0.69 not having a hosts file record on the Samba server for that node or not being able to find a PTR record for that IP in the DNS.

The second error isn't a script error so mach as it is Samba taking evasive action to keep from having two copies of the smbd master process running. If that were to happen it could easly wreak havoc with shared files. When smbd starts up it'll look to see if there's a pid file and if it finds one it'll exit. To clean up, do a "killall smbd" then check to see if there's any zombie or unkillable smbd's with 'ps -axw | grep smbd| grep -v grep' (there should be no output). Check for a /var/run/smpb.pid file and remove it if it exists and start up the smbd daemon in the normal fashion.
0
 
LVL 2

Expert Comment

by:hangman
ID: 6920670
You need to edit the hosts file under /etc
add
192.168.0.69   computername
0
 
LVL 3

Expert Comment

by:hnminh
ID: 6974461
You could get rid off this error message by install WINS server and point your samba's "wins server" directive to this wins server.
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6995308
Admin notified of User neglect. Force-accepted by
Netminder
CS Moderator
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

777 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