Making gateway data available to NFS hosts
Tasks to make gateway data available
To make gateway data available to NFS hosts, you need to do the following tasks:
- Export the gateway's file system
- Mount the gateway's file system to the NFS host
Exporting NFS hosts
You must export the gateway's file systems before NFS hosts can mount them. To export the gateway's file systems, complete the following steps.
Step
|
Action
|
|
1
|
Determine the directories that you want to export on various volumes. For example, valid path names for directories entered at the gateway prompt could be:
/vol2/eng/hardware /vol2/eng/software
|
|
2
|
Use a text editor from an NFS host to open the gateway /etc/exports file.
|
|
3
|
Add the gateway 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 Data ONTAP System Administrator File Access Management Guide.
Example
/vol/vol0/home -access=10.1.1.20,root=10.1.1.20 /vol2/eng/hardware /vol2/eng/software
|
|
4
|
Save the file and exit the text editor.
|
Mounting NFS host file systems
You can mount the gateway's file system by using one of the following methods:
Adding entries to the /etc/vfstab file
To mount the gateway'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 host to open the /etc/vfstab (or /etc/fstab) file.
|
|
2
|
Add the entries for the directories exported from the gateway in each host's /etc/vfstab file (or /etc/fstab) file.
Example
toaster:/vol/vol0/home nfs - yes - rw,bg,hard toaster:/vol2/eng/hardware toaster:/vol2/eng/software
Note The /vol/vol0/home directory is used as a sample gateway directory in this procedure. You should use a path that exists on your gateway.
|
|
3
|
Save the file and exit the text editor.
|
|
4
|
Reboot the hosts.
Result
The hosts mount the file systems automatically when they boot.
|
Using the UNIX mount command
To mount the gateway's directory on the NFS host, complete the following steps.
Step
|
Action
|
|
1
|
At the NFS host, create a directory to act as a mount point, for example:
mkdir /n/toaster/home
|
|
2
|
To mount the gateway's /vol/vol0/home directory to /n/toaster/home, add the following line to the NFS host's /etc/vfstab file (or /etc/fstab file) if the host is on the same network as the gateway's e0 Ethernet interface:
toaster-e0:/vol/vol0/home /n/toaster/home nfs rw 0 0
Result
The file system is mounted when the host reboots.
|
|
3
|
To mount the /vol/vol0/home directory without a host reboot, enter the following command at the NFS host:
mount toaster-e0:/vol/vol0/home /n/toaster/home
Result
After the /vol/vol0/home directory on the gateway is mounted, the user on the NFS host can create, modify, or remove files in /n/toaster/home.
|
|
4
|
Repeat Step 1 through Step 3 for each NFS host that requires access.
|
Copyright © 1994-2004, Network Appliance, Inc. All rights
reserved.
Part No. 210-00661
File: verify5.htm
Last updated: 04/13/04 09:26:42