I have used autofs to automatically mount/unmount NFS since FreeBSD 10.3 (server and client 11.1 now) and have since then experienced problems with autounmountd not removing entries made by automount from /var/db/mount(d)tab.
When mounting the NFS manually
Entries in /var/db/mounttab on the client and /var/db/mountdtab on the server get created and removed.
With autofs on the client, those entries get created but they are never removed by autounmountd so they pile up in the files every time mount/unmount event happens.
I have debugged that like crazy with all involved services in debug-mode but couldn't find any sign of map type or mount-options would make a difference.
Last year, when my client was running Debian the entry from /var/db/mountdtab on the NFS server got reliable removed when autofs unmounted NFS.
Could it be a bug?
When mounting the NFS manually
mount -t nfs 192.168.1.3:/storage/video /mnt/
and then unmounting it with umount /mnt/
it works.Entries in /var/db/mounttab on the client and /var/db/mountdtab on the server get created and removed.
With autofs on the client, those entries get created but they are never removed by autounmountd so they pile up in the files every time mount/unmount event happens.
I have debugged that like crazy with all involved services in debug-mode but couldn't find any sign of map type or mount-options would make a difference.
Last year, when my client was running Debian the entry from /var/db/mountdtab on the NFS server got reliable removed when autofs unmounted NFS.
Could it be a bug?