Table of ContentsView in Frames

Exporting file systems to NFS clients

Before NFS clients can mount file systems, you need to export those file systems by adding them to the storage system's /etc/exports file.

Before you begin

NFS must be licensed and the NFS service must be enabled before you can export file systems to NFS clients. For more information about configuring NFS licenses, see the Data ONTAP File Access and Protocols Management Guide for 7-Mode.

About this task

Security styles of file systems (UNIX, NTFS, and Mixed) are all available for exporting and can be mounted by NFS clients. However, for 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. 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.

Steps

  1. Determine valid path names for directories by entering the following command at the storage system prompt: qtree status
    Example
    The following display shows sample output from the qtree status 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
    
  2. From the qtree command output, convert the first two entries into valid path names by using the following format: /Volume/Tree
    Example
    /vol0/home
    /vol1snap/qtree1
    /vol2eng/team1
  3. Use a text editor from an NFS client to open the /etc/exports file on the storage system.
  4. Add the storage system directories to the /etc/exports file by using the following format:
    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 the Data ONTAP File Access and Protocols Management Guide for 7-Mode.
  5. Save the file and exit the text editor.
  6. To make your changes to the /etc/exports file effective immediately, issue the exportfs command with the reload option:exportfs -r