メインコンテンツへスキップ

ONTAP のロック、oplock、遅延ブレークとは何ですか。

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

環境

  • ONTAP 9
  • CIFS / SMB
  • NFS

回答

ノーマルロック 既存のクライアントがファイルにアクセスしている間、他のクライアントマシンがファイルにアクセスするのを停止します。削除できません。
oplock ロックされた情報のファイルおよびクライアント側キャッシュの読み取りアクセスの共有を許可します。
  • oplock(ロック)は、書き込みアクセス時にクライアントによって設定され、 別のクライアントが排他的な書き込みアクセスを許可するために解放する必要があります。また、 ファイルの一部またはすべてを編集用にクライアントマシンにキャッシュします。
  • oplockを使用すると、クライアントはデータをローカルにキャッシュできるため、パフォーマンスが向上し、ネットワークの使用量が削減されます。ただし、CIFSセッションが失われると、ディスクに書き込まれていない変更は失われる可能性があります。
  • oplockは手動で解除することも、ONTAPで定義されたルールに基づいて解除することもできる

シーケンス例:

  1. client1が \\storage_system\share\file1 バッチまたは排他的oplockの要求を開く
  2. ストレージ・システムが、file1に対してバッチまたは排他的なoplockでクライアント1に応答する
  3. client2が  \\storage_system\share\file1 バッチまたは排他的oplockを要求してオープンしようとする
  4. ストレージシステムはClient2へのOPEN要求を保留し、Client1にoplock Break要求を送信して、変更をフラッシュ/コミットし、ロックを解放するよう要求します。
  5. client1がoplock Break要求に応答し、キャッシュされた書き込みをフラッシュ/コミットする
  6. ストレージ・システムは、適切なロックを使用してクライアント2にOPENを許可します。

注: 手順4では、クライアント1が35秒以内にoplock Break要求に応答しない場合、ストレージシステムは次の3つの処理を実行します。

  1. Data ONTAP 9.0より前のログでは、問題のあるクライアントのIPアドレスを含むoplock遅延ブレークメッセージがsyslogに記録されていました。
  2. Client1のファイルに関連付けられているすべてのロックを強制的にクリーンアップします。
  3. Client2にOPEN応答を付与します。

 

 

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.

 

  • この記事は役に立ちましたか?