跳转到主内容

什么是ONTAP 中的锁定、机会锁和延迟中断?

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

适用场景

  • ONTAP 9
  • CIFS\ SMB
  • NFS

问题解答

正常锁定 在现有客户端访问文件时、停止其他客户端计算机访问文件。无法删除。
机会锁 (Oplock) 允许共享对文件的读取访问以及对锁定信息的客户端缓存。
  • Oplock (此处称为锁定)由客户端在进行写入访问时设置、必须释放才能允许另一个客户端进行独占写入访问、并将部分或全部文件缓存到客户端计算机以进行编辑。
  • 机会锁允许客户端在本地缓存数据、以提高性能并减少网络使用量。但是、如果CIFS会话丢失、则尚未写入磁盘的任何更改都可能丢失。
  • 机会锁可以手动断开、也可以根据ONTAP 中定义的规则断开

示例顺序:

  1. 此时,客户端 1 将打开 \\storage_system\share\file1 ,请求批处理或独占机会锁
  2. 存储系统对文件 1 的批处理或排它的 Oplock 进行响应到 Client1
  3. 客户端 2 尝试打开 \\storage_system\share\file1,请求批处理或独占机会锁
  4. 存储系统暂停向客户端 2 发出的打开请求,并向客户端 1 发送 Oplock 中断请求,请求其刷新 / 提交更改并释放其锁定。
  5. 客户端 1 响应 Oplock 中断请求,刷新 / 提交其缓存写入
  6. 存储系统将“ Open (打开)”权限授予客户端 2 、并带有相应的锁定

注意: 在步骤4中、如果客户端1在35秒内未响应Oplock中断请求、则存储系统将执行以下三项操作:

  1. 在 Data ONTAP 9.0 日志之前,是一条机会锁延迟中断消息,其中包含故障客户端的 IP 地址到系统日志
  2. 强制清除文件上与关联的任何锁定 客户端 1.
  3. 授予客户端 2 开放响应

 

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.
  • 这篇文章对您有帮助吗?