[Bug 254282] 13.0-RC2: NFS export from nullfs mount doesn't work as of 13.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 22 Jun 2021 01:58:20 UTC

Rick Macklem <rmacklem@FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |rmacklem@FreeBSD.org

--- Comment #2 from Rick Macklem <rmacklem@FreeBSD.org> ---
The problem is your specification of "late" on
the nullfs mount lines.

If you look in /etc/rc.d, you'll find "statd"
requires "nfsd", which requires "mountd".
However, it specifies BEFORE DAEMON.
"mountlate" requires DAEMON.
--> As such, mountd is executed before mountlate,
    which is what mounts the "late" file systems.

To fix this, you could:
- Drop "late" from the /etc/fstab lines, if you
  don't need to mount them "late".
- If you don't run rpc.statd and rpc.lockd, you
  could remove DAEMON from "statd" and "lockd"
  and then add "mountlate" to the REQUIRES line
  in "mountd".

I don't know why this worked for FreeBSD-12, but
I suspect that some DAEMON related dependency was
added to the scripts (ie. they were broken).
- Although rpc.statd and rpc.lockd are NFSv3 related
  protocols I avoid using, they need to be running
  before nfsd (for server side locking) and NFS
  mounts are done for client side locking, if you
  are using them.

I can't think of a way to fix this so that mountd
can start after "mountlate" and still work correctly,
for those who are using rpc.statd, rpc.lockd.

You are receiving this mail because:
You are the assignee for the bug.