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

Preparing NFS clients to access the storage system

How to make storage system data available  Top

To make storage system data available to NFS clients, you need to do the following tasks:

Exporting NFS clients  Top

You must export the storage system's file systems before NFS clients can mount them. Only UNIX and "mixed" styles of file systems are available for mounting by NFS clients. CIFS file systems (NTFS style), cannot be mounted by NFS clients.

To export the storage system's file systems, complete the following steps.

Step

Action

1

Determine valid path names for directories by entering the following command at the storage system prompt:

qtree

Sample output

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 sample output, convert the first three entries into valid path names. To do this, use this format: /Volume/Tree. For example:

/vol0/home
/vol1snap/qtree1
/vol2eng/team1

Note
Because only "unix" and "mixed" styles can be mounted on NFS clients, /vol2mkt/nt (which has "ntfs" style) cannot be mounted.

3

Use a text editor from an NFS client to open the /etc/exports file.

4

Add the storage system directories to the /etc/exports file to export them. For information about specifying entries and access permissions, see the chapter about file access using NFS in the File Access and Protocols Management Guide to find out how /etc/exports works.

Example

/vol/vol0/home -anon=0
/vol/vol1snap/qtree1
/vol/vol2eng/team1

5

Save the file and exit the text editor.

Mounting NFS client file systems  Top

You can mount the storage system's file system by using one of the following methods:

To mount the storage system's file systems by adding entries to the /etc/vfstab file, complete the following steps.

Step

Action

1

Use a text editor from an NFS client to open the /etc/vfstab (or /etc/fstab) file.

2

Add the entries for the directories exported from the storage system for each client in the /etc/vfstab file (or /etc/fstab) file.

Example

toaster:/vol/vol0/home nfs - yes - rw,bg,hard
toaster:/vol/vol1snap/qtree1 -yes - rw,bg,hard
toaster:/vol/vol2eng/team1 - yes - rw,bg,hard

Note
The /vol/vol0/home directory is used as a sample storage system directory in this procedure. You should use a path that exists on your storage system.

3

Save the file and exit the text editor.

Result

After you edit the NFS clients' /etc/vfstab file (or /etc/fstab file), the clients mount the file systems automatically when they boot.

Creating a mount point directory on an NFS client  Top

To create a mount point directory on the NFS client, complete the following step.

Step

Action

1

At the NFS client, create a directory to act as a mount point.

Example

mkdir /n/toaster/home

Mounting a storage system directory on an NFS client  Top

To mount the storage system's directory on the NFS client, complete the following steps.

Step

Action

1

To mount the storage system's /vol/vol0/home directory to /n/filer/home, add the following entry for the client in the /etc/vfstab file (or /etc/fstab) file, assuming that the client is on the same network as the storage system's e0 Ethernet interface:

filer-e0:/vol/vol0/home /n/filer/home nfs rw 0 0

Result

The file system is mounted when the client reboots, and remains available after subsequent rebooting.

2

To mount the /vol/vol0/home directory without a client reboot, enter the following command at the NFS client:

mount filer-e1:/vol/vol0/home /n/filer/home

Result

The file system is mounted immediately, but is no longer available upon reboot.

For more information  Top

For more information about NFS configuration, see the File Access and Protocols Management Guide.

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