[Samba] offline files sync delay and Windows XP SP2

David Black dave at jamsoft.com
Mon Oct 18 17:20:30 GMT 2004

I'm scratching my head at the following issue that surfaced with Windows 
XP Prof. + SP2.  First, a summary of my configuration:

. Running Samba 3.0.7 in a LDAP-based PDC configuration, and with 
separate machine as member server for home directories.
. The OS for PDC is Mandrake 9.2, the file server (FILES) is Mandrake 10.0.
. 1000BaseT Ethernet.

With XP SP1 and Samba 3.0.7 or prior, offline files work normally.  
Immediately after the application of SP2, about a minute delay (~67 
seconds) is seen before the offline files sync operation actually does 
anything.   This is easily replicated - back out SP2, delay goes away.   
Reapply it, delay reappears.  I've found no other leads on this issue so 
far.  Some facts:

. Behaves same way in SP2 whether client Windows firewall is enabled or 
disabled.  In fact, I have it enabled in SP1 and offline files work 
fine.  In any case, nothing is logged as being blocked when it was on 
and logging enabled.
. I also see nothing odd in packet captures - the client just seems to 
sit there; no network traffic is seen while it pauses, nor is there any 
obvious unreplied-to query from the client.
. Doesn't matter whether the target server is FILES or PDC.  (I have 
shares and offline files enabled on both/either.)
. No problems accessing network drives with either SP - this just 
affects offline files sync.

Searching the samba archives, the closest issue noted has to do with 
similar delays waiting to print and something about the client expecting 
a connection back, and mention of it being an unresolved issue in Samba 
3.0.7 and 2.2.12.  Maybe related?

My smb.conf files for the pdc and file server are attached FYI.   They 
both run in a high-availability configuration and so are set to talk 
only on their respective HA interfaces (caused no problems of itself).

Thanks in advance for any help.


-------------- next part --------------
	workgroup = MYDOMAIN
	netbios name = FILES
	server string = Samba Server %v
	interfaces =
	security = DOMAIN
	map to guest = Bad User
	log file = /var/log/samba/log.%m
	max log size = 50
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	dns proxy = No
	wins server =
	ldap ssl = no

	comment = Home Directories
	read only = No
	browseable = No

	comment = Temporary file space
	path = /ha3/tmp
	read only = No
	guest ok = Yes
-------------- next part --------------
	workgroup = MYDOMAIN
	netbios name = PDC
	server string = Samba Server %v
	interfaces =
	map to guest = Bad User
	private dir = /ha1/etc/samba
	passdb backend = ldapsam:ldap://ldap.mydomain.com
	pam password change = Yes
	username map = /ha1/etc/samba/smbusers
	lanman auth = No
	log level = 1
	log file = /var/log/samba/log.%m
	time server = Yes
	add user script = /usr/share/samba/scripts/smbldap-useradd.pl -amn 
	delete user script = /usr/share/samba/scripts/smbldap-userdel.pl 
	add group script = /usr/share/samba/scripts/smbldap-groupadd.pl -p 
	delete group script = /usr/share/samba/scripts/smbldap-groupdel.pl 
	add user to group script = /usr/share/samba/scripts/smbldap-groupmod.pl -m 
	delete user from group script = /usr/share/samba/scripts/smbldap-groupmod.pl -x 
	set primary group script = /usr/share/samba/scripts/smbldap-usermod.pl -g 
	add machine script = /usr/share/samba/scripts/smbldap-useradd.pl -w 
	logon script = LOGON.BAT
	logon path = 
	logon drive = H:
	logon home = \\files\%U
	domain logons = Yes
	preferred master = Yes
	domain master = Yes
	dns proxy = No
	wins support = Yes
	ldap admin dn = uid=admin,dc=mydomain,dc=com
	ldap group suffix = ou=Groups
	ldap machine suffix = ou=Computers
	ldap passwd sync = Yes
	ldap suffix = dc=mydomain,dc=com
	ldap ssl = no
	ldap user suffix = ou=Users
	printer admin = @adm

	comment = Network Logon Service
	path = /ha1/var/lib/samba/netlogon
	write list = admin
	guest ok = Yes
	browseable = No

	comment = Internal web root
	path = /ha1/var/www
	read only = No

	comment = Shared File Space
	path = /ha1/var/www/html/shared
	read only = No

	comment = Software Downloads
	path = /ha1/var/www/html/dl
	read only = No

	comment = All Printers
	path = /ha1/var/spool/samba
	create mask = 0700
	guest ok = Yes
	printable = Yes
	browseable = No

	path = /ha1/var/lib/samba/printers
	write list = @adm, root
	guest ok = Yes

	comment = PDF Generator (only valid users)
	path = /var/tmp
	printable = Yes

More information about the samba mailing list