Novell LINUX ENTERPRISE DESKTOP 10 SP2 - DEPLOYMENT GUIDE 08-05-2008 Deployment Manual page 722

Table of Contents

Advertisement

system is given. This is a concept called pseudo file system, which is explained in
Sec-
tion 37.4.1, "Exporting for NFSv4 Clients"
(page 708).
37.3.2 Using the Automount Service
As well as the regular local device mounts, the autofs daemon can be used to mount
remote file systems automatically too. To do this, add the following entry in the your
/etc/auto.master file:
/nfsmounts /etc/auto.nfs
Now the /nfsmounts directory acts as a root for all the NFS mounts on the client if
the auto.nfs file is completed appropriately. The name auto.nfs is chosen for
sake of convenience—you can choose any name. In the selected file (create it if it does
not exist), add entries for all the NFS mounts as in the following example:
localdata -fstype=nfs server1:/data
nfs4mount -fstype=nfs4 server2:/
Activate the settings with rcautofs start. For this example, /nfsmounts/
localdata, the /data directory of server1, is then mounted with NFS and
/nfsmounts/nfs4mount from server2 is mounted with NFSv4.
If the /etc/auto.master file is edited while the service autofs is running, the au-
tomounter must be restarted for the changes to take effect. Do this with rcautofs
restart.
37.3.3 Manually Editing /etc/fstab
A typical NFS mount entry in /etc/fstab looks like this:
host:/data /local/path nfs rw,noauto 0 0
NFSv4 mounts may also be added to the /etc/fstab file manually. For these mounts,
use nfs4 instead of nfs in the third column and make sure that the remote file system
is given as // after the host: in the first column. The advantage of saving this infor-
mation in /etc/fstab is that commands for mounting can be shortened to just
mentioning the local mount point alone, for example:
mount /local/path
706
Deployment Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux enterprise desktop 10 sp2

Table of Contents