Red Hat Bugzilla – Bug 179325
localhost are allways prefered regardless of weight
Last modified: 2007-11-30 17:07:22 EST
Description of problem:
When using a autofs map like
test fileserver1(1):/export/dir fileserver2(2):/export/dir
the localhost mountpoint for afs should only be used if everything else fail.
But if there is localhost then all weighting is just ignored. That's not what is
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add a indirect map (/test /etc/auto.test rw) to the /etc/auto.master
2. Add a similar line to the above to /etc/auto.test
There will always the bind mount be used
The first available mount point should be used
"Server proximity takes priority in the selection process. [...] The weighting
has effect only when selecting between servers with the same network proximity."
(In reply to comment #1)
> "Server proximity takes priority in the selection process. [...] The weighting
> has effect only when selecting between servers with the same network proximity."
That's not a solution for the problem. The problem is that afs is NOT nearer
than the servers. (And there are several other reasons to do it not the sun
Also it is not clear why redhat is destroying the function of the upstream
only to fit exactly the same braindammed way, sun did. (Sorry about the hard
words) The weighting is needed to override such wrong assignment. To make them
useless breaks the use of the package.
The point is that on linux it is expected that the weighting overrides all other
assignments. All known linux distributions including upstream do it the right
way. To destroy this feature in redhat create a high incompatibility to other
Sorry, but if redhat do add such incompatibility there should be a way to
switch it off.
The replicated server functionality that was committed in the autofs 4.1.x
stream was broken from the start, so citing the way it works upstream is not a
valid argument. I will also note that the upstream implementation may be
"fixed" in this regard moving forward.
There are many existing installations which include Solaris, AIX, HPUX, Linux,
and other operating systems, all using the same automounter maps. If one
implementation functions differently from the others, it constitutes a
I fully understand the merits of of the argument posed in bz #139417, but I am
averse to implementing something that makes Linux incompatible with other
I am not clear on why you are mixing NFS and AFS, but I will assume that you
have good reason to do so. If you are willing to post your maps and more
information about your configuration, I'm happy to work with you to find an
alternative solution to your problem.