NFS Shares Screens

Unix (NFS) Share Widget

If you have not added NFS shares to the system, the NFS widget shows text stating general information about the Unix (NFS) shares until a share is added.

Unix (NFS) Share Widget
Figure 1: Unix (NFS) Share Widget

Add at the top right of the widget opens the Add NFS screen where you configure NFS shares.

After adding an NFS share, it is listed in the table on the widget.

Unix (NFS) Share Widget with Shares
Figure 2: Unix (NFS) Share Widget with Shares

The Unix (NFS) Share launch header shows the status of the NFS service as either STOPPED (red) or RUNNING (green). Before adding the first share, the STOPPED status displays in the default color. The header is a link that opens the NFS screen.

The more_vert dropdown list shows three options available to NFS shares and the NFS service in general:

  • Turn Off/ON Service toggles to Turn Off Service when the NFS service is enabled, and to Turn On Service when the NFS service is disabled.
  • Config Service opens the NFS configuration screen.
  • NFS Sessions that opens the NFS Sessions screen.

The widget shows a table listing nfs shares created in TrueNAS. Each NFS share row on the Unix (NFS) Shares widget shows the path to the shared dataset, a description if one is entered when the share is added, an Enabled toggle that allows you to enable or disable the share. The more_vert dropdown list for each share shows two options:

Enable Service Dialog

After adding the first NFS share, the system opens an enable service dialog.

Unix Enable Service
Figure 3: Unix Enable Service
Enable Service turns the NFS service on and changes the toolbar status to Running.

The Enable toggle for each share shows the current status of the share. Disabling the share does not delete the configuration from the system.

Delete NFS Share Dialog

The delete delete icon displays a delete confirmation dialog that removes the share from the system.

Sharing NFS Delete
Figure 4: Sharing NFS Delete

Select Confirm to activate the Delete button.

NFS Screen

The NFS screen shows an expanded presentation of the table on the Unix (NFS) Shares widget.

Shares NFS Screen
Figure 5: Shares NFS Screen

Shares in the breadcrumb at the top of the screen returns you to the main Shares dashboard.

NFS Sessions opens the NFS Session screen.

Add opens the Add NFS configuration screen.

NFS Table

The NFS table lists all NFS shares added to the system. The table header shows the status of the NFS service as stopped or running. The table columns show the path to the dataset for the share, the share description if added during share creation, networks, and hosts. The Enabled toggle allows you to enable/disable the share. When enabled, the share path is available when the NFS service is active. If disabled, the share is disabled but not deleted from the system.

Columns shows a set of options to customize the list view. Options include Unselect All, Path, Description, Enabled and Reset to Defaults.

The more_vert dropdown list at the right of each table row shows two options for a share:

Add and Edit NFS Screens

The Add NFS and Edit NFS show the same Basic Options and Advanced Options settings.

The UDP protocol is deprecated and not supported with NFS. It is disabled by default in the Linux kernel. Using UDP over NFS on modern networks (1Gb+) can lead to data corruption caused by fragmentation during high loads.

Changes to local groups or directory service groups take up to 10 minutes to take effect for NFS shares. For immediate effect, reload or restart the NFS service.

Basic Options

The Basic Options settings on the Add and Edit NFS screens show by default, and at the top of the screen when Advanced Options is selected.

Add NFS Basic Options
Figure 6: Add NFS Basic Options

Browsing to select a path

Click the arrow to the left of the folder icon to expand that folder and show any child datasets and directories. A solid folder icon shows for datasets and an outlined folder for directories. A selected dataset or directory folder and name shows in blue.

