/data Directory is shared from the server1.example.com server. Mount the shared directory that:
d. when user try to access, automatically should mount
e. when user doesn’t use mounted directory should unmount automatically after 50 seconds.
f. Shared directory should mount on /mnt/data on your machine.
6. vi /etc/auto.master
/mnt /etc/auto.misc –timeout=50
7. vi /etc/auto.misc
8. data -rw,soft,intr server1.example.com:/data
9. service autofs restart
10. chkconfig autofs on
When you mount the other filesystem, you should unmount the mounted filesystem, Automount
feature of linux helps to mount at access time and after certain seconds, when user unaccess the
mounted directory, automatically unmount the filesystem.
/etc/auto.master is the master configuration file for autofs service. When you start the service, it
reads the mount point as defined in /etc/auto.master.