Before NFS clients can mount file systems, you need to export them by adding them to the storage system's /etc/exports file.
All security styles of file systems–UNIX, NTFS, and Mixed–are available for exporting and can be mounted by NFS clients. However, when accessing a volume with NTFS effective security style (NTFS volume or mixed volume with NTFS effective security style), file access is granted based on NTFS permissions. In order to properly ascertain file permissions, UNIX user names are mapped to corresponding Windows user names, and access is granted based on NTFS permissions granted to the mapped Windows user.
-
Determine valid path names for directories by entering the following command at the storage system prompt: qtree
Example
The following display shows sample output from the qtree command:
Volume Tree Style Oplocks Status
------ ---- ----- ------- -------
vol0 home unix enabled normal
vol1snap qtree1 unix enabled normal
vol2eng team1 mixed enabled normal
vol2mkt nt ntfs enabled normal
-
From the qtree command output, convert the first two entries into valid path names. To do so, use this format:
/Volume/Tree
Example
/vol0/home
/vol1snap/qtree1
/vol2eng/team1
-
Use a text editor from an NFS client to open the /etc/exports file on the storage system.
-
Add the storage system directories to the /etc/exports file.
Example
/vol/vol0/home -sec=sys, rw, root=admin_host
/vol/vol1snap/qtree1 -sec=sys, rw, root=admin_host
/vol/vol2eng/team1 -sec=sys, rw=10.0.0.0/24:172.17.0.0/16, root=admin_host
/vol/vol2mkt/nt -sec=sys, rw=netgroup1:netgroup2, root=admin_host:10.0.0.100
For information about specifying entries and access permissions in the /etc/exports file, see the chapter about file access using NFS in your
Data ONTAP File Access and Protocols Management Guide
.
-
Save the file and exit the text editor.
-
To make your changes to the /etc/exports file effective immediately, issue the exportfs command with the reload option:exportfs -r