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

How resources become available to NFS clients

Resources that NFS clients can mount  Top

NFS clients can mount only those resources that have been exported. An exported resource is one that you have made available for mounting.

How Data ONTAP matches mount requests with exported resources  Top

When Data ONTAP receives a mount request from a client, it compares the path name in the mount request to the path names of the exported resources. If Data ONTAP finds a match, the NFS client can mount the resource.

Data ONTAP uses the longest matching prefix in the path name in determining access restrictions.

Example

Suppose you export both the /vol/vol0/home resource and the /vol/vol0 resource. When a host tries to mount the /vol/vol0/home/user1 directory, Data ONTAP applies the access restrictions specified for the /vol/vol0/home resource to determine whether the host should be granted access. Similarly, when a host tries to mount the /vol/vol0 directory, Data ONTAP applies the access restrictions specified for the /vol/vol0 resource.

Ways to export resources  Top

You can export resources in two ways:

For information about specifying what and how resources are exported in the /etc/exports file, see How /etc/exports works. For information about how to use the exportfs command, see Exporting or unexporting resources using the exportfs command.

Rules for exporting resources  Top

Regardless of the method for exporting a resource, remember these rules:

About exporting different levels of a directory hierarchy  Top

The way Data ONTAP exports a resource is similar to that used by the SunOS 4.x operating system. However, unlike SunOS, Data ONTAP permits you to export a resource whose ancestor has already been exported. For example, you can export the /vol/vol0/home/users directory after you export the /vol/vol0/home directory.

When exporting different levels of a directory hierarchy, take care not to give clients greater access permissions at a higher level in the hierarchy. For example, in the following /etc/exports file, the first entry specifies no access restrictions for the /vol/vol0 volume. That is, any host can mount the /vol/vol0 volume as read-write. The second entry restricts access to the /vol/vol0/home directory to specified hosts. However, because the first entry gives any host permission to mount the /vol/vol0 volume, hosts other than host1 and host2 can have access to the /vol/vol0/home directory by mounting the /vol/vol0 volume.

/vol/vol0
/vol/vol0/home -rw=host1:host2

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