Library Table of Contents  Previous Next Comments

Configuring NFS clients to access the filer

How to make filer data available  Top

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

Exporting NFS clients  Top

You must export the filer's file systems before NFS clients can mount them. To export the filer's file systems, complete the following steps.

Step

Action

1

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

qtree

Example 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 example output, convert the first three entries into valid path names by using the volume entry followed by the qtree entry:

/vol0/home

/vol1snap/qtree1
/vol2eng/team1

Note
Only "unix" and "mixed styles" can be mounted on NFS clients; therefore, /vol2mkt/nt cannot be mounted.

3

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

4

Add the filer directories to the /etc/exports file to export them. For information about specifying entries and access restrictions, see the chapter about file access using NFS in the File Access 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 filer's file system by using one of the following methods:

To mount the filer'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 filer in each client's /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 filer directory in this procedure. You should use a path that exists on your filer.

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 directory on the NFS client  Top

To create a 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 filer directory on the NFS client  Top

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

Step

Action

1

To mount the filer's /vol/vol0/home directory to /n/toaster/home, add the following line to the NFS client's /etc/vfstab file (or /etc/fstab file) if the client is on the same network as the filer's e0 Ethernet interface:

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

Result

The file system is mounted when the client reboots.

2

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

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

Result

After the /vol/vol0/home directory on the filer is mounted, the user on the NFS client can create, modify, or remove files in /n/toaster/home.

Library Table of Contents  Previous Next Comments