We have also discovered that Samba sessions are disconnecting even though
the user is not accessing the NFS mounted directory. This is resulting in
lots of "dormant" samba processes, and Outlook etc complaining that
another
machine has the file locked.
When the NFS directory is removed, the "dormant" processes
disappeared.
David
> -----Original Message-----
> From: ALLEN, David
> Sent: 13 December 2004 10:47
> To: 'samba@lists.samba.org'
> Subject: NFS mount problem
>
> Hi,
>
> We have a major problem using Samba to access NFS mounted directories. The
> directory in question is on a Snap server running OS 3, and Samba is
> running on a new Sun V250 running Solaris 9; the NFS directory is mounted
> using udp.
>
> The problems occur when trying to load a file, which causes the samba
> process to crash. Another process starts automatically, crashes and so
> forth.
>
> However, the exact same configuration, NFS mount, Samba version etc works
> fine on an old Sun Utlra 10, also running Solaris 9! Also, everything
> works fine at the Unix level on both machines.
>
> All oplocks options are set on in smb.conf, and a copys of the log file
> when I try to open the file are included below, with log level set at 2
> and 3.
>
> Thanks in advance.
>
> David
>
> Log level 3:
>
>
> UNIX uid 15001 is UNIX user shpguest, and will be vuid 102
> [2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
> Transaction 1372 of length 86
> [2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
> switch message SMBtconX (pid 28589) conn 0x0
> [2004/12/13 10:33:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
> setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
> [2004/12/13 10:33:55, 3] smbd/service.c:make_connection_snum(472)
> Connect path is '/tmp' for service [IPC$]
> [2004/12/13 10:33:55, 3] lib/util_seaccess.c:se_access_check(251)
> [2004/12/13 10:33:55, 3] lib/util_seaccess.c:se_access_check(252)
> se_access_check: user sid is
> S-1-5-21-1460809338-1000444070-3279871270-501
> se_access_check: also S-1-5-21-1460809338-1000444070-3279871270-514
> se_access_check: also S-1-1-0
> se_access_check: also S-1-5-2
> se_access_check: also S-1-5-32-546
> se_access_check: also S-1-5-21-1460809338-1000444070-3279871270-5427
> [2004/12/13 10:33:55, 3] smbd/vfs.c:vfs_init_default(203)
> Initialising default vfs hooks
> [2004/12/13 10:33:55, 3] lib/util_seaccess.c:se_access_check(251)
> [2004/12/13 10:33:55, 3] lib/util_seaccess.c:se_access_check(252)
> se_access_check: user sid is
> S-1-5-21-1460809338-1000444070-3279871270-501
> se_access_check: also S-1-5-21-1460809338-1000444070-3279871270-514
> se_access_check: also S-1-1-0
> se_access_check: also S-1-5-2
> se_access_check: also S-1-5-32-546
> se_access_check: also S-1-5-21-1460809338-1000444070-3279871270-5427
> [2004/12/13 10:33:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
> setting sec ctx (15001, 2213) - sec_ctx_stack_ndx = 0
> [2004/12/13 10:33:55, 3] smbd/service.c:make_connection_snum(648)
> duk652-008167 (6.52.14.33) connect to service IPC$ initially as user
> shpguest
> (uid=15001, gid=2213) (pid 28589)
> [2004/12/13 10:33:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
> setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
> [2004/12/13 10:33:55, 3] smbd/reply.c:reply_tcon_and_X(456)
> tconX service=IPC$
> [2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
> Transaction 1373 of length 90
> [2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
> switch message SMBntcreateX (pid 28589) conn 0x2d7ee8
> [2004/12/13 10:33:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
> setting sec ctx (305, 2200) - sec_ctx_stack_ndx = 0
> [2004/12/13 10:33:55, 3] smbd/dosmode.c:unix_mode(111)
> unix_mode(.) returning 0664
> [2004/12/13 10:33:55, 3] smbd/error.c:error_packet(105)
> error string = Is a directory
> [2004/12/13 10:33:55, 3] smbd/error.c:error_packet(129)
> error packet at smbd/nttrans.c(867) cmd=162 (SMBntcreateX)
> NT_STATUS_FILE_IS_A
> _DIRECTORY
> [2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
> Transaction 1374 of length 152
> [2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
> switch message SMBntcreateX (pid 28589) conn 0x2d7ee8
> [2004/12/13 10:33:55, 3] smbd/dosmode.c:unix_mode(111)
> unix_mode(do/publications/temp/Thumbs.db) returning 0664
> [2004/12/13 10:33:55, 3] smbd/open.c:open_file(178)
> Error opening file do/publications/temp/Thumbs.db (No such file or
> directory)
> (local_flags=0) (flags=0)
> [2004/12/13 10:33:55, 3] smbd/error.c:error_packet(105)
> error string = No such file or directory
> [2004/12/13 10:33:55, 3] smbd/error.c:error_packet(129)
> error packet at smbd/trans2.c(2240) cmd=162 (SMBntcreateX)
> NT_STATUS_OBJECT_NA
> ME_NOT_FOUND
> [2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
> Transaction 1375 of length 152
> [2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
> switch message SMBntcreateX (pid 28589) conn 0x2d7ee8
> [2004/12/13 10:33:55, 3] smbd/dosmode.c:unix_mode(111)
> unix_mode(do/publications/temp/Thumbs.db) returning 0664
> [2004/12/13 10:33:55, 3] smbd/open.c:open_file(178)
> Error opening file do/publications/temp/Thumbs.db (No such file or
> directory)
> (local_flags=0) (flags=0)
> [2004/12/13 10:33:55, 3] smbd/error.c:error_packet(105)
> error string = No such file or directory
> [2004/12/13 10:33:55, 3] smbd/error.c:error_packet(129)
> error packet at smbd/trans2.c(2240) cmd=162 (SMBntcreateX)
> NT_STATUS_OBJECT_NA
> ME_NOT_FOUND
> [2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
> Transaction 1376 of length 158
> [2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
> switch message SMBntcreateX (pid 28589) conn 0x2d7ee8
> [2004/12/13 10:33:55, 3] smbd/dosmode.c:unix_mode(111)
> unix_mode(do/publications/temp/P1010002.JPG) returning 0664
> [2004/12/13 10:33:55, 2] smbd/open.c:open_file(245)
> AllenD opened file do/publications/temp/P1010002.JPG read=Yes write=No
> (numope
> n=2)
> [2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
> Transaction 1377 of length 76
> [2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
> switch message SMBtrans2 (pid 28589) conn 0x2d7ee8
> [2004/12/13 10:33:55, 3] smbd/trans2.c:call_trans2qfilepathinfo(2291)
> call_trans2qfilepathinfo: TRANSACT2_QFILEINFO: level = 1006
> [2004/12/13 10:33:55, 3] smbd/trans2.c:call_trans2qfilepathinfo(2380)
> call_trans2qfilepathinfo do/publications/temp/P1010002.JPG (fnum = 9951)
> level
> =1006 call=7 total_data=0
> [2004/12/13 10:33:55, 3] smbd/process.c:process_smb(1092)
> Transaction 1378 of length 63
> [2004/12/13 10:33:55, 3] smbd/process.c:switch_message(887)
> switch message SMBreadX (pid 28589) conn 0x2d7ee8
>
> Log level 2:
>
>
> [2004/12/13 10:02:37, 2] smbd/server.c:exit_server(571)
> Closing connections
> [2004/12/13 10:02:37, 2] smbd/server.c:exit_server(571)
> Closing connections
> [2004/12/13 10:02:37, 2] smbd/reply.c:reply_special(235)
> netbios connect: name1=A652UK08 name2=DUK652-008167
> [2004/12/13 10:02:37, 2] smbd/reply.c:reply_special(242)
> netbios connect: local=a652uk08 remote=duk652-008167, name type = 0
> [2004/12/13 10:02:37, 2] smbd/sesssetup.c:setup_new_vc_session(608)
> setup_new_vc_session: New VC == 0, if NT4.x compatible we would close
> all old
> resources.
> [2004/12/13 10:02:38, 2] smbd/sesssetup.c:setup_new_vc_session(608)
> setup_new_vc_session: New VC == 0, if NT4.x compatible we would close
> all old
> resources.
> [2004/12/13 10:02:38, 2] auth/auth.c:check_ntlm_password(305)
> check_ntlm_password: authentication for user [AllenD] -> [AllenD]
->
> [allend]
> succeeded
> [2004/12/13 10:02:38, 1] smbd/service.c:make_connection_snum(648)
> duk652-008167 (6.52.14.33) connect to service engineering initially as
> user al
> lend (uid=305, gid=2200) (pid 27715)
> [2004/12/13 10:03:10, 0] smbd/oplock.c:request_oplock_break(1055)
> request_oplock_break: no response received to oplock break request to
> pid 2764
> 9 on port 61958 for dev = 42c0009, inode = 323084507, file_id = 412
> [2004/12/13 10:03:10, 0] smbd/open.c:open_mode_check(734)
> open_mode_check: exlusive oplock left by process 27649 after break ! For
> file
> do/publications/temp/P1010003.JPG, dev = 42c0009, inode = 323084507.
> Deleting it
> to continue...
> [2004/12/13 10:03:10, 0] smbd/open.c:open_mode_check(738)
> open_mode_check: Existent process 27649 left active oplock.
> [2004/12/13 10:03:10, 2] smbd/open.c:open_file(245)
> AllenD opened file do/publications/temp/P1010003.JPG read=Yes write=No
> (numope
> n=1)
> [2004/12/13 10:03:26, 2] smbd/server.c:exit_server(571)
> Closing connections
> [2004/12/13 10:03:26, 2] smbd/server.c:exit_server(571)
> Closing connections
> [2004/12/13 10:03:56, 2] smbd/server.c:exit_server(571)
> Closing connections
> [2004/12/13 10:03:56, 2] smbd/server.c:exit_server(571)
> Closing connections