How to autofs NFS automount
Automount will mount a filesystem on demand, just by issuing an ls or a cd to a directory
An example to mount myserver:/oracle/test on /export/oracle in the local machine :
1) Create the mount point, and define the file to use by autofs
a) vi / etc / auto.master
/ export /etc/ auto.export
****We are defining the mount point, and the file that contains the mount information
2) We must now create the /etc/ auto.export file
a) vi / etc / auto.export
oracle soft, int, rw myserver: /oracle/ test
3) We must change the value of BROWSE_MODE in / etc / sysconfig / autofs to let mount the filesystem with a cd or ls.
a) vi / etc / sysconfig / autofs
# BROWSE_MODE - maps are browsable by default.
#
BROWSE_MODE = "yes"
4) Start autofs
a) /etc/init.d/ autofs start
b) chkonfig autofs on
No you can mount myserver:/oracle/test on /export/oracle by jus cd in to the directory.
Need Help? Join Our Chat Room




1 Comments:
Editing the etc/sysconfig/autofs file made my autofs work. I referenced 3 Redhat books and none mentioned about the config file. Thank you very much for the steps for autofs! From Seattle, WA USA
4 December 2009 14:20
Post a Comment
Subscribe to Post Comments [Atom]
<< Home