Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2025 07:46:29 -0800
From:      Rick Macklem <rick.macklem@gmail.com>
To:        freebsd-fs@freebsd.org
Subject:   Re: problems setting up nfsv3 (zfs sharenfs) client,server
Message-ID:  <CAM5tNy65gZOzCvp=9s6o34RqtO9J3_ZZTN44m%2BVxR0EbwVLiWg@mail.gmail.com>
In-Reply-To: <aS22M67od8uM-0vi@int21h>
References:  <aS2g-vhe41nMvSzF@int21h> <CAM5tNy6U4S%2BQomtmkqJxOE40sH=%2BrYjPVwb-wUaUJr7BLf%2BWnw@mail.gmail.com> <aS22M67od8uM-0vi@int21h>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, Dec 1, 2025 at 7:37 AM void <void@f-m.fm> wrote:
>
> Hi Rick, thanks for looking at this
>
> On Mon, Dec 01, 2025 at 07:10:58AM -0800, Rick Macklem wrote:
> >I think you'll need rpcbind to be running in the client, too.
>
> It is. /etc/rc.conf has this nfs-related on the client:
>
> nfs_client_enable="YES"
> mountd_enable="YES"
mountd isn't needed on the client, but it is probably harmless

> rpcbind_enable="YES"
> mountd_flags="-r"
>
> >That indicates that rpcbind doesn't have things registered.
> ># rpcinfo
> >on the server should show entries for mountd and nfs.
>
> Nothing specifically for nfs. I can paste rpcinfo without options if you
> need it though (there's a lot of output)
There needs to nfs entries shown by rpcinfo on the server.
Check with "ps ax" to see that the nfsd is running and then
restart it.

Until nfs entries show up for rpcinfo on the server, you'll
be getting that "not registered" message when the mount
is attempted.

rick

>
> # rpcinfo -s
>    program version(s) netid(s)                         service     owner
>    100000  2,3,4      local,udp6,tcp6,udp,tcp,netlink  rpcbind     superuser
>    100005  3,1        tcp,udp,tcp6,udp6                mountd      superuser
>
> >Also, look in /var/log/messages for messages related to mountd.
> >(I'd try a "service mountd reload" and then look for messages.)
>
> If I don't copy /etc/zfs/exports to /etc/exports, then showmount -e 192.168.1.230
> from the client doesn't work. But copying it, then reloading mountd, produces
> the following in /var/log/daemon.log, (and showmount works).
>
> Dec  1 14:57:06 desktop mountd[59263]: can't change attributes for /external20tb: MNT_DEFEXPORTED already set for mount 0xfffffe00d7f6e000
> Dec  1 14:57:06 desktop mountd[59263]: bad exports list line '/external20tb'
> Dec  1 14:57:16 desktop rpc.lockd[77257]: Starting
> Dec  1 14:58:08 desktop mountd[97810]: can't change attributes for /external20tb: MNT_DEFEXPORTED already set for mount 0xfffffe00d7f6e000
> Dec  1 14:58:08 desktop mountd[97810]: bad exports list line '/external20tb'
>
> If I echo "" > /etc/exports then service mountd reload, those errors go away
> but with or without modifying /etc/exports, the client still gets
All mountd does is concatenate the two exports files, so it shouldn't
matter which one has the entry, but both having it will generate the
above errors.

>
> # mount /mnt
> [tcp] 192.168.1.230:/external20tb: RPCPROG_NFS: RPC: Program not registered
> [tcp] 192.168.1.230:/external20tb: RPCPROG_NFS: RPC: Program not registered
As above, until the nfsd is registered with rpcbind, the mount won't work.
(As shown by rpcinfo on the server.)

rick

>
> --
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM5tNy65gZOzCvp=9s6o34RqtO9J3_ZZTN44m%2BVxR0EbwVLiWg>