public inbox for gentoo-server@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-server] Samba, concurrent access from win & linux (smbmount) dbase files
@ 2005-08-12 19:25 Bastian Balthazar Bux
  2005-08-14  0:22 ` [gentoo-server] [solved :(] " Bastian Balthazar Bux
  0 siblings, 1 reply; 4+ messages in thread
From: Bastian Balthazar Bux @ 2005-08-12 19:25 UTC (permalink / raw
  To: gentoo-server

Intro:
There is an ancient Clipper CA 5.4 application that run from ages on a
samba share.
The app has concurrent access to  *.DBF *.DBT *.NTX files.
Now we are (trying to) migrating -some- clients and running the app on a
"dosemu" + "Dos 5.0" environment.
Concurrent access to the same data is required from both linux and win2k.
On linux box the share is mounted with smbmount.

The problem:
Lock issued from linux are invisible to win2k and vice versa.
When some record are opened from one client it should be impossible for
another to open it too. This has always worked untill now, but the
locking is not working now if the same record is opened at the same time
from both win2k and linux+dosemu+dos5.0 .
It continue to work in multiclient linux only environment.
It continue to work in multiclient w2k only environment.
The result is a very fast corruption of index (NTX) files and possibly
the data files too (DBF, DBT) .

The supplica:
Please help a poor overcharged admin to switch at least some clients to
a nice S.O.

Readings:
http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/locking.html
http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/smb.conf.5.html
http://listas.cipsga.org.br/pipermail/linux-pira/2004-August/001641.html
http://www.drouillard.ca/Tips&Tricks/Samba/Oplocks.htm

Further data:
Samba has been emerged with "-*" USE flags
=========== smb.conf ===========
[global]
        security = SHARE
        passdb backend = guest
        guest account = root
        unix password sync = Yes
        max xmit = 65535
        unix extensions = No
        paranoid server security = No
        socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=8192
        preferred master = No
        local master = No
        domain master = No
        ldap ssl = no
        hide dot files = No
        strict locking = Yes
        level2 oplocks = No
        dos filemode = Yes
        oplocks = No
        veto oplock files = /*.NTX /*.DBF /*.DBT
        blocking locks = no
        fake oplocks = no
        lock spin count = 100
        lock spin time = 18

[one]
        comment = this is one
        path = /mnt/one
        read only = No
        guest ok = Yes
=========== smb.conf ===========

====== server /etc/fstab =======
/dev/sda6 /mnt/app xfs user 0 0
====== server /etc/fstab =======

====== server kernel cfg =======

2.6.6-rc3-mm2

CONFIG_XFS_FS=y
# CONFIG_XFS_RT is not set
# CONFIG_XFS_QUOTA is not set
# CONFIG_XFS_SECURITY is not set
# CONFIG_XFS_POSIX_ACL is not set
CONFIG_SMB_FS=y
# CONFIG_SMB_NLS_DEFAULT is not set
CONFIG_CIFS=y
====== server kernel cfg =======

====== client /etc/fstab =======
//server.local/app  /mnt/gbr  smbfs 
guest,uid=1000,gid=100,ip=server.local,iocharset=utf8,codepage=cp850,ttl=10000 
0 0
====== client /etc/fstab =======

-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-14  2:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-12 19:25 [gentoo-server] Samba, concurrent access from win & linux (smbmount) dbase files Bastian Balthazar Bux
2005-08-14  0:22 ` [gentoo-server] [solved :(] " Bastian Balthazar Bux
2005-08-14  1:03   ` Anthony Gorecki
2005-08-14  2:46     ` Bastian Balthazar Bux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox