If you changed the mount options in the automounter master map, you must run the automount (1M) command, on each client that uses the map, before your changes will take effect.
If you changed the mount options for a directory that is currently mounted, you must unmount and remount it before your changes will take effect. Issue the following commands:
Several NFS mount options allow you to change the length of time file and directory attributes remain cached on the NFS client. By default, an NFS client caches certain attributes of files and directories, like their ownership, size, and modification time. If a user on an NFS client is making a series of changes to a file, the changes to the file's attributes are cached and modified locally on the client, and finally, the resulting attributes are sent to the server.
Table 2-3 NFS Caching Options
noac
(default: not specified)
If specified, this option prevents the NFS client from caching attributes for the mounted directory.
Specify noac for a directory that will be used frequently by many NFS clients. The noac option ensures that the file and directory attributes on the server are up to date, because no changes are cached on the clients. However, if many NFS clients using the same NFS server all disable attribute caching, the server may become overloaded with attribute requests and updates. You can also use the actimeo option to set all the caching timeouts to a small number of seconds, like 1 or 3.
If you specify noac , do not specify the other caching options.
nocto
(default: not specified)
If specified, this option suppresses fresh attributes when opening a file.
Specify nocto for a file or directory that never changes, to decrease the load on your network.
acdirmax=n
(default=60)
The maximum number of seconds a directory's attributes are cached on the NFS client. When this timeout period expires, the client flushes its attribute cache, and if the attributes have changed, the client sends them to the NFS server.
For a directory that rarely changes or that is owned and modified by only one user, like a user's home directory, you can decrease the load on your network by setting acdirmax=120 or higher.
acdirmin=n
(default=30)
The minimum number of seconds a directory's attributes are cached on the NFS client. If the directory is modified before this timeout expires, the timeout period is extended by acdirmin seconds.
For a directory that rarely changes or that is owned and modified by only one user, like a user's home directory, you can decrease the load on your network by setting acdirmin=60 or higher.
acregmax=n
(default=60)
The maximum number of seconds a file's attributes are cached on the NFS client. When this timeout period expires, the client flushes its attribute cache, and if the attributes have changed, the client sends them to the NFS server.
For a file that rarely changes or that is owned and modified by only one user, like a file in a user's home directory, you can decrease the load on your network by setting acregmax=120 or higher.
acregmin=n
(default=3)
The minimum number of seconds a file's attributes are cached on the NFS client. If the file is modified before this timeout expires, the timeout period is extended by acregmin seconds.
For a file that rarely changes or that is owned and modified by only one user, like a file in a user's home directory, you can decrease the load on your network by setting acdirmin=30 or higher.
actimeo=n
(no default)
Setting actimeo to n seconds is equivalent to setting acdirmax , acdirmin , acregmax , and acregmin to n seconds.
Set actimeo=1 or actimeo=3 for a directory that is used and modified frequently by many NFS clients. This ensures that the file and directory attributes are kept reasonably up to date, even if they are changed frequently from various client locations.
Set actimeo=120 or higher for a directory that rarely or never changes.
If you set the actimeo value, do not set the acdirmax , acdirmin , acregmax , or acregmin values.
To Change the DefaultMount OptionsInclude the NFS mount options in your /etc/fstabfile or automounter map as needed. Table 2-2 “NFS Mount Options” and Table 2-3 “