Date: Sat, 19 Mar 2016 02:06:40 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 208071] AutoFS seems to disturb NFS server Message-ID: <bug-208071-6-bofAZB1AQS@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-208071-6@https.bugs.freebsd.org/bugzilla/> References: <bug-208071-6@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208071 Rick Macklem <rmacklem@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rmacklem@FreeBSD.org --- Comment #5 from Rick Macklem <rmacklem@FreeBSD.org> --- Every time you mount(8) any file system on the NFS server, mountd reloads the /etc/exports. This has two effects: 1 - Unless you are running mountd with the "-S" option, the file systems will become unexported for a short period of time during the reload. 2 - If the new file system is mounted on top of the exported file system, mountd will try to export that new file system. --> NFS mounts can never be exported, so if the new file system is an NFS client mount, the export will no longer work. (This has been the case since 1985 and is in part the case because you can't safely put a file handle inside a file handle.) To fix #1, add "-S" to mountd_flags. #2 just won't work and needs to be avoided. You can look at /var/log/messages for entries related to export problems generated by mountd. I don't know amd-utils or autofs, but it may be that one of them uses mount(8) and the other does not. FreeBSD's mount(8) always sends a SIGHUP to mountd, which makes it reload /etc/exports. Basically #1 and #2 only occurs because mountd reloads /etc/exports and that happens when mountd receives a SIGHUP. It may be that amd-utils doesn't send a SIGHUP to mountd?) rick --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208071-6-bofAZB1AQS>