Skip to main content

Enable or disable NFSv4 write file delegations

Contributors netapp-aherbin

To enable or disable write file delegations, you can modify the -v4.0-write-delegationor -v4.1-write-delegation option. By enabling write file delegations, you can eliminate much of the message overhead associated with file and record locking in addition to opening and closing of files.

About this task

By default, write file delegations are disabled.

The disadvantage of enabling write file delegations is that the server and its clients must perform additional tasks to recover delegations after the server reboots or restarts, a client reboots or restarts, or a network partition occurs.

Step
  1. Perform one of the following actions:

    If you want to…​ Then…​

    Enable NFSv4 write file delegations

    Enter the following command: vserver nfs modify -vserver vserver_name -v4.0-write-delegation enabled

    Enable NFSv4.1 write file delegations

    Enter the following command: vserver nfs modify -vserver vserver_name -v4.1-write-delegation enabled

    Disable NFSv4 write file delegations

    Enter the following command: vserver nfs modify -vserver vserver_name -v4.0-write-delegation disabled

    Disable NFSv4.1 write file delegations

    Enter the following command: vserver nfs modify -vserver vserver_name -v4.1-write-delegation disabled

Result

The file delegation options take effect as soon as they are changed. There is no need to reboot or restart NFS.