Hello list, we are using a samba share as a company network drive for storage of MS Office documents. When a user saves document to this drive, it gets following lock: "4273???????? 3014307??? DENY_ALL?? 0x1f019f??? RDWR LEASE(RWH)?????? /mnt/datastore/samba/department IT/Lukas-test/test.docx?? Tue Aug 16 12:57:39 2022" This lock however is hold for about 2 minutes _after_ user closes his Office, so anyone (even the "owner" of the lock) is not able to open the document until the "DENY_ALL" lock expires. Is there a possibility to remove the lock when the user disconnects? Or lower the lock "timeout" ? Or take the risk of corrupted documents (we have backups) and disable the locking mechanism completely? I have tried following parameters, but without any change, sadly :( ??????? reset on zero vc = Yes ??????? oplocks = No ??????? level2 oplocks = No ??????? strict locking = No ??????? locking = No ??????? share modes = No ??????? blocking locks = No ??????? kernel oplocks = No ??????? fake oplocks = Yes ??????? durable handles = No This is on Samba 4.9.5+dfsg-5+deb10u3 . Any clues, please? -- ? Thanks, Luk?? Krejza
On Thu, 2022-08-18 at 15:56 +0200, Luk?? Krejza via samba wrote:> Hello list, > > we are using a samba share as a company network drive for storage of > MS > Office documents. When a user saves document to this drive, it gets > following lock: > > "4273 3014307 DENY_ALL 0x1f019f RDWR > LEASE(RWH) > /mnt/datastore/samba/department IT/Lukas-test/test.docx Tue Aug 16 > 12:57:39 2022" > > > This lock however is hold for about 2 minutes _after_ user closes > his > Office, so anyone (even the "owner" of the lock) is not able to open > the > document until the "DENY_ALL" lock expires. > > Is there a possibility to remove the lock when the user disconnects? > Or > lower the lock "timeout" ? Or take the risk of corrupted documents > (we > have backups) and disable the locking mechanism completely? I have > tried > following parameters, but without any change, sadly :( > > reset on zero vc = Yes > oplocks = No > level2 oplocks = No > strict locking = No > locking = No > share modes = No > blocking locks = No > kernel oplocks = No > fake oplocks = Yes > durable handles = No > > This is on Samba 4.9.5+dfsg-5+deb10u3 . > > Any clues, please?Upgrade to bullseye and use Samba from backports, this will get you 4.16.4 You may have a valid problem, but it may have been fixed in a later version and, as 4.9.x is EOL from the Samba point of view, you have no chance of getting it fixed on your version. Rowland
On 8/18/22 15:56, Luk?? Krejza via samba wrote:> we are using a samba share as a company network drive for storage of MS > Office documents. When a user saves document to this drive, it gets > following lock: > > "4273???????? 3014307??? DENY_ALL?? 0x1f019f??? RDWR LEASE(RWH) > /mnt/datastore/samba/department IT/Lukas-test/test.docx?? Tue Aug 16 > 12:57:39 2022"this lock is tied to a lease which means the client is caching data and the filehandle including associated locks. Any other client trying to open document will trigger a lease break and the client holding the lease should then close the filehandle if the application has indeed closed the file. Cheers! -slow -- Ralph Boehme, Samba Team https://samba.org/ SerNet Samba Team Lead https://sernet.de/en/team-samba -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20220818/00ac1efa/OpenPGP_signature.sig>