Red_Hat
RH302 · Question #86
/Data Directory is shared from the server1.example.com server. Mount the shared directory that: a. when user try to access, automatically should mount b. when user doesn't use mounted directory…
1. vi /etc/auto.master /mnt /etc/auto.misc --timeout=50 2. vi /etc/auto.misc 3. data -rw,soft,intr server1.example.com:/data 4. service autofs restart 5. chkconfig autofs on When you mount the other filesystem, you should unmount the mounted filesystem, Automount feature of…
Network configuration
Question
/Data Directory is shared from the server1.example.com server. Mount the shared directory that: a. when user try to access, automatically should mount b. when user doesn't use mounted directory should unmount automatically after 50 seconds. c. Shared directory should mount on /mnt/data on your machine.
Explanation
- vi /etc/auto.master /mnt /etc/auto.misc --timeout=50
- vi /etc/auto.misc
- data -rw,soft,intr server1.example.com:/data
- service autofs restart
- 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.
Topics
#autofs#NFS mount#automount timeout#/etc/auto.master
Community Discussion
No community discussion yet for this question.