Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jan 2020 16:02:19 -0800
From:      Lee Damon <nomad@castle.org>
To:        freebsd-stable@freebsd.org
Subject:   two questions about autofs on FBSD
Message-ID:  <578798e4-5e26-6116-9ffe-6dcc4f08ed59@castle.org>

next in thread | raw e-mail | index | archive | help
I am (reluctantly) replacing am-utils (amd) with autofs. To do this I
need to replace a lot of functionality that I've had embedded for a very
long time and which my users absolutely rely on. I have two (so far)
questions that I need to solve before I can proceed with this process.

Question 1 - One of those features is the ability to use a symlink
instead of a NFS mount. For a simplistic example:

 /homes/accountname -> /net/server/home/accountname

On Linux this is a : entry in /etc/auto.homes:
 accountname  :/net/server/home/accountname

but when I test it on FBSD 11-3 I get:
  automountd[1784]: "mount -t nfs -o automounted,retrycnt=1
/net/[redacted]/vol/home/[redacted] /homes/[redacted]/", pid 1785,
terminated with exit status 1

Which sure looks like it is trying to NFS mount the local filesystem,
which clearly won't work.

I use this functionality all over the place including linking into AFS
space and making smart decisions of which subdirectory to present, so I
can't just turn all of the links into NFS mounts.

I found a bug report against the 10.1 version of autofs asking for the
linking functionality but it was closed with no comment. I'm not finding
any other documentation that references how to do a link.

The media mount seems to be done via a special script instead of just a
link. So, I have to ask, is this something that can be done? How do I do it?

Question 2 - How do I get automount to reload a map if a filesystem is
already mounted? It looks like issuing the "automount" command with no
flags should get it to reload maps but it seems to be ignoring any
changes to a map if that map has anything active.

99% of my map updates are to add a new filesystem to an existing map and
I need all of the hosts to pick up the changes the next time CM runs. On
Linux "systemctl reload autofs" does it but "service automount reload"
doesn't exist, and as I said, "automount" ignores map changes for active
maps. I'm _certain_ I'm missing something simple and obvious here, I
can't believe there's no way to reload an active map.

Any information related to either question is much appreciated.

thanks
nomad



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?578798e4-5e26-6116-9ffe-6dcc4f08ed59>