» Linux » Examen sur Linux » Examen 201 : Advanced Administration » Section 4 » Question 4/20
4.You are in charge of a domain. Your developers have asked that mirrors of certain sites be placed as actual directories off the default path. Specifically they have asked that the ftp.example-debian.org Debian tree should be mapped at /usr/local. Assume that ftp.example-debian.org does an NFS export of their site. What would be the correct entry in the /etc/auto.master file?

/usr/local/debian ro ftp.example-debian.org:/pub/debian
/usr/local/debian /etc/auto.debian with /etc/auto.debian containing debian-ro,soft,intr:ftp.exampledebian. org:/pub/debian
/usr/local/debian :etc/auto.debian with /etc/auto.debian containing debian:rw,soft,intr:ftp.exampledebian::/pub/debian
/etc/auto.debian with /etc/auto.debian containing debian-ro,soft,intr:ftp.exampledebian. org:/pub/debian
/etc/auto.debian with /etc/auto.debian containing debian:rw,soft,intr:ftp.exampledebian. org::/pub/debian

Explanation: Autofs uses the automount daemon to manage your mount points by only mounting them dynamically when they are accessed. Autofs consults the master map configuration file /etc/auto.master to determine which mount points are defined. It then starts an automount process with the appropriate parameters for each mount point. Each line in the master map defines a mount point and a separate map file that defines the file systems to be mounted under this mount point. In this question, the /etc/auto.master file would contain the line "/usr/local/debian /etc/auto.debian". /usr/local/debian is the mount point on the local machine. /etc/auto.debian is the name of the map file that defines what should be mounted at the mount point. The /etc/auto.debian file should contain "debian-ro,soft,intr:ftp.example-debian.org:/pub/debian". This contains the mount point (debian), followed by some mount options (ro,soft,intr) followed by the directory to be mounted in the form of hostname: directory (ftp.example-debian.org:/pub/debian).

Reference: http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-nfs-mount.html

Incorrect Answers
A: There is no map file defined in this line.
C: The syntax is wrong. usr/local/debian :etc/auto.debian should be /usr/local/debian /etc/auto.debian.
D: There is no mount point (usr/local/debian) defined in this answer.
E: There is no mount point (usr/local/debian) defined in this answer.

« Question 3 Question 5 »