windows客户端报的错误是这样的 ERROR: 0x80070021 The process cannot access the file because another process has locked a portion of the file.
我用谷歌搜索并点击了samba 错误报告 8481 。这与这个问题非常相似。 另一个链接也提到了类似的问题。
但是,我的 NFS 后端使用的是 OpenSolaris ZFS 文件系统提供的 NFSv4,而不是 NFSv3。
我尝试mount -t nfs4 -o nolock fileserver:/export/home /home,但它说no such option "nolock"。nolock仅对 NFSv3 有效,对 NFSv4 无效。
samba服务并挂载/home到fileserver:/export/home小智 7
从我发现的谷歌搜索来看,这是一个在 NFS 级别引起的问题,要修复它,请编辑/etc/samba/smb.cfg 并在该[global]部分添加选项:
strict locking = no
Run Code Online (Sandbox Code Playgroud)