跳转到主内容

文件锁定如何在 NFS 和 SMB 协议之间工作?

Views:
41
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

适用场景

  • NFS
  • CIFS/SMB
  • ONTAP

问题解答

  • 如果客户端是 NFS 客户端,则建议锁定;如果客户端是 SMB 客户端,则必须锁定。
  • 建议锁定是指操作系统跟踪哪些文件已被哪个进程锁定,但不会阻止某个进程写入被另一个进程锁定的文件。这意味着,如果某个进程具有足够的权限,则该进程可以忽略建议锁定。
  • 由于 NFS 和 SMB 文件锁定之间的差异, NFS 客户端可能无法访问先前由 SMB 应用程序打开的文件。

追加信息

有关 NFS 客户端尝试访问由 SMB 应用程序锁定的文件时发生的更多情况,请参见此知识库

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.