HP-UX System Administrator's Guide: Routine Management Tasks

2. On the remote system, do the following:
a. Create an empty directory:
mkdir /home/lisa
b. Add entry to /etc/fstab :
mailserver:wsj6700:/home/lisa /home/lisa nfs rw,suid 0 0
c. Mount all directories:
mount -a
See “Exporting a File System (HP-UX to HP-UX)” (page 149) for more information.
Exporting a File System (HP-UX to HP-UX)
Use either of the following procedures to set up NFS shares on the server.
“Using HP SMH to Export a File System” (page 149)
“Using the Command Line to Export a File System” (page 149)
Using HP SMH to Export a File System
1. Log in to the server as root.
2. Access the HP SMH homepage. Select Tools, Network Services Configuration,
Networked File Systems, Share/Unshare File Systems (Export FS).
3. Enable NFS if necessary:
4. Choose Share (Export) a File System ...
5. Fill in the fields identifying the file systems to be shared, their access privileges,
and the systems that can import them. Use the online help if necessary.
The shared file system should now be listed in the /etc/dfs/sharetab file.
Additional information is contained in help.
Using the Command Line to Export a File System
1. Log into the server as root.
2. If the system is not already configured as an NFS server:
a. Edit /etc/rc.config.d/nfsconf, changing the values for NFS_SERVER
and START_MOUNTD to 1.
b. Run the nfs.server script:
/sbin/init.d/nfs.server start
3. Edit /etc/dfs/sharetab, adding an entry for each directory that is to be shareed.
The entry identifies the directory and (optionally) the systems that can import it.
The entry should look something like this:
/opt/netscape async,anon=65534,access=wsb2600:appserver:wsb2600:wszx6
How To: 149