[DragonFlyBSD - Bug #3324] Re: DragonFly automountd NFS mounting broken

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Fri Oct 7 02:48:29 PDT 2022


Issue #3324 has been updated by tkusumi.


I guess you meant to say you had a problem in autofs' intermediate inmemory directories when using direct map.

Try without "-noauto" and "-hosts" if you haven't.
Those special map options make things less simple.
If that works, it's specific to special map options, which basically come from userspace scripts.

See "INDIRECT VERSUS DIRECT MAPS" section in auto_master(5) for details.
https://man.dragonflybsd.org/?command=auto_master&section=5


I tried with below, and didn't have any issue automounting NFS under autofs directories "n", "f", "s", under HAMMER directory "/mnt".

<pre>
# cat /etc/auto_master | grep "^/-"
/-              auto_nfs
# cat /etc/auto_nfs
/mnt/n/f/s -intr,nfsv3 192.168.0.123:/mnt/exports
</pre>

----------------------------------------
Bug #3324: Re: DragonFly automountd NFS mounting broken
http://bugs.dragonflybsd.org/issues/3324#change-14405

* Author: tkusumi
* Status: Closed
* Priority: Normal
* Target version: 6.4
* Start date: 2022-09-05
----------------------------------------
<pre>
Right now when I try using autofs to automount NFS shares it fails each
time with the same error. Can't tell when it was definitely working, but
that was more then a month ago:

<snip>

Probably this has something to do with automountd indirect directories,
that's why direct mounts are not working.
</pre>

I don't have any issue with automount with indirect map.

Also note that these intermediate directories in indirect map have nothing to do with autofs itself.
These are just regular directories in parent directory's filesystem.

<pre><code class="shell">
# cat /etc/auto_master
# $FreeBSD$
#
# Automounter master map, see auto_master(5) for details.
#
#/net           -hosts          -nobrowse,nosuid,intr
# When using the -media special map, make sure to edit devd.conf(5)
# to move the call to "automount -c" out of the comments section.
#/media         -media          -nosuid,noatime
#/-             -noauto
/mnt/a/b/c/d/e          auto_nfs
# cat /etc/auto_nfs
NFS -intr,nfsv3 192.168.0.123:/mnt/exports
# automount -L
/mnt/a/b/c/d/e                                  auto_nfs             # indirect map referenced at /etc/auto_master:10
# mount | grep autofs
map auto_nfs on /mnt/a/b/c/d/e (autofs)
# mount | grep automounted
# tree /mnt/a > /dev/null    <------ this is where a/b/c/d/e are mkdir'ed before automount
# mount | grep automounted
192.168.0.123:/mnt/exports on /mnt/a/b/c/d/e/NFS (nfs, automounted)
</code></pre>




-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list