NFS Services Administrator's Guide (B.11.31.03) August 2008

NOTE: The exportfs command, used to export directories in versions prior to
HP-UX 11i v3, is now a script that calls the share command. HP provides a new
exportfs script for backward compatibility to enable you to continue using exportfs
with the functionality supported in earlier versions of HP-UX. To use any of the new
features provided in HP-UX 11i v3 you must use the share command. In HP-UX 11i
v3, the/etc/dfs/dfstab file replaces the /etc/exports file and the /etc/dfs/sharetab
file replaces the /etc/xtab file.
You can share a filesystem in the following methods:
Automatic sharing
Filesystems configured in the /etc/dfs/dfstab file are shared automatically
during system reboot. To set up a directory for automatic sharing, you must
configure it in the /etc/dfs/dfstab file.
Manual sharing
Filesystems can also be shared manually. However, if the system is restarted or
rebooted, the filesystems will no longer be shared and must be re-shared before
it can be accessed by NFS clients. To share directories manually, you must run the
share command.
Sharing using scripts
Sharing of filesystems using scripts, such as Serviceguard, is a variant of manual
sharing. Configure the filesystems that you share across your Serviceguard clusters
through scripts that are executed under Serviceguard’s control. For more
information on configuring the filesystems for sharing using scripts, see Managing
Serviceguard, 12th Edition, March 2006.
Consider the following points before you share a directory:
You cannot share a directory and its ancestor or descendant if they are on the same
disk or logical volume.
For example, if you share the root directory (/), you cannot share /opt, unless /
and /opt are on different disks or logical volumes. Similarly, if you share
/opt/frame, you cannot share /opt, unless /opt/frame and /opt are on
different disks or logical volumes.
Configuring and Administering an NFS Server 31