Ron Bookman
2005-Jan-12 22:05 UTC
[Samba] Shares disconnect on XP when Offline Files enabled after migration from v2.x to v3.0.7
Issue: Three WinXP Pro boxes using Offline Files disconnect from all Samba shares when a user either performs a synch or accesses a file on the share with offline files enabled. About half the time, being able to reconnect for any length of time requires a reboot of the WinXP machines. Disabling the Offline Files in Windows alleviates the problem. Background and Network Environment: I recently completed a migration from an old Linux box running Samba 2.x to a new one running RH ES3 and Samba 3.0.7-1.3E.1. User PCs are about 10 Win98SE PCs and about 12 WinXP (with SP2) PCs. There were no problems using the Offline Files using the old Samba 2.x server. Migrating the shares was done in 2 stages. The first stage was migrating a single share on 8 WinXP and 2 Win98 machines. Additionally, for my own PC, I also migrated my home directory, which has Offline Files enabled. All went well and there were no problems for 2 weeks. Two of the XP PCs I'm currently having trouble with were in this group, but they had no problems until the next stage of the migration. Stage 2 was migrating the rest of the shares, which included the users home directories. The XP ?My Documents? folder is redirected to a folder in the user?s Linux home directory, and Offline Files enabled. Specifically: Linux home directory = /SambaSharesB/%username% Mapped Drive on XP = H: = \\F2\homes XP ?My Documents? icon redirected to H:\documents Offline Files enabled for ?My Documents? Of the 12 XP PCs migrated, 9 work flawlessly but 3 will disconnect all shares from F2. A user log file snippet and the contents of my smb.conf file follow. The following log snippet (log level = 2) shows an Excel file being opened and closed several times in very rapid succession then his home share (service: dray) being authenticated and closed a few times, then all shares. New PIDs were even generated. I found the following entry interesting: [2005/01/10 17:31:21, 2] smbd/service.c:make_connection(752) [homes] share not available for this user because it was not found or created at session setup time Anyway, here are the contents: ----SNIP---- [2005/01/10 17:31:00, 2] smbd/open.c:open_file(245) dray opened file documents/Sold Loan Report Dec 04.xls read=No write=Yes (numopen=1) [2005/01/10 17:31:00, 2] smbd/close.c:close_normal_file(262) dray closed file documents/Sold Loan Report Dec 04.xls (numopen=0) [2005/01/10 17:31:00, 2] smbd/dosmode.c:unix_mode(60) unix_mode(documents/Sold Loan Report Dec 04.xls) inheriting from documents [2005/01/10 17:31:00, 2] smbd/dosmode.c:unix_mode(68) unix_mode(documents/Sold Loan Report Dec 04.xls) inherit mode 40775 [2005/01/10 17:31:00, 2] smbd/open.c:open_file(245) dray opened file documents/Sold Loan Report Dec 04.xls read=Yes write=No (numopen=1) [2005/01/10 17:31:00, 2] smbd/dosmode.c:unix_mode(60) unix_mode(documents/Sold Loan Report Dec 04.xls) inheriting from documents [2005/01/10 17:31:00, 2] smbd/dosmode.c:unix_mode(68) unix_mode(documents/Sold Loan Report Dec 04.xls) inherit mode 40775 [2005/01/10 17:31:00, 2] smbd/close.c:close_normal_file(262) dray closed file documents/Sold Loan Report Dec 04.xls (numopen=0) [2005/01/10 17:31:00, 1] smbd/service.c:close_cnum(837) dh3pcm21 (192.168.6.55) closed connection to service dray [2005/01/10 17:31:08, 2] smbd/server.c:exit_server(571) Closing connections [2005/01/10 17:31:08, 2] auth/auth.c:check_ntlm_password(305) check_ntlm_password: authentication for user [dray] -> [dray] -> [dray] succeeded [2005/01/10 17:31:08, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:08, 1] smbd/service.c:make_connection_snum(648) dh3pcm21 (192.168.6.55) connect to service dray initially as user dray (uid=502, gid=502) (pid 15053) [2005/01/10 17:31:08, 1] smbd/service.c:close_cnum(837) dh3pcm21 (192.168.6.55) closed connection to service dray [2005/01/10 17:31:16, 2] smbd/server.c:exit_server(571) Closing connections [2005/01/10 17:31:16, 2] auth/auth.c:check_ntlm_password(305) check_ntlm_password: authentication for user [dray] -> [dray] -> [dray] succeeded [2005/01/10 17:31:16, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:16, 1] smbd/service.c:make_connection_snum(648) dh3pcm21 (192.168.6.55) connect to service dray initially as user dray (uid=502, gid=502) (pid 15054) [2005/01/10 17:31:16, 2] smbd/server.c:exit_server(571) Closing connections [2005/01/10 17:31:16, 1] smbd/service.c:close_cnum(837) dh3pcm21 (192.168.6.55) closed connection to service dray [2005/01/10 17:31:16, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:16, 2] auth/auth.c:check_ntlm_password(305) check_ntlm_password: authentication for user [dray] -> [dray] -> [dray] succeeded [2005/01/10 17:31:16, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:16, 1] smbd/service.c:make_connection_snum(648) dh3pcm21 (192.168.6.55) connect to service dray initially as user dray (uid=502, gid=502) (pid 15055) [2005/01/10 17:31:16, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:16, 1] smbd/service.c:make_connection_snum(648) dh3pcm21 (192.168.6.55) connect to service public initially as user dray (uid=502, gid=502) (pid 15055) [2005/01/10 17:31:16, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:16, 1] smbd/service.c:make_connection_snum(648) dh3pcm21 (192.168.6.55) connect to service resumes initially as user dray (uid=502, gid=523) (pid 15055) [2005/01/10 17:31:16, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:16, 1] smbd/service.c:make_connection_snum(648) dh3pcm21 (192.168.6.55) connect to service point initially as user dray (uid=502, gid=100) (pid 15055) [2005/01/10 17:31:16, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:16, 1] smbd/service.c:make_connection_snum(648) dh3pcm21 (192.168.6.55) connect to service datatrac initially as user dray (uid=502, gid=100) (pid 15055) [2005/01/10 17:31:21, 2] smbd/service.c:make_connection(752) [homes] share not available for this user because it was not found or created at session setup time [2005/01/10 17:31:45, 2] smbd/server.c:exit_server(571) Closing connections [2005/01/10 17:31:45, 1] smbd/service.c:close_cnum(837) dh3pcm21 (192.168.6.55) closed connection to service datatrac [2005/01/10 17:31:45, 1] smbd/service.c:close_cnum(837) dh3pcm21 (192.168.6.55) closed connection to service point [2005/01/10 17:31:45, 1] smbd/service.c:close_cnum(837) dh3pcm21 (192.168.6.55) closed connection to service resumes [2005/01/10 17:31:45, 1] smbd/service.c:close_cnum(837) dh3pcm21 (192.168.6.55) closed connection to service public [2005/01/10 17:31:45, 1] smbd/service.c:close_cnum(837) dh3pcm21 (192.168.6.55) closed connection to service dray [2005/01/10 17:31:45, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:45, 2] smbd/server.c:exit_server(571) Closing connections [2005/01/10 17:31:45, 2] auth/auth.c:check_ntlm_password(305) check_ntlm_password: authentication for user [dray] -> [dray] -> [dray] succeeded [2005/01/10 17:31:45, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:45, 1] smbd/service.c:make_connection_snum(648) dh3pcm21 (192.168.6.55) connect to service dray initially as user dray (uid=502, gid=502) (pid 15057) [2005/01/10 17:31:45, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:45, 2] smbd/server.c:exit_server(571) Closing connections [2005/01/10 17:31:45, 1] smbd/service.c:close_cnum(837) dh3pcm21 (192.168.6.55) closed connection to service dray [2005/01/10 17:31:45, 2] auth/auth.c:check_ntlm_password(305) check_ntlm_password: authentication for user [dray] -> [dray] -> [dray] succeeded [2005/01/10 17:31:45, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:45, 1] smbd/service.c:make_connection_snum(648) dh3pcm21 (192.168.6.55) connect to service dray initially as user dray (uid=502, gid=502) (pid 15058) [2005/01/10 17:31:52, 2] lib/access.c:check_access(324) Allowed connection from (192.168.6.55) [2005/01/10 17:31:52, 2] smbd/server.c:exit_server(571) Closing connections -------SNIP------- Contents of smb.conf: [global] workgroup = fcmc ;password server = BDC1, P1, * guest ok = yes security = user server string = F2 hosts allow = 192.168.6. 127. wins server = 192.168.6.5 dns proxy = no printcap name = /etc/printcap load printers = yes log file = /var/log/samba/%m.log max log size = 50 log level = 2 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 #======== Share Definitions ======= [printers] comment = All Printers path = /var/spool/samba browseable = no printable = yes guest ok = yes create mask = 0770 [homes] comment = Home Directories browseable = no writeable = yes inherit permissions = yes [etc] guest ok = yes path = /etc [datatrac] comment = DataTrac path = /SambaSharesA/datatrac browseable = yes writeable = yes guest ok = yes create mask = 0770 force create mode = 0770 valid users = @users write list = @users force group = users [SambaSharesB] comment = UserHomes path = /SambaSharesB browseable = yes writeable = yes guest ok = yes valid users = @root write list = @root force group = root [SambaSharesA] comment = AppFolders path = /SambaSharesA browseable = yes writeable = yes guest ok = yes valid users = @root write list = @root force group = root [goldmine] comment = Goldmine path = /SambaSharesA/Goldmine browseable = yes writeable = yes guest ok = yes create mask = 0770 force create mode = 0770 valid users = @users write list = @users force group = users [resumes] comment = Resumes path = /SambaSharesA/Resumes browseable = yes writeable = yes guest ok = yes create mask = 0770 force create mode = 0770 valid users = @resumes write list = @resumes force group = resumes [point] comment = Point path = /SambaSharesA/Point browseable = yes writeable = yes guest ok = yes create mask = 0770 force create mode = 0770 valid users = @users write list = @users force group = users [public] comment = Public path = /SambaSharesA/Public browseable = yes writeable = yes guest ok = yes create mask = 0770 force create mode = 0770 valid users = @users write list = @users inherit permissions = yes [access] comment = Access path = /SambaSharesA/Access browseable = yes writeable = yes guest ok = yes create mask = 0770 force create mode = 0770 valid users = @users write list = @users force group = users [archives] comment = Archives path = /SambaSharesA/Archives browseable = yes writeable = yes create mask = 0770 force create mode = 0770 valid users = @mgmt write list = @mgmt force group = mgmt [mrg] comment = MRG path = /SambaSharesA/MRG browseable = yes writeable = yes create mask = 0770 force create mode = 0770 valid users = @closing write list = @closing force group = closing