Configuring NFS clients

About this section

If you purchased a license for the NFS protocol, follow the instructions in this section to prepare NFS clients to mount file systems from the filer; otherwise, continue with "Configuring CIFS clients."

About host names and interface names

When you ran setup, the filer generated a host name for each interface by appending the number of the interface to the filer host name.

For example, the interface name for the first interface on a filer named toaster might be toaster-e0; the second interface might be toaster-e1.

If you use DNS or NIS for name resolution

If you use DNS or NIS for name resolution, add an entry in your DNS or NIS databases for each of the filer interfaces.

The following example shows how the entries might look for a filer with four interfaces:

192.16.3.1.145    toaster-e0 toaster
192.16.4.1.155    toaster-e1
192.16.5.1.165    toaster-f0
192.16.6.1.175    toaster-a5

In the first line of the preceding example, the filer host name itself is used as an alias for the first network interface.

If you use /etc/hosts files for name resolution

If you use /etc/hosts files for name resolution, add an entry in each host's /etc/hosts file for each of the filer interfaces.

The following example shows how the entries might look for a filer with four interfaces:

192.16.3.1.145    toaster-e0 toaster
192.16.4.1.155    toaster-e1
192.16.5.1.165    toaster-f0
192.16.6.1.175    toaster-a5
In the first line of the preceding example, the filer host name itself is used as an alias for the first network interface.

Exporting filer directories

You must export the filer's file systems before clients can mount them.

Use an editor from an NFS or a CIFS client to edit the /etc/exports file to export filer directories.

Mounting file systems on clients

For clients to mount file systems from the filer, you must create entries for the directories exported from the filer in each client's /etc/fstab or -/etc/vfstab file.

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

Procedure

Complete the following steps to prepare clients to mount the filer's file systems.


Note: The /vol/vol0/home directory is used as a sample filer directory in this procedure. You should use a path that exists on the filer.


Step Action
1 Create a directory on the client to act as a mount point. For example, /n/toaster/home.
2 To mount the filer's /vol/vol0/home directory to /n/toaster/home, add the following line to the client's /etc/fstab or /etc/vfstab file:
toaster-e0:/vol/vol0/home /n/toaster/home nfs rw 0 0 
In the preceding example, the client is on the same network as the filer e0 Ethernet interface. If the client is on the same network as the e1 Ethernet interface, use the following line instead:
toaster-e1:/vol/vol0/home /n/toaster/home nfs rw 0 0 
The file system is mounted when the client reboots.
3 To mount the /vol/vol0/home directory without a client reboot, enter the following command at the client:
mount toaster-e1:/vol/vol0/home /n/toaster/home

Results

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

What to do next

Use the following table to decide what to do next.

If... Read...
You purchased a license for the CIFS protocol. "Configuring CIFS clients."
You did not purchase a license for the CIFS protocol. Chapter 9, "About the Filer Software."

Copyright © 1999, Network Appliance, Inc. All rights reserved.

Part No. 210-02343
File: clients1.htm
Last updated: 02/25/99 17:35:05