From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E3fC6-0004zl-6K for garchives@archives.gentoo.org; Fri, 12 Aug 2005 19:27:54 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7CJPJD6027286; Fri, 12 Aug 2005 19:25:19 GMT Received: from mail.pnpitalia.it (85-18-21-122.ip.fastwebnet.it [85.18.21.122]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7CJPJpV023701 for ; Fri, 12 Aug 2005 19:25:19 GMT Received: from localhost (localhost [127.0.0.1]) by mail.pnpitalia.it (Postfix) with ESMTP id 7F27D7AD6F8 for ; Fri, 12 Aug 2005 21:25:19 +0200 (CEST) Received: from mail.pnpitalia.it ([127.0.0.1]) by localhost (db [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00397-12 for ; Fri, 12 Aug 2005 21:25:19 +0200 (CEST) Received: from [192.168.4.153] (unknown [192.168.4.153]) by mail.pnpitalia.it (Postfix) with ESMTP id 17E2B7AD6F6 for ; Fri, 12 Aug 2005 21:25:19 +0200 (CEST) Message-ID: <42FCF7A2.8030600@pnpitalia.it> Date: Fri, 12 Aug 2005 21:25:22 +0200 From: Bastian Balthazar Bux User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-server@gentoo.org Reply-to: gentoo-server@lists.gentoo.org MIME-Version: 1.0 To: gentoo-server@lists.gentoo.org Subject: [gentoo-server] Samba, concurrent access from win & linux (smbmount) dbase files Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at db X-Archives-Salt: 0dc09080-42dd-4f5d-97ba-5a4274795a7d X-Archives-Hash: c49269806d1bb86e0f22d2452d1d38e5 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