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

How /etc/exports works

About /etc/exports  Top

The /etc/exports file contains the list of resources to be exported when Data ONTAP starts up, restarts, or receives the exportfs -a command (given that a valid NFS license exists). Maintaining the /etc/exports file enables resources to be available automatically upon filer startup and eliminates the need to enter the exportfs command for each resource you want to export.

In the /etc/exports file, you also specify the access restrictions and security service with which clients can mount each resource. At any time after filer startup, you can override specifications in the /etc/exports file by using the exportfs command (until the filer is restarted or another overriding exportfs command is issued).

When changes to /etc/exports take effect  Top

Entries in the /etc/exports file take effect when one of the following events happens:

For more information about how to use the exportfs command, see Exporting or unexporting resources using the exportfs command.

Targets to which you export a resource  Top

You can specify in the /etc/exports file to export a resource to these targets:

Information in /etc/exports  Top

The /etc/exports file specifies the following types of information:

Rules for specifying an /etc/exports entry  Top

The following rules determine how a resource is exported:

Example

/vol/vol0 -ro=host1:host3,root=host1,rw=host2

The steps for exporting a resource from the /etc/exports file vary according to the type of target to which you export the resource.

For detailed information  Top

The following sections describe how different options in the /etc/exports file control the ways resources are exported:

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