Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS v. 4 > Issue <<  105 of 628 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 9532
Last update: 02-08-07
Issue:
How can I configure multimount in autofs 4?
Resolution:

Release found: Red Hat Enterprise Linux 3 and Red Hat Enterprise Linux 4

Solution:

Multi-mount entries allow the user to specify a directory hierarchy that will be mounted on the system.

For example, In auto.home, enter the following autofs multimount entry.

<SERVERNAME> -rw,hard,intr /[server] -ro nfsserver.com:/[path] \
/data nfsserver.com:/data \
/home nfsserver.com:/home
Substitute the required SERVERNAME and in the /etc/auto.master file, append the line:
/net /etc/auto.home --timeout=60

After restarting autofs, mount the multimount using the key <SERVERNAME>

Test it by running the command:

ls /net/servername
or
cd /net/servername

In this example, note that the multiple NFS share from the server are mounted under the directory /net/servername, like:

ls /net/servername
[server] usr home

This example demonstrates how to cobble together a single directory structure from multiple servers. One point to note here is that the "servername" directory contains both an NFS-mounted file system, and mount points beneath it. Currently, when any directory in this hierarchy is accessed, the automount daemon mounts every entry in the directory hierarchy. The expiry of a multimount entry also happens atomically. This is the mechanism used to implement -hosts. The program map auto.net generates multi-mount entries on the fly and the daemon mounts them when /net/<SERVERNAME> is accessed. The <SERVERNAME> is used as the key. For more information please refer to the autofs(5) man page:

$ man 5 autofs


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS v. 4 > Issue <<   105  of  628  >>