メインコンテンツまでスキップ

ONTAP 9 の NFSv4 で必須ロックはどのようにサポートされていますか。

Views:
149
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nfs
Last Updated:

環境

  • ONTAP 9
  • NFSv4

回答

  • NFSv4 が導入され、 NFS プロトコルで必須のロックがサポートされるようになりました。また、ネットワークロックマネージャ( NLM )はロックに使用されなくなりました。
    • NFSv4 では、次の 2 つの方法でファイルをロックできます。
      • バイト範囲ロック
      • 予約ロックを共有します
         
    • バイト範囲ロックは常にアドバイザリロックになります。
      • ONTAP 9 では、必須のバイト範囲ロックは適用されません。すべてのバイト範囲ロックはアドバイザリに記載されており、競合するロック要求の許可を回避するだけであり、読み取り操作や書き込み操作には影響しません。
         
    • 共有予約ロックは常に必須ロックです。
      • 共有予約ロックはファイル全体に存在します。ファイルは開いているときに取得され、読み取り、書き込み、および属性設定のアクセスチェックに使用されます。close は、共有予約ロックを再利用し、リソースを再利用するために使用されます。
         

追加情報

  • 必須の共有予約ロックの例

Mandatory.png

  • パケット 38 では、クライアントはファイルを開き、 share_deny に書き込み要求を拒否するように設定します
  • パケット 44 に異なる状態 ID (すべてゼロ)で競合する書き込み要求が入った場合、 NFS4ERR_LOCKED が受信されます。
  • 詳細について [1]は、 RFC 5661 を参照してください。

 

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.