[Samba] Filesystem Locking or lack of locking issues

Tory M Blue tmblue at pacbell.net
Sun Oct 3 03:09:13 GMT 2004


Good Day,

I'm running into some issues and wondered if there are a few of you that can
assist. Or please let me know if this is better off in a Java forum (but
figure the Samba crew knows a bit more about filesystems then the java team
:)

Information prior to question/concern:

Samba Ver: Version 3.0.6
OS: Linux sc8-a7-lri4.rsc01.net 2.4.20-30.9smp #1 SMP Wed Feb 4 20:36:46 EST
2004 i686 i686 i386 GNU/Linux
Java: j2sdk1.4.2_03

Using smbmount only. Accessing a Network Appliance share (NAS) from multiple
Linux boxes. Running into issues with file locking. We are doing this as we
migrate away from MS and to Linux, however we need Case insenseitivity in
the short term (will end up going longer then I like), but thus the need for
some type of SMB/CIFS Filesystem.

We are using "java.nio.channels.FileLock"

We are seeing locks not honored and also lots of  java.io.IOException:
Resource deadlock avoided. We see this in both NFS and SMB FS mounts.
Locking is just not working correctly

Oct  2 16:29:20 sc8-a7-lri4 kernel: smb_readpage_sync: launch/AllServers.xml
open failed, error=-2 Oct  2 16:29:55 sc8-a7-lri4 kernel: smb_open:
Clickthrough-4.status/AllServers.xml open failed, result=-2 Oct  2 16:29:55
sc8-a7-lri4 kernel: smb_open: Clickthrough-4.status/AllServers.xml open
failed, result=-2 Oct  2 16:29:55 sc8-a7-lri4 kernel: smb_readpage_sync:
Clickthrough-4.status/AllServers.xml open failed, error=-2 Oct  2 16:29:56
sc8-a7-lri4 kernel: smb_open: Clickthrough-4.status/AllServers.xml open
failed, result=-2 Oct  2 16:29:56 sc8-a7-lri4 kernel: smb_open:
Clickthrough-4.status/AllServers.xml open failed, result=-2 Oct  2 16:29:56
sc8-a7-lri4 kernel: smb_readpage_sync: Clickthrough-4.status/AllServers.xml
open failed, error=-2 Oct  2 16:29:56 sc8-a7-lri4 kernel: smb_open:
Clickthrough-4.status/AllServers.xml open failed, result=-2 Oct  2 16:29:56
sc8-a7-lri4 kernel: smb_open: Clickthrough-4.status/AllServers.xml open
failed, result=-2 Oct  2 16:29:56 sc8-a7-lri4 kernel: smb_readpage_sync:
Clickthrough-4.status/AllServers.xml open failed, error=-2

Everything works fine on the local FS, it's just failing over a NFS and SMB
share. But again the SMB/CIFS share is critical and I'll be forced to
continue down the windows path, if we can't figure this out.

Thanks for any insight you can provide

Tory M Blue
tmblue at pacbell.net



More information about the samba mailing list