Start

NFS ManagerSet Defaults for NFS Mounts

In addition to the settings per each NFS mount, Mac OS X is supporting general settings which take effect for all NFS mounts, i.e. they affect the whole NFS client. To review or change these settings, select the item NFS Client > Configuration on the left side of the control window. The configuration pane NFS Client Options will be displayed.

General settings

The tab item Settings allows you to get access to general settings of the NFS client.

Allow to request to perform server operations asynchronously: When no checkmark is set at that option, any attempt to establish an asynchronous connection to an NFS server (see the mount option Don't enforce server operations to be performed asynchronously) will be ignored.

Note: By intention, NFS Manager does not offer a mount option to enforce asynchronous mounts. In theory, this option can be set via command-line or by the Directory Setup application. The client setting mentioned here is an additional blockade the system adminstrator can use to generally prevent usage of this option.

Use “access” command when fetching “getattr” data: You can specify whether the operating system should use the internal function access() in an opportunistic fetch operation every time attributes should be fetched. Under normal circumstances, applications will use the function getattr() to request attributes and the function access() to determine file system permissions. However, a response to access() contains attribute data as well, so a single call to access() can make an additional call to getattr() obsolete. For this reason, replacing access() by getattr() might save time, but only if the NFS server implements access() efficiently. In modern operating systems, this might not be the case.

Note: This setting is only available in Mac OS X 10.7 Lion or later.

Maximum number of client threads (nfsiod): This option controls on how many worker threads the administrative tasks for current mounts to NFS servers can be distributed.

Timeout for caching permission related information: The NFS client uses a buffer (cache) to hold user and group information as well as permission information for some time in main memory until it refetches the data from the operating system or server. The value specifies the maximum time in seconds how long cached data may assumed to be valid until it expires and has to be discarded.

Time before issuing “server down” warning: When the network connection to a server is lost, or the server is failing, the operating system will display a warning. This value specifies the time in seconds the system should wait until showing the first warning message.

Time before issuing subsequent “server down” warning: If a failing server connection doesn't recover, the operating system may show subsequent warnings after the initial message. The time interval for subsequent warnings can be set by this value.

Advertized standard size of buffer for file info data: If the client calls the UNIX functions stat or statfs to request file or file system information from an NFS mount, a recommended buffer size to transfer the requested data has to be negotiated between client and server. This value is the initial default size in bytes the client will send as recommended size to the server.

Maximum rate of file info requests to send per second: This value specifies how often per second the client is allowed to call the statfs function to request file system information for an NFS mount. If the number is exceeded, the request will not be forwarded to the server but instead be answered using cached information.

Predefined port number for NFSv4 callbacks: When using NFSv4 features that require callbacks, the port number on which the server should call the client back can be specified here. A value of 0 indicates that no fixed port number should be used, but server and client can automatically choose any free port.

Note: This setting is only available in Mac OS X 10.7 Lion or later.

Presets for mount options

Mac OS X can define default settings for options which work as a preset for all NFS mounts (manual ones and automounts), so it will no longer be necessary to configure options for each single connection. Please note the following:

To set or change the default options press the button Change options…. The usual panel to define mount options will open. By selecting or deselecting options you can define the desired default which should be taken as preset for this computer. If you like to completely remove all preset options, hereby returning to the “empty” standard configuration, press the button Remove all overrides.

Automounter Settings

Settings affecting the automount features of Mac OS X are available on the tab item Automounter. Mac OS X uses the standard “autofs” subsystem which is also used on many other UNIX or Unix-like operating systems. The automounter is capable of supporting very complex setups, controlled by so-called mount maps, i.e. extended lists of automount entries which may also contain template entries and entries containing environment variables. The advanced use of mount maps is beyond the scope of NFS Manager and will not be discussed in this reference manual. Please see text books about NFS and NIS technology for further information.

Disconnect inactive share after __ s: This option controls after what time period of inactivity the automounter should disconnect a share. The time is specified by seconds. Apple's default setting is 1 hour (3,600 s). Many other UNIX systems use a much shorter time, e.g. 10 minutes.

Don't list disconnected shares of a mount map: When this option is set, only active (currently mounted) shares will be listed by the operating system when the folder containing the mount points is being browsed by an application. It does not matter if a graphical file browser (like the Finder) or a command-line program (like ls) is used. Enabling this feature is helpful to avoid that too many automounts are being triggered inadvertently, e.g. by clicking mount points in the Finder.

Write mount map activity messages to system log: This feature will cause the automount process of the autofs subsystem to print more detailed information about its activities to the system log. This mainly affects reports about receiving and processing lists of automount entries via directory services.

Write automount activity messages to system log: This feature will cause the automountd process of the autofs subsystem to print more detailed information about its activities to the system log. This mainly affects reports about the actual connect and disconnect operations with file servers.

Activity trace level: The automountd process also allows tracing of all its internal operations. The level of detail can be controlled by the pop-up menu. The setting 0 won't include any trace messages in the log. The levels 1 to 4 will add operational messages for more and more detailed aspects of process activity.

Mount Map Variables: The table allows to define environment variables which will be used when processing template-like automount entries found in the mount maps. Each variable has a name and a value. As mentioned in the introductory paragraph, advanced mount map features won't be discussed here.

Presets for automount options

In addition to the defaults which can be set for all mounts, the operating system can also define defaults for automounts. The settings are controlled by the box Override default options to use for automatic mount requests. The behavior is exactly the same as already described in the section Presets for mount options above. The options finally taking effect for a final automount entry combine the defaults for mounts with the defaults for automounts and the individual settings of that entry.

Note: The presets apply to all automounts, not only to NFS-based ones. Other types of automatic files server connections, e.g. AppleShare/AFP, will be affected as well.

Save and Revert

To save your changes, press the button Apply at the bottom right corner. If necessary, Mac OS X will ask for an administrator password. Changes may not take effect immediately. Depending on settings, you'll have to perform a restart of the operating system to ensure that all changes become active.

By pressing Revert all edited changes will be discarded and the previously saved configuration will be restored. You can undo all changes you have made to client settings and preset options by pressing the button Reset to defaults.