Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Configuring a Workgroup
Sharing Files and Applications via NFS and ftp
Chapter 4400
NOTE You do not have to call the directory on the client by the same name it
has on the server, but it will make things simpler (more transparent) for
your users if you do. If you are running applications configured to use
specific path names, you must make sure those path names are the same
on every system on which the applications run.
Using the
Command Line to
Import a File
System
Before you start: make sure the client is configured to import file systems
via NFS. The simplest method is to use SAM; see Step 3 under “Using
SAM to Import a File System” on page 399.
Step 1. Log in to the client as root.
Step 2. Create the local directory on the client if it does not exist, for example:
mkdir /opt/adobe
NOTE If the directory does exist, its contents will be hidden when you mount
the remote directory, and will not be usable until you unmount it.
Step 3. Add an entry to /etc/fstab so the file system will be automatically
mounted at boot-up.
nfs_server:/nfs_server_dir /client_dir nfs defaults 0 0
For example:
fancy:/opt/adobe /opt/adobe nfs defaults 0 0
Step 4. Mount the remote file system.
The following command forces the system to reread /etc/fstab and
mount all the file systems:
/usr/sbin/mount -a
Importing HP-UX Directories to NT
You can use either the HP CIFS/9000 product or other third-party
products to have access to PC file systems.