SettingDescription
PathSpecifies the mount path for the share. It includes a blank field and a file browser field directly below it. The blank field allows text entry of a share mount path or allows Truenas to populate it with the path to the dataset selected in the file browser field. The file browser selects the mount path to the share dataset on the local file system that TrueNAS exports over the NFS protocol. Use the arrow_right icon to the left of to expand the dataset directory tree.
Create DatasetCreates a dataset for a share while configuring the share. Inactive until the parent dataset is selected. It opens the Create Dataset dialog, where you enter a name for a new dataset. The dataset name becomes the last part of the NFS share path. Create adds the dataset and populates Path field on the Add NFS screen.
DescriptionA text-entry field for a brief description or notes about how this share is used. The description entered shows in the Description column on the Unix (NFS) Shares widget on the Shares dashboard and the NFS table on the NFS screen.
EnabledSelect to enable this NFS share. Clear the checkbox to disable this NFS share without deleting the configuration.
NetworksDefines an authorized network, and any added, restricts access to all other networks. Leave empty to allow all networks. Add shows the Networks IP address and CIDR fields to enter an allowed network IP and select the mask CIDR notation. Click Add for each network address and CIDR you want to define as an authorized network.
Add hostsDefines allowed clients (hosts) you want to allow to connect to the share. Defining authorized systems restricts access to all other systems. Leave the field empty to allow all systems access to the share. Add shows the Authorized Hosts and IP addresses field. Enter a host name or IP address to allow that system access to the NFS share. Click Add for each allowed system you want to define.

Advanced Options Settings

Advanced Options settings tune the share access permissions and define authorized networks. Advanced Options shows the Access settings listed below.

Add NSF Advanced Options Access Settings
Figure 8: Add NSF Advanced Options Access Settings
SettingDescription
Read-OnlySelecting this to enable read-only prohibits writing to the share.
Maproot UserText entry field that allows manual entry of a user name or selecting a user from the dropdown list. Typing in the field filters the dropdown list to match what is entered. Entering a user applies permissions for that user to the root user, and limits the root user to the permissions of that user.
Maproot GroupText entry field that allows manual entry of a group name or selecting a group from the dropdown list. Typing in the field filters the dropdown list to match what is entered. Entering a group applies permissions for that group to the root user and the root user is limited to the permissions of that group.
Mapall UserText entry field that allows manual entry of a user name or selecting a user from the dropdown list. Typing in the field filters the dropdown list to match what is entered. Entering a user applies permission for the chosen user to all clients, and the specified permissions of that user are used by all clients.
Mapall GroupText entry field that allows manual entry of a group name or selecting a group from the dropdown list. Typing in the field filters the dropdown list to match what is entered. Entering a group applies permissions for the chosen group to all clients, and the specified permissions of that group are used by all clients.
SecuritySets the level of authentication and cryptographic protection to the option selected on the dropdown list. Options are SYS, KRB5, KRB5I, KRB5P. Selecting KRB5 allows you to use a Kerberos ticket. SYS or none should be used if no KDC is available. If a KDC is available, e.g., Active Directory, KRB5 is recommended. If desired KRB5I (integrity protection) and/or KRB5P (privacy protection) can be included with KRB5.

Security Types

SettingDescription
SYSUses locally acquired UIDs and GIDs. No cryptographic security.
KRB5Uses Kerberos for authentication.
KRB5IUses Kerberos for authentication and includes a hash with each transaction to ensure integrity.
KRB5PUses Kerberos for authentication and encrypts all traffic between the client and server. KRB5P is the most secure but also incurs the most load.

NFS Sessions Screen

The NFS Sessions screen shows a table of sessions with the IP address and Export status of each session listed. You can access the NFS Sessions screen from the :

  • icon on the NFS service row on the System > Services screen
  • more_vert on the Shares > Unix (NFS) Shares widget
  • NFS Sessions on the NFS screen
NFS Sessions Screen
Figure 9: NFS Sessions Screen

This screen shows NFSv3 clients that have successfully completed an MNT request by reading the NFS rmtab file. Clients with appropriate permissions are removed from the list on a successful UMNT request.

However, this list can become inaccurate due to the different ways that a client can disconnect from a share. To help prevent stale entries from accumulating, the sessions list is cleared on each system boot.

Refresh updates the information displayed on the screen.

Column shows a dropdown list of options for the selected tab to customize the information included on the screen.

The breadcrumb links at the top of the screen return you to the screen you click.