Georg.Biberger at partner.bmw.de
2020-Jun-30 12:37 UTC
[Samba] Issues with FLOCK on NFS Share
Hello, We are using Samba 4.10.16 as a readonly file server on a linux box with SLES 12. All is working fine with our NAS NFS Shares. We are now trying to integrate new NFS Shares from an archive provider. We have some problems with samba not responding, when accessing files on these archive NFS shares. We have done some Samba-Debugging and found out, that the call to flock in source3/lib/system.c (kernel_flock) do not return and is blocking samba! Is it necessary to use file locking when using Samba as fileserver for readonly access with NFS shares? Can I disable locking with #define HAVE_KERNEL_SHARE_MODES 0 in config.h. What are the consequences? Kind regards Georg #GernPerDu #CallMeByMyFirstName Biberger und Partner Kobellstra?e 1 80336 M?nchen -------------------------------------------------------------------------------------------------------- Biberger und Partner Diplom-Informatiker Partnerschaftsgesellschaft Partner: Anne Feldmeier, Georg Biberger Sitz und Registergericht: M?nchen PR 480 Umsatzsteuer-ID: DE206858618 -------------------------------------------------------------------------------------------------------- Erreichbarkeit bei der BMW Group: Tel.: +49 89 382-49629 Mobil: +49 172 7719871 E-Mail: Georg.Biberger at partner.bmw.de<mailto:Georg.Biberger at partner.bmw.de>
Howdy! Am 6/30/20 um 2:37 PM schrieb Georg.Biberger--- via samba:> We are using Samba 4.10.16 as a readonly file server on a linux box with SLES 12. All is working fine with our NAS NFS Shares. We are now trying to integrate new NFS Shares from an archive provider. We have some problems with samba not responding, when accessing files on these archive NFS shares. > We have done some Samba-Debugging and found out, that the call to flock in source3/lib/system.c (kernel_flock) do not return and is blocking samba!kernel oplocks = no> Is it necessary to use file locking when using Samba as fileserver for readonly access with NFS shares?Probably not. -slow -- Ralph Boehme, Samba Team https://samba.org/ Samba Developer, SerNet GmbH https://sernet.de/en/samba/ GPG-Fingerprint FAE2C6088A24252051C559E4AA1E9B7126399E46 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20200630/b558cb6c/signature.sig>
On 30/06/2020 14:55, Ralph Boehme via samba wrote:> Howdy! > > Am 6/30/20 um 2:37 PM schrieb Georg.Biberger--- via samba: >> We are using Samba 4.10.16 as a readonly file server on a linux box with SLES 12. All is working fine with our NAS NFS Shares. We are now trying to integrate new NFS Shares from an archive provider. We have some problems with samba not responding, when accessing files on these archive NFS shares. >> We have done some Samba-Debugging and found out, that the call to flock in source3/lib/system.c (kernel_flock) do not return and is blocking samba! > kernel oplocks = noOnly problem with that, it is the default setting :-( Can we see your smb.conf ? Rowland