Hi, We test a software called Safekit. This software permit to have a replicated FS and can start some apps from a particular script. We use this startup script for starting SaMBa. We make this test : NODE1 : Samba not actif (SECOND) NODE2 : Samba is running (PRIM) open a file with samba and modify it make swap I try to save and no possible to save, but if I close the file and reopen it it works fine. On the log file, we have : [2007/10/17 12:25:50, 4] smbd/open.c:open_file_ntcreate(1605) calling open_file with flags=0x0 flags2=0x0 mode=0760, access_mask = 0x20089, open_access_mask = 0x20089 [2007/10/17 12:25:50, 2] smbd/open.c:open_file(391) spu opened file CORINF/cmde/CDE5021.ods read=Yes write=No (numopen=3) [2007/10/17 12:25:50, 3] smbd/oplock_linux.c:linux_set_kernel_oplock(173) linux_set_kernel_oplock: Refused oplock on file CORINF/cmde/CDE5021.ods, fd = 26, dev = 14, inode = 403381390. (Ressource temporairement non disponible) [2007/10/17 12:25:50, 5] smbd/nttrans.c:reply_ntcreate_and_X(938) reply_ntcreate_and_X: fnum = 12684, open name = CORINF/cmde/CDE5021.ods [2007/10/17 12:25:50, 5] lib/util.c:show_msg(484) [2007/10/17 12:25:50, 5] lib/util.c:show_msg(494) Anyone can explain this little problem ? Samba 3.0.26a The shared directory is accesible with a local mount of a NFS share. thanks St?phane Purnelle ----------------------------------- St?phane PURNELLE stephane.purnelle@corman.be Service Informatique Corman S.A. Tel : 00 32 087/342467
NFS precision : 127.0.0.1:/srv/vol2_For_SafeKit_Replication on /srv/vol2 type nfs (rw,proto=udp,port=5700,hard,timeo=5,retrans=6,nolock,addr=127.0.0.1) You can see that NFS no lock the file. I tried with kernel oplocks = no but the problem is the same, the message has just changed from I/O problem to access right problem. Where is the problem ? thanks St?phane Purnelle ----------------------------------- St?phane PURNELLE stephane.purnelle@corman.be Service Informatique Corman S.A. Tel : 00 32 087/342467 stephane.purnelle@corman.be Envoy? par : samba-bounces+stephane.purnelle=corman.be@lists.samba.org 17/10/2007 13:11 A samba@lists.samba.org cc Objet [Samba] problem with kernel oplock Hi, We test a software called Safekit. This software permit to have a replicated FS and can start some apps from a particular script. We use this startup script for starting SaMBa. We make this test : NODE1 : Samba not actif (SECOND) NODE2 : Samba is running (PRIM) open a file with samba and modify it make swap I try to save and no possible to save, but if I close the file and reopen it it works fine. On the log file, we have : [2007/10/17 12:25:50, 4] smbd/open.c:open_file_ntcreate(1605) calling open_file with flags=0x0 flags2=0x0 mode=0760, access_mask = 0x20089, open_access_mask = 0x20089 [2007/10/17 12:25:50, 2] smbd/open.c:open_file(391) spu opened file CORINF/cmde/CDE5021.ods read=Yes write=No (numopen=3) [2007/10/17 12:25:50, 3] smbd/oplock_linux.c:linux_set_kernel_oplock(173) linux_set_kernel_oplock: Refused oplock on file CORINF/cmde/CDE5021.ods, fd = 26, dev = 14, inode = 403381390. (Ressource temporairement non disponible) [2007/10/17 12:25:50, 5] smbd/nttrans.c:reply_ntcreate_and_X(938) reply_ntcreate_and_X: fnum = 12684, open name = CORINF/cmde/CDE5021.ods [2007/10/17 12:25:50, 5] lib/util.c:show_msg(484) [2007/10/17 12:25:50, 5] lib/util.c:show_msg(494) Anyone can explain this little problem ? Samba 3.0.26a The shared directory is accesible with a local mount of a NFS share. thanks St?phane Purnelle ----------------------------------- St?phane PURNELLE stephane.purnelle@corman.be Service Informatique Corman S.A. Tel : 00 32 087/342467 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
have you tried both; oplocks = no level2 oplocks = no Mark On Fri, Oct 19, 2007 at 10:49:10AM +0200, stephane.purnelle@corman.be wrote:> NFS precision : > > 127.0.0.1:/srv/vol2_For_SafeKit_Replication on /srv/vol2 type nfs > (rw,proto=udp,port=5700,hard,timeo=5,retrans=6,nolock,addr=127.0.0.1) > > You can see that NFS no lock the file. > > I tried with kernel oplocks = no but the problem is the same, the message > has just changed from I/O problem to access right problem. > > Where is the problem ? > > thanks > > St?phane Purnelle > > ----------------------------------- > St?phane PURNELLE stephane.purnelle@corman.be > Service Informatique Corman S.A. Tel : 00 32 087/342467 > > > > stephane.purnelle@corman.be > Envoy? par : samba-bounces+stephane.purnelle=corman.be@lists.samba.org > 17/10/2007 13:11 > > A > samba@lists.samba.org > cc > > Objet > [Samba] problem with kernel oplock > > > > > > > Hi, > > We test a software called Safekit. > This software permit to have a replicated FS and can start some apps from > a particular script. > We use this startup script for starting SaMBa. > > We make this test : > > NODE1 : Samba not actif (SECOND) > NODE2 : Samba is running (PRIM) > > open a file with samba and modify it > make swap > I try to save and no possible to save, but if I close the file and reopen > it it works fine. > > On the log file, we have : > > [2007/10/17 12:25:50, 4] smbd/open.c:open_file_ntcreate(1605) > calling open_file with flags=0x0 flags2=0x0 mode=0760, access_mask = > 0x20089, open_access_mask = 0x20089 > [2007/10/17 12:25:50, 2] smbd/open.c:open_file(391) > spu opened file CORINF/cmde/CDE5021.ods read=Yes write=No (numopen=3) > [2007/10/17 12:25:50, 3] smbd/oplock_linux.c:linux_set_kernel_oplock(173) > linux_set_kernel_oplock: Refused oplock on file CORINF/cmde/CDE5021.ods, > > fd = 26, dev = 14, inode = 403381390. (Ressource temporairement non > disponible) > [2007/10/17 12:25:50, 5] smbd/nttrans.c:reply_ntcreate_and_X(938) > reply_ntcreate_and_X: fnum = 12684, open name = CORINF/cmde/CDE5021.ods > [2007/10/17 12:25:50, 5] lib/util.c:show_msg(484) > [2007/10/17 12:25:50, 5] lib/util.c:show_msg(494) > > Anyone can explain this little problem ? > > Samba 3.0.26a > The shared directory is accesible with a local mount of a NFS share. > > thanks > > St?phane Purnelle > > ----------------------------------- > St?phane PURNELLE stephane.purnelle@corman.be > Service Informatique Corman S.A. Tel : 00 32 087/342467 > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba
Reasonably Related Threads
- Can't remember name of command to temporarily disable a share
- linux_set_kernel_oplock: Refused oplock on file. F_SETLEASE semantic problem ?
- File locking problem
- Problems related to error status_file_locking_conflict
- Problem After Upgrade - NT_STATUS_FILE_IS_A_DIRECTORY