NFS Services Administrator Guide (5900-3045, March 2013)

1069548396 ? 0:00 rpc.lockd
1069640883 ? 0:00 rpc.statd
No message is displayed if the daemons are not running.
To start the lockd and statd daemons, enter the following command:
/sbin/init.d/lockmgr start
4. Enter the following command to run the NFS startup script:
/sbin/init.d/nfs.server start
The NFS startup script enables the NFS server and uses the variables in the
/etc/rc.config.d/nfsconf file to determine which processes to start.
Sharing Directories with NFS Clients
The share command exports or shares local directories with NFS clients. If you use the share
command without specifying any options, it displays the list of currently shared directories. You
can also use the share command with options to specify access restrictions and other access
options for the shared directories.
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:
When you share a mounted filesystem as NFS filesystem through Loopback Filesystem (LOFS),
issues mat arise at the NFS server and NFS client. For more information regarding this problem
and the suggested workaround, see “Sharing a mounted filesystem as NFS filesystem through
LOFS is not recommended” (page 93).
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 21