This section describes configuring your appliance to export volumes. Before configuring the appliance to export volumes, you must find what, if any, volumes are currently being exported. The examples used in this section contain the following configurations:
To check the server to see the volumes being exported on the client, complete the following steps.
| 1 | From the Appliance Manager, select Setup tab > NFS > Exports. |
| 2 | View the existing configurations of exported and origin server volumes in the Configure Exported NFS Volumes table. |
Many UNIX distributions include the showmount command. To view export volumes from a UNIX client, enter:
client [~] showmount -e filer.lan.company.com
The preceding command returns:
This shows that the filer (the origin server) is exporting two different volumes.
Again on the client, enter the following commands:
The preceding commands return:
Currently, the appliance is not exporting any volumes.
Continuing from the previous example, you can configure the appliance to export two volumes from the filer, the origin server.
To configure the appliance to export two volumes from the filer, complete the following steps.
The config.nfs.exports option is used to create the mapping between volumes that you want the appliance to export and the actual volume on the origin NFS server.
To configure the export volume from the command line, enter
|
dnfs> set config.nfs.exports=\\ |
|
/vol/file filer.lan.company.com:/vol/vol0 anon=0,max-age=30 |
|
/vol/file/home filer.lan.company.com:/vol/vol0/home anon=0,max-age=100 |
|
\\ |
|
dnfs> set config.nfs.enable on |
To configure the export volume on the client, from the UNIX prompt
|
client [~] mount -o rw,bg,hard,intr,rsize=8192,wsize=8192 |
|
dnfs.appliance:/vol/file /t/dnfs.appliance/file |
|
client [~] cd /t/dnfs.appliance/file |
|
client [/t/dnfs.appliance/file] |
To the client, this volume will look the same as /vol/vol0 on filer.lan.company.com. An exception is if there are writes directly to the origin server that bypass the cache in the period between two reverifications.
This section presents some useful commands for working with statistics and status information.
Use the following commands to display NFS statistics.
dnfs> show status.nfs.bw_savings
status.nfs.bw_savings = 76%
or
dnfs> nfsstat
|
usage: nfsstat -h [ <hostname or ip address> ] |
To display all of the NFS statistics for a specific client, enter
dnfs> nfsstat -h client.lan.company.com
Statistics can be useful to determine if traffic is sent through the appliance as expected. To display a running tally of current operations, enter
dnfs> sysstat 1
A volume on an origin server can be used by many exports, as seen in the following example.
The following table shows the results of the preceding options.
Copyright © 1994-2002, Network Appliance, Inc. All rights
reserved.
Part No. 210-00319
File: pfs7.htm
Last updated: 11/12/02 13:06:05