Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Exporting and unexporting file system paths

To specify which file system paths Data ONTAP exports automatically when NFS starts up, add export entries to or remove export entries from the /etc/exports file. To export or unexport file system paths manually, run the exportfs command on the storage system command line.

Editing the /etc/exports file  Top

To add export entries to or remove export entries from the /etc/exports file, use a text editor on an NFS client that has root access to the storage system (for more information, see the System Administration Guide) or run the exportfs command with the -b, -p, or -z option on the storage system command line (see Using the exportfs command).

Note
If the nfs.export.auto-update option is on, Data ONTAP automatically updates the /etc/exports file when you create, rename, or delete volumes. For more information, see the na_options(1) manual page.

An export entry has the following syntax:

path -option[,option...]

In the export entry syntax, path is a file system path (for example, a path to a volume, directory, or file) and option is an export option that specifies:

For more information about export options, see the na_exports(5) manual page.

Using the exportfs command  Top

To run the exportfs command on the storage system command line, enter exportfs followed by one or more command options (for example, -p, -a, or
-ua), zero or more export options (see Editing the /etc/exports file), and a file system path.

For more information, see the na_exportfs(1) manual page.

In the following examples, path represents a file system path (for example, a path to a volume, directory, or file) and options represents a comma-delimited list of export options.

Exporting file system paths

To export a file system path and add a corresponding export entry to the /etc/exports file, use the following syntax:

exportfs -p [options] path

Note
If you do not specify any export options, Data ONTAP automatically exports the file system path with the rw and sec=sys export options.

To export a file system path without adding a corresponding export entry to the /etc/exports file, use the following syntax:

exportfs [-io options] path

Note
If you do not specify -io followed by a comma-delimited list of export options, Data ONTAP uses any export options specified for the file system path in the /etc/exports file.

To export all file system paths specified in the /etc/exports file, use the following syntax:

exportfs -a

To export all file system paths specified in the /etc/exports file and unexport all file system paths not specified in the /etc/exports file, use the following syntax:

exportfs -r

Unexporting file system paths

To unexport a file system path and remove its corresponding export entry from the /etc/exports file, use the following syntax:

exportfs -z path

To unexport a file system path without removing its corresponding export entry from the /etc/exports file, use the following syntax:

exportfs -u path

To unexport all file system paths without removing their corresponding export entries from the /etc/exports file, use the following syntax:

exportfs -ua

Performing other tasks

You can also use the exportfs command to:

For more information, see the na_exportfs(1) manual page.

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments