NFS Services Administrator's Guide
Configuring and Administering NFS
Configuring and Administering an NFS Server
Chapter 226
Configuring and Administering an NFS Server
An NFS server is a machine that “exports” its local directories (makes
them available for client machines to mount using NFS). On the NFS
client, these mounted files and directories look to users like part of the
client’s local file system. An NFS server can also be an NFS client.
Following are the tasks involved in configuring and administering an
NFS server. The first two tasks are the only ones required to get your
server up and running.
• To Make Directories Available to NFS Clients (Export Directories)
• To Enable NFS Server Capability
• To Remove (Unexport) an Exported Directory
• To Enable PC NFS Server Capability
• To Disable NFS Server Capability
This section tells you how to perform these tasks, by editing files and
issuing HP-UX commands. However, Hewlett-Packard recommends that
you use SAM to configure and administer NFS. SAM (System
Administration Manager) is Hewlett-Packard’s windows-based user
interface for performing system administration tasks. To run SAM, type
sam at the HP-UX prompt. SAM has an extensive online help facility.
To Make Directories Available to NFS Clients (Export
Directories)
1. Add a line to the /etc/exports file for each directory you want to
make available to NFS clients, using a text editor like vi. If the
/etc/exports file does not exist on your system, you will have to
create it. Following is the syntax of a line in the /etc/exports file:
directory [-option[,option]]
Type man 4 exports at the HP-UX prompt for a complete list of the
export options. After adding your exported directories to the
/etc/exports file, you must enable NFS server capability before
NFS clients can mount your exported directories. See “To Enable
NFS Server Capability” on page 30.