Gentoo Archives: gentoo-server

From: Bastian Balthazar Bux <BastianBalthazarBux@×××××××××.it>
To: gentoo-server@l.g.o
Subject: [gentoo-server] Samba, concurrent access from win & linux (smbmount) dbase files
Date: Fri, 12 Aug 2005 19:27:54
Message-Id: 42FCF7A2.8030600@pnpitalia.it
1 Intro:
2 There is an ancient Clipper CA 5.4 application that run from ages on a
3 samba share.
4 The app has concurrent access to *.DBF *.DBT *.NTX files.
5 Now we are (trying to) migrating -some- clients and running the app on a
6 "dosemu" + "Dos 5.0" environment.
7 Concurrent access to the same data is required from both linux and win2k.
8 On linux box the share is mounted with smbmount.
9
10 The problem:
11 Lock issued from linux are invisible to win2k and vice versa.
12 When some record are opened from one client it should be impossible for
13 another to open it too. This has always worked untill now, but the
14 locking is not working now if the same record is opened at the same time
15 from both win2k and linux+dosemu+dos5.0 .
16 It continue to work in multiclient linux only environment.
17 It continue to work in multiclient w2k only environment.
18 The result is a very fast corruption of index (NTX) files and possibly
19 the data files too (DBF, DBT) .
20
21 The supplica:
22 Please help a poor overcharged admin to switch at least some clients to
23 a nice S.O.
24
25 Readings:
26 http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/locking.html
27 http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/smb.conf.5.html
28 http://listas.cipsga.org.br/pipermail/linux-pira/2004-August/001641.html
29 http://www.drouillard.ca/Tips&Tricks/Samba/Oplocks.htm
30
31 Further data:
32 Samba has been emerged with "-*" USE flags
33 =========== smb.conf ===========
34 [global]
35 security = SHARE
36 passdb backend = guest
37 guest account = root
38 unix password sync = Yes
39 max xmit = 65535
40 unix extensions = No
41 paranoid server security = No
42 socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=8192
43 preferred master = No
44 local master = No
45 domain master = No
46 ldap ssl = no
47 hide dot files = No
48 strict locking = Yes
49 level2 oplocks = No
50 dos filemode = Yes
51 oplocks = No
52 veto oplock files = /*.NTX /*.DBF /*.DBT
53 blocking locks = no
54 fake oplocks = no
55 lock spin count = 100
56 lock spin time = 18
57
58 [one]
59 comment = this is one
60 path = /mnt/one
61 read only = No
62 guest ok = Yes
63 =========== smb.conf ===========
64
65 ====== server /etc/fstab =======
66 /dev/sda6 /mnt/app xfs user 0 0
67 ====== server /etc/fstab =======
68
69 ====== server kernel cfg =======
70
71 2.6.6-rc3-mm2
72
73 CONFIG_XFS_FS=y
74 # CONFIG_XFS_RT is not set
75 # CONFIG_XFS_QUOTA is not set
76 # CONFIG_XFS_SECURITY is not set
77 # CONFIG_XFS_POSIX_ACL is not set
78 CONFIG_SMB_FS=y
79 # CONFIG_SMB_NLS_DEFAULT is not set
80 CONFIG_CIFS=y
81 ====== server kernel cfg =======
82
83 ====== client /etc/fstab =======
84 //server.local/app /mnt/gbr smbfs
85 guest,uid=1000,gid=100,ip=server.local,iocharset=utf8,codepage=cp850,ttl=10000
86 0 0
87 ====== client /etc/fstab =======
88
89 --
90 gentoo-server@g.o mailing list

Replies

Subject Author
[gentoo-server] [solved :(] Samba, concurrent access from win & linux (smbmount) dbase files Bastian Balthazar Bux <BastianBalthazarBux@×××××××××.it>