Bug 222106 - autounmountd does not remove entries in /var/db/mounttab
Summary: autounmountd does not remove entries in /var/db/mounttab
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 11.1-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-06 16:46 UTC by Matthias Oestreicher
Modified: 2017-09-09 15:13 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Oestreicher 2017-09-06 16:46:34 UTC
NFS via autofs:

Using autofs to (un)mount NFS, the 'autounmountd' does
not remove entries from /var/db/mounttab (on client) and
/var/db/mountdtab (on nfs-server) when client
disconnects after timeout.

Then running 'mount' on the client shows nfs filesystem is no longer
mounted.

But looking at 'showmount' on the server, shows client still connected
even if it isn't.

- map type makes no difference 
- mount options not changed from default

no problem though using "mount -t nfs ..." and "umount"
Then those entries are removed when unmounted.

Accessing the same nfs-server from a Fedora 26 or Debian 8
client via autofs (same autofs config as on FreeBSD) then the
entry on the server in /var/db/mountdtab is removed when client
disconnects.

This problem has existed since 10.3.

Also new setup server/client from scratch shows same
behavior.

My 2nd thread on the forum, regarding this problem:
https://forums.freebsd.org/threads/62232/#post-359377