Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2025 08:37:10 -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:  <CAM5tNy4ftpEQOM2V7-ij=wmSOCSkYXNYm_JucYOFiL3-JBxb=g@mail.gmail.com>
In-Reply-To: <aS2-w1LxoBk4vJz6@int21h>
References:  <aS2g-vhe41nMvSzF@int21h> <CAM5tNy6U4S%2BQomtmkqJxOE40sH=%2BrYjPVwb-wUaUJr7BLf%2BWnw@mail.gmail.com> <aS22M67od8uM-0vi@int21h> <CAM5tNy65gZOzCvp=9s6o34RqtO9J3_ZZTN44m%2BVxR0EbwVLiWg@mail.gmail.com> <aS2-w1LxoBk4vJz6@int21h>

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

On Mon, Dec 1, 2025 at 8:14 AM void <void@f-m.fm> wrote:
>
> On Mon, Dec 01, 2025 at 07:46:29AM -0800, Rick Macklem wrote:
> >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.
>
> # ps ax | grep nfsd
> 41982  -  Is       0:00.00 nfsd: master (nfsd)
> 42321  -  S        0:00.00 nfsd: server (nfsd)
>   8672 14  S+       0:00.00 grep nfsd
>
> # rpcinfo | grep nfs
> #
>
> # service nfsd restart
> Stopping nfsd.
> Waiting for PIDS: 41982 42321.
> NFS on reserved port only=YES
> NFSv4 is disabled
> Starting nfsd.
> #
>
> # ps ax | grep nfsd
> 31554  -  Is       0:00.00 nfsd: master (nfsd)
> 31942  -  S        0:00.00 nfsd: server (nfsd)
> 33208 14  S+       0:00.00 grep nfsd
>
> # rpcinfo | grep nfs
> #
>
> >Until nfs entries show up for rpcinfo on the server, you'll
> >be getting that "not registered" message when the mount
> >is attempted.
>
> I'm baffled. Here's the full rpcinfo output. How to get
> nfs entries in rpcinfo output?
I've never used it, but "man nfsd" describes a "-r" option
to re-register with rpcbind. You could try that.

Otherwise, I do not have a clue.

rick

>
> I have no idea how it all works, but if the nfs server is stopped
> the port scanned from the client via nmap shows closed (port 2049)
> and if the nfs server is started, the port shows open.
>
> # rpcinfo
>     program version netid     address                service    owner
>      100000    4    netlink   netlink                rpcbind    superuser
>      100000    3    netlink   netlink                rpcbind    superuser
>      100000    4    tcp       0.0.0.0.0.111          rpcbind    superuser
>      100000    3    tcp       0.0.0.0.0.111          rpcbind    superuser
>      100000    2    tcp       0.0.0.0.0.111          rpcbind    superuser
>      100000    4    udp       0.0.0.0.0.111          rpcbind    superuser
>      100000    3    udp       0.0.0.0.0.111          rpcbind    superuser
>      100000    2    udp       0.0.0.0.0.111          rpcbind    superuser
>      100000    4    tcp6      ::.0.111               rpcbind    superuser
>      100000    3    tcp6      ::.0.111               rpcbind    superuser
>      100000    4    udp6      ::.0.111               rpcbind    superuser
>      100000    3    udp6      ::.0.111               rpcbind    superuser
>      100000    4    local     /var/run/rpcbind.sock  rpcbind    superuser
>      100000    3    local     /var/run/rpcbind.sock  rpcbind    superuser
>      100000    2    local     /var/run/rpcbind.sock  rpcbind    superuser
>      100005    1    udp6      ::.2.169               mountd     superuser
>      100005    3    udp6      ::.2.169               mountd     superuser
>      100005    1    tcp6      ::.2.169               mountd     superuser
>      100005    3    tcp6      ::.2.169               mountd     superuser
>      100005    1    udp       0.0.0.0.2.169          mountd     superuser
>      100005    3    udp       0.0.0.0.2.169          mountd     superuser
>      100005    1    tcp       0.0.0.0.2.169          mountd     superuser
>      100005    3    tcp       0.0.0.0.2.169          mountd     superuser
>
> --
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM5tNy4ftpEQOM2V7-ij=wmSOCSkYXNYm_JucYOFiL3-JBxb=g>