Re: autofs + default /net map + NFS4 — how to?

Rick Macklem rmacklem at
Thu May 13 21:10:59 UTC 2021

lev wrote:
[stuff snipped]
>I could mount "blob:/home" or "blob:/ports" with mount -t nfs like this:
># mount -t nfs -o nfsv4,tcp blob:/home /mnt
Oh, and you might want to consider using "minorversion=1" (or even 2
if/when you are running FreeBSD13 or later).
NFSv4.1 (and 4.2) are much better protocols than NFSv4.0 and the
implementations should now be pretty solid, so long as you avoid
enabling delegations (off by default).
- NFSv4.1 was a minor revision in name only. The RFC is only 500+ pages long.


# ls /mnt
.... lev ....
# umount /mnt
# ls /mnt

  No problem, it works.

I've added "nfsv4,tcp" options to "/net" map in "/etc/auto_master", run "automount" and try:

# cd /net/blob/home
/net/blob/home: No such file or directory
# ls /net
# ls /net/blob
# cd /net/blob/usr/home
WARNING: autofs_trigger_one: request for /net/blob/usr/ completed with error 5, pid 1519 (csh)
May 13 23:05:15 hamster automountd[2564]: mount failed
... <snip 4 more repitions of the same> ...
/net/blob/usr/home: Input/output error

Looks like it is because "autofs" uses "showmount -E" to determine available mount points, and "showmount" shows NFSv3 mounts, which conflicts with NFSv4.

Should it work out-of-the-box? Or I need to custom-fix script in "/etc/autofs" (I don't like this idea!)

// Lev Serebryakov
freebsd-fs at mailing list
To unsubscribe, send any mail to "freebsd-fs-unsubscribe at"

More information about the freebsd-fs mailing list