NFS Services Administrator Guide for 11i v3 (5900-2572, September 2012)
nfs
Specifies that the filesystem type is NFS
-o
Enables you to use some of the specific options of the share command, such as sec,
async, public, and others.
-d
Enables you to describe the filesystem being shared
When NFS is restarted or the system is rebooted, the /etc/dfs/dfstab file is read and all
directories are shared automatically.
2. Share all the directories configured in the /etc/dfs/dfstab file without restarting the server
by using the following command:
shareall
This command reads the entries in the /etc/dfs/dfstab file and shares all the directories.
3. Verify that your filesystem is shared by entering the following command:
share
An output similar to the following output is displayed:
/home rw=Developers, ro= "home dirs"
All the directories that you have shared must be present in this list.
Manual Share
To share your directories manually, follow these steps:
1. Enter the following command to add a directory to the server’s internal list of shared directories:
share -F nfs directory_name
2. Enter the following command to verify if your filesystem is shared:
share
An output similar to the following output is displayed:
/tmp rw=hpdfs001.cup.hp.com ““
/mail rw ““
/var rw ““
The directory that you have shared must be present in this list.
For more information on the share command and a list of share options, see share_nfs(1M) and
share(1M).
NOTE: Prior to ONCplus version 11.31.16, when share command line length exceeded 4095
characters, further updates to the sharetab file resulted in failure. From ONCplus version 11.31.16
onwards, share command has been modified to limit the share command line length to 4095
characters. Additionally, share command reports a warning message when the share command
line length exceeds 4095 characters. The 4095 character limit also includes the 8 internally
appended characters.
Examples for Sharing directories
This section discusses different examples for sharing directories.
• Sharing a directory with read-only access
share -F nfs -o ro /tmp
Configuring and Administering an NFS Server 23