Skip to main content
NetApp Knowledge Base

How does ONTAP maintain or release NFSv4 client locks?

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

Applies to

  • ONTAP
  • NFSv4
  • Linux

Answer

  • The ONTAP  NFS vserver assigns a lease to every lock that is granted to the NFSV4 client
  • A lease time can be set for the ONTAP vserver for NFSv4

::*> nfs server show -vserver nsStorageD -fields v4-lease-seconds

vserver    v4-lease-seconds
---------- ----------------
vserver1   30
  • The server checks the client every 30 seconds before the lease expires in case the client responds back to the server to extend it further 
  • This checking is done on a per client basis and per lock on a single client by the server
  • The value is configurable from the NFS server storage side
  • ONTAP does not cause a lock, a lock is granted to a client
  • The duration of the locks is based on client renewing them
  • So if the client is active and maintaining the lock the filer will honor that lock

Additional Information

About NFSv4 file and record locking

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.