Preparing NFS clients to access the filer
How to make filer data available
To make filer data available to NFS clients, you need to do the following tasks:
- Export the filer's file system
- Mount the filer's file system
- Create a directory on the NFS client to act as a mount point
Exporting NFS clients
You must export the filer'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 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
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 filer 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 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
You can mount the filer's file system by using one of the following methods:
- Add entries for the directories exported from the filer for each client in the /etc/vfstab file (for Solaris clients) or /etc/fstab file (for non-Solaris clients)
- Use the UNIX mount command
- Use the UNIX automounter tool
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 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 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 mount point directory on an NFS client
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 filer directory on an NFS client
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 entry for the client in the /etc/vfstab file (or /etc/fstab) file, assuming that 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, 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 toaster-e1:/vol/vol0/home /n/toaster/home
Result
The file system is mounted immediately, but is no longer available upon reboot.
|
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00478
File: verify5.htm
Last updated: 11/25/03 17:22:13