Table of ContentsLibraryView in Frames

Editing the /etc/exports file

To specify which file system paths Data ONTAP exports automatically when NFS starts, you can edit the /etc/exports file. For more information, see the na_exports(5) manual page.

Before You Begin

If the nfs.export.auto-update option is on, which it is by default, 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.

Note: The maximum number of export entries in the /etc/exports file is 10,240. The maximum number of characters in each export entry, including the end of line character, is 4,096.

Considerations

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 the following information:

  • Which NFS clients have which access privileges (read-only, read-write, or root)
  • The user ID (or name) of all anonymous or root NFS client users that access the file system path
  • Whether NFS client users can create setuid and setgid executables and use the mknod command when accessing the file system path
  • The security types that an NFS client must support to access the file system path
  • The actual file system path corresponding to the exported file system path

Steps

  1. Open the /etc/exports file in a text editor on an NFS client that has root access to the storage system.
  2. Make your changes.
  3. Save the file.

After You Finish

If you edit the /etc/exports file using a text editor, your changes will not take effect until you export all file system paths in the /etc/exports file or synchronize the currently exported file system paths with those specified in the /etc/exports file.

Note:

Running the exportfs command with the -b, -p, or -z option also changes the /etc/exports file.