HP-UX System Administrator's Guide: Configuration Management

2. If the system is not already configured as an NFS server:
a. Edit /etc/rc.config.d/nfsconf, setting the following values:
NFS_CORE=1
NFS_SERVER=1
START_MOUNTD=1
NOTE: You can also use the setoncenv command to set and display NFS
and other Open Network Computing configuration variables. See
setoncenv(1M).
b. Run the nfs.server script:
# /sbin/init.d/nfs.server start
3. Edit /etc/dfs/dfstab, adding an entry for each directory that is to be shared.
The entry identifies the directory and (optionally) the systems that can import it.
The entry should look something like this:
share -F nfs -o access=dept27:wsj6700 /opt/hp/gnu/bin700/emacs
See share_nfs(1M) for more information on the -o suboptions access, ro, and rw.
4. To share all the entries in /etc/dfs/dfstab:
# /usr/sbin/shareall
Or to just share the new file system:
# /usr/sbin/share /opt/hp/gnu/bin700/emacs
Mounting a Shared File System (HP-UX to HP-UX)
Before you begin, you need to:
Check that the directory on the local (client) system that you are mounting on
either:
Does not already exist; or
Is empty; or
Contains data that will not be needed as long as the remote directory is
mounted.
In this case, make sure that no one has open files in the local directory and that
it is not anyone’s current working directory. For example, if you intend to
mount on a directory named /mydir, enter the following on the client:
# fuser -cu /mydir
78 Configuring Networking