How does ONTAP maintain or release NFSv4 client locks?
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
