Solved

Samba Problems

Posted on 2002-04-02
5
609 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 200 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

730 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