LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2012, 06:56 AM   #1
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Samba on Centos 6 - browsing from XP Pro machine sometimes failes - semaphore timeout


Hi Guys

I've got a Centos 6 box running the Centos Samba server instance (3.5.4-68.el6).

It is on a close (isolated from the internet) Class B network. I'm running DHCP on the Centos 6 box as well as BIND. DHCP / BIND are running in DDNS configuration. The server is serving as
a PDC for the windows machines in the network.

Everything is working fine, the two test XP Pro machines I have on the network get their IP addresses allocated by DHCP, and BIND picks up on this in the relevant zone file.

The only problem I'm experiencing is a completely random occurrence where, SOMETIMES, if I browse on the XP machine to a samba share (or just double-click on the Microsoft Windows Network icon) it either takes about two minutes for me to see the available networks (or shares shared from samba) or I get an error box popping up in XP stating that "The semaphore has reached its timeout period."

Retrying SOMETIMES works - sometimes I get three or four "The semaphore has reached its timeout period" error boxes, before a flash of the hourglass icon and the particular part of the network opening in XP's network explorer.

The problem seems related to activity, e. g. if I constantly (every two or three seconds) keep clicking on network shares provided by the Centos box, I can 90% of the time get them to open consistently. If I leave the XP box alone for a minute or two, I'm once again into the two-minute-wait thing if I click on a Centos / Samba provided share, and then sometimes (about 25% of the time) I again get the "The semaphore has reached its timeout period" three or four times before a long wait and the Samba share coming up.

Any idea what could possibly be wrong? How can it work -sometimes-, but not always?

I've perused the Samba logs at log level 3 and no errors are apparent for the log.smbd, log.nmbd and log for the machine name...

Here's my smb.conf:

Code:
[global]	
workgroup = SCRUB
server string = Samba Server Version %v
netbios name = VERIPDC
interfaces = lo eth0
hosts allow = 127. 192.168.1. 192.168.13. 172.
admin users = root
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
domain master = yes 
domain logons = yes
encrypt passwords = yes
os level = 65
log level = 3
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384
preferred master = auto
local master = yes
wins support = yes
name resolve order = bcast wins lmhosts hosts
dns proxy = yes
lm announce = yes
logon script = %U.bat
logon path = 
logon drive = O:
load printers = no
	
[homes]
	comment = Home Directories
	browseable = no
	writable = yes
	valid users = %S
	valid users = VERIPDC\%S
	
#[printers]
#	comment = All Printers
#	path = /var/spool/samba
#	browseable = no
#	guest ok = no
#	writable = no
#	printable = yes
	
# Un-comment the following and create the netlogon directory for Domain Logons
	[netlogon]
	comment = Network Logon Service
	path = /var/lib/samba/netlogon
	guest ok = yes
	writable = no
	share modes = no
	
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
	[Profiles]
	path = /var/lib/samba/profiles
	browseable = no
	guest ok = yes
Any ideas / suggestions appreciated!

Thank you
 
Old 11-05-2012, 12:21 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Original Poster
Rep: Reputation: 103Reputation: 103
Hi guys

I've appeared to solve this by adding the following to the [global] section of my smb.conf and restarting NMBD and SMBD:

Code:
deadtime=1440
keepalive=5
Now, I can leave the XP machine for hours with an open file on a Samba share, and come back anytime and save it (or browse the Network Neighbourhood) without this error popping up...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Unable to connect to Samba on CentOS 6.2 machine jbruyet Linux - Software 3 08-03-2012 08:50 AM
svn checkout failes to add corret EOL on windows machine +Yan Linux - Software 1 03-19-2009 01:31 AM
The semaphore timeout period has expired when joining a domain jeb083079 Linux - Networking 0 09-01-2006 04:53 AM
Samba woes -- Cannot login from XP pro machine scheidel21 Linux - Networking 7 09-29-2005 02:24 PM
Problem browsing a samba machine from Win c0p0n Linux - Networking 2 08-02-2003 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration