NFS Services Administrator's Guide (762805-001, March 2014)
You can mount a filesystem using the following methods:
• Automatic Mounting at System Boot time
To set up a filesystem for automatic mounting at system boot time, you must configure it in the
/etc/fstab file. All filesystems specified in the /etc/fstab file are mounted during system
reboot.
• Manual Mounting
When you manually mount a filesystem, it is not persistent across reboots or when NFS client
restarts. If the NFS client is restarted or the system is rebooted, the filesystem must be mounted
again after the reboot. To mount filesystems manually, you must run the mount command.
For a list of mount options, see mount_nfs(1M).
Consider the following points before you mount a directory:
• Before you mount a remote directory on your system, you must configure the remote system
as an NFS server and share the directory.
• You must configure a local directory as the mount-point for the NFS filesystem. HP recommends
that the mount-point not contain files and directories. However, if the local directory contains
files and directories, they will be hidden and inaccessible while the remote directory is mounted.
Mounting a remote directory on an NFS client
To mount a directory on an NFS client, select one of the following methods:
Automatic Mount
To configure a remote directory to be automatically mounted at system boot, follow these steps:
1. Add an entry to the /etc/fstab file, for each remote directory you want to mount on your
system. Following is the syntax for the entry in the /etc/fstab file:
server:remote_directory local_directory nfs defaults 0 0
or
server:remote_directory local_directory nfs option[,option...] 0 0
2. Mount all the NFS file systems specified in the /etc/fstab file by entering the following
command:
/usr/sbin/mount -a -F nfs
3. Verify that your filesystem is mounted by entering the following command:
nfsstat -m
An output similar to the following output is displayed:
/mnt/nfs149 from nfs149:/
Flags:
vers=4,proto=tcp,sec=sys,hard,intr,link,symlink,devs,rsize=
32768,wsize=32768,retrans=5,timeo=600
Attr cache:acregmin=3,acregmax=60,acdirmin=30,acdirmax=60
The directory that you have mounted must be present in this list.
Manual Mount
To mount your directories manually, follow these steps:
1. To mount a remote directory manually, enter the following command:
mount serv:directory_name directory-name
2. Verify if your filesystem is mounted by entering the following command:
nfsstat -m
An output similar to the following output is displayed:
Configuring and administering NFS clients 37