跳转到主内容

文件锁定对 NFSv3 和 CIFS 客户端有何影响?

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

 

适用场景

  • ONTAP 9
  • Data ONTAP 8 7-模式

问题解答

注意:还有更复杂的场景,例如多协议访问(CIFS 和 NFS),这里不做介绍。

  • 不会强制实施网络文件系统(Network File System、NFS)客户端设置的锁定
    • 根据客户端是否检查并观察锁定、客户端可能会获得对锁定文件或锁定文件的部分内容的访问权限
    • 这只是使用NLM的适用场景NFSv3、但 NFSv4具有强制锁定基础架构
    • 字节范围锁始终是建议锁,
    • ONTAP 9不会对NFS强制实施强制字节范围锁定。所有字节范围锁都是建议性的,仅防止授予冲突的锁请求,并且对读取或写入操作没有影响
  • 强制实施由CIFS或SMB客户端设置的锁定
    • 无论客户端是否检查锁,锁都会影响客户端。
    • 如果存在锁,则根据锁拒绝客户端的访问类型
  • 如果运行dump命令在 Data ONTAP 8 7 模式下,它将忽略文件锁定以完成转储或 NDMP 备份
ONTAP如何跟踪锁定?
  • 锁管理器 (LMGR) 是一个 ONTAP 子系统,它实施文件锁定来管理并发访问
    • 它跟踪哪些文件是打开的以及哪些锁被授予
    • 这在ONTAP的数据/WACL层进行处理
  • ONTAP 9集群上的每个节点 都运行有自己的锁定管理器、用于管理位于该节点所拥有的聚合上的卷。
    • 注: 在7-模式中、这是针对每个控制器的
  • 为了完成这些任务,一系列内存结构(对象)被分配给锁管理器;这些结构的数量取决于存储控制器上安装的内存量,并且是固定的

追加信息

 

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.