The exportfs command
Using the exportfs command
You use the exportfs command to export and unexport volumes and directories. Depending on which options you use, the command exports the volumes and directories listed in the /etc/exports file or a specific volume or directory.
Syntax
The syntax for the exportfs command is as follows:
exportfs [ -aiuv ] [ -o options ][ filer_directory_path ]
The following table describes the options.
|
Option
|
Description
|
|---|
|
-a
|
Exports all the entries listed in the /etc/exports file.
|
|
-u
|
Unexports all the entries listed in the /etc/exports file.
Note: When you use the -u option with the -a option, all exports are unexported regardless of whether they were created from the /etc/exports file or with the -o option.
|
|
-i
|
Exports all the export entries listed in the /etc/exports file, but ignores the options specified for the entries.
|
|
-v
|
Prints each path name as it is exported or unexported.
|
|
-o
|
Specifies the options for a volume or directory that you include in the command line.
Example
To export the /vol/vol/home/terry directory to the host "mixer" with read/write access, you enter the following command:
exportfs -o -rw=mixer /vol/vol0/home/terry
Note: Volumes and directories that are exported directly rather than through the /etc/exports file remain exported until canceled using the -au option or until the filer is rebooted.
|
Canceling all exports
To cancel all exports, enter the following command:
exportfs -au
Updating exports through /etc/exports
When you make changes to the /etc/exports file, take one of the following actions to make the changes take effect:
- Run the exportfs -a command.
Or
If you delete entries from the /etc/exports file when you make changes, take one of the following actions to activate the changes and ensure that deleted exports are deactivated:
- Run the following commands:
exportfs -au
exportfs -a
Or
Copyright © 1999, Network Appliance, Inc. All rights
reserved.
Part No. 210-02334
File: nfs6.htm
Last updated: 04/26/99 08:11:30