Library Table of Contents Index Previous Next Comments

How /etc/exports works

About /etc/exports  Top

The /etc/exports file contains a list of resources that can be exported. When rebooting, Data ONTAP executes the exportfs -a command in the /etc/rc file to automatically export all resources in /etc/exports file. As a result, you need not enter the exportfs command to export each resource.

In the /etc/exports file, you also specify the access restriction and security service with which clients can mount each resource. At any time after the filer is up and running, you can override any specification in the /etc/exports file with the exportfs command.

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 -access=host1:host2,root=host1,rw=host2

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

Limitation of the /etc/exports file  Top

Each line of the /etc/exports file can contain up to 1,024 characters.

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 Next Comments