[Samba] Smbstatus shows same share for same client several times - related to locking issues?

Gaiseric Vandal gaiseric.vandal at gmail.com
Wed Nov 20 18:26:54 UTC 2019


What version of SMB are you running ? I found that SMB2 and SMB3 on the 
server seemed to result in different behavior with win 10 and win 2008 
clients.      Although not the issue you describe.


On 11/20/19 11:57 AM, Billich Heinrich Rainer (ID SD) via samba wrote:
> Hello,
>
> we frequently face locking issues with office applications and documents on samba shares. The office applications claim that the document is locked and hence no write access is possible.  I can check on the samba server that there is no concurrent access/locking from other computers or users. It looks like the same user holds some lock and is denied to access the document because it’s locked?
>
> In the output of smbstatus I see the same share/pid/ip listed several times with different timestamps
>
> share_1 1:84889 x.y.z.156  Wed Nov 20 07:53:53 2019 CET     -            -
> share_1 1:84889 x.y.z.156  Wed Nov 20 10:26:10 2019 CET     -            -
> share_1 1:84889 x.y.z.156  Wed Nov 20 13:28:06 2019 CET     -
>
> I wonder what this describe – did the same client connect three times to the same service? Are all three connections (sessions?) active in parallel or did the first two fail/terminate on the client side and samba didn’t notice?
>
> At the same time smbstatus shows a lock with a timestamp fitting into the ‘first’ session
>
> 1:84889      19459      DENY_WRITE 0x12019f    RDWR       NONE             /fs2201/share_1   some/path/191120_RC.docx   Wed Nov 20 09:37:25 2019
>
> Later if  the same user tries to access the word-document at  10:50 Word denies write access. I wonder if the lock taken at 09:37 belongs to the first session and later at 10:50 the second session is active and samba denies write access?
>
> I will welcome any explanation or clarification.
>
> We run samba 4.9.8 with ctdb in a clustered setup (IBM spectrum scale)
>
> Kind regards,
>
> Heiner
>
>
>
>
> --
> =======================
> Heinrich Billich
> ETH Zürich
> Informatikdienste
> Tel.: +41 44 632 72 56
> heinrich.billich at id.ethz.ch
> ========================
>
>




More information about the samba mailing list