SUSE Support

Here When You Need Us

Inconsistent automount behavior with /net (auto.net)

This document (3174912) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Desktop 10
SUSE Linux Enterprise Server 10

Situation

When autofs 4.x and it's supplied auto.net script is in use, there is some inconsistency in how the mounts take place.
 
When a user changes directory (cd) to /net/server1, if server1 only has one export (for example, /ex1) then server1:/ex1 is mounted directly in /net/server1. In other words, a directory listing of /net/server1 would show the contents of ex1. It would not show the ex1 subdir entry.
 
But if server1 has two or more exports (for example, /ex1 and /ex2) then ex1 is mounted at /net/server1/ex1 and ex2 is mounted at /net/server1/ex2.
 
The end result is that individual mount points paths can vary just because the total number of exports on the remote server changes. This can lead to unexpected inconsistencies.

Resolution

A new option has been created to the automounter in order to force consistency. In /etc/auto.master add "-multi" as an option. For example:
 
/net /etc/auto.net -multi
 
This will cause automounter to mount from single-export servers in the same way as the multi-export server. It other words, both will create the full remote subdir path under /net/servername instead of mounting directly in /net/servername.
 
For this new option to be recognized, autofs must be updated.
 
SLE 10 (first shipping) contains autofs-4.1.4-23.4, which does not contain the new feature. SP1 contain autofs-4.1.4-23.14, which does contain the feature.
 
Another way to check for this feature (besides just trying it out) would be:
 
rpm -qi autofs
 
If the autofs package present is *newer* than 4.1.4-23.4 *and* has a build date of September 7 2006 or later, this feature should be present.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3174912
  • Creation Date: 27-Jul-2007
  • Modified Date:05-Mar-2021
    • SUSE Linux Enterprise Desktop
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.