12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Network File System 303update the configuration files on the NIS server, and they are populated to all clients afterthe NIS service is restarted on the clients. The update is almost seamless to the end user.The master configuration file is /etc/auto.master, Listing 13.2 shows the defaultauto.master file .LISTING 13.2Default auto.master File## $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $## Sample auto.master file# This is an automounter map and it has the following format# key [ -mount-options-separated-by-comma ] location# For details of the format look at autofs(5).#/misc /etc/auto.misc/net -hosts## Include central master map if it can be found using# nsswitch sources.## Note that if there are entries for /net or /misc (as# above) in the included master map any keys that are the# same will not be seen as the first read key seen takes# precedence.#+auto.master13As you can see, the mounts for the /misc/ directory are defined in a different file. Oneadditional configuration file per directory is controlled by autofs. The /misc/ directory in<strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong> <strong>Linux</strong> is reserved for autofs mounts. Because /etc/auto.misc is alreadycreated, add NFS mounts to it in the following format:mountdir server.example.com:/exporteddirReplace mountdir with the name of the /misc/ subdirectory you want the share to bemounted. For example, to use the directory /misc/data/, replace mountdir with data.This subdirectory is dynamically created when the share is mounted. Do not create it onthe local filesystem.Replace with a list of comma-separated NFS options discussed previously inthis chapter and found in the NFS man page (accessed with the man nfs command).Replace the server name and exported directory as well.If a directory is used by autofs as a mount point, the directory should not be written tounless the remote filesystem is mounted in that directory. Consider it a reserved directoryfor autofs.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!