NFS not working on FreeNAS ('nfsd: can't register svc name')

hestefisk

Cadet
Joined
Jan 16, 2020
Messages
2
Hi.
I run the latest stable version of FreeNAS and have enabled NFS sharing. I am having trouble accessing the NFS share from any Unix client (FreeBSD, OpenBSD and so forth).

FreeBSD kennedy.XXX.lan 11.2-STABLE FreeBSD 11.2-STABLE #0 r325575+c9231c7d6bd(HEAD): Mon Nov 18 22:46:47 UTC 2019 root@nemesis:/freenas-releng/freenas/_BE/objs/ freenas-releng/freenas/_BE/os/sys/FreeNAS.amd64 amd64


When I start nfsd, I get the following error in /var/log/messages:

Jan 17 15:10:11 freenas nfsd: can't register svc name

No other messages / errors are logged. I am not sure what the above means.

All relevant services are running:

kennedy% rpcinfo -p program vers proto port service 100000 4 tcp 111 rpcbind 100000 3 tcp 111 rpcbind 100000 2 tcp 111 rpcbind 100000 4 udp 111 rpcbind 100000 3 udp 111 rpcbind 100000 2 udp 111 rpcbind 100000 4 local 111 rpcbind 100000 3 local 111 rpcbind 100000 2 local 111 rpcbind 100005 1 udp 891 mountd 100005 3 udp 891 mountd 100005 1 tcp 891 mountd 100005 3 tcp 891 mountd 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100024 1 udp 861 status 100024 1 tcp 861 status 100021 0 udp 964 nlockmgr 100021 0 tcp 1000 nlockmgr 100021 1 udp 964 nlockmgr 100021 1 tcp 1000 nlockmgr 100021 3 udp 964 nlockmgr 100021 3 tcp 1000 nlockmgr 100021 4 udp 964 nlockmgr 100021 4 tcp 1000 nlockmgr

Similar when running ps:

kennedy% ps aux|grep rpc root 63720 0.0 0.0 6392 2436 - Ss 15:10 0:00.01 /usr/sbin/rpcbind root 63797 0.0 0.0 274600 4168 - Ss 15:10 0:00.00 /usr/sbin/rpc.statd root 63831 0.0 0.0 12508 4168 - Ss 15:10 0:00.00 /usr/sbin/rpc.lockd aj 68097 0.0 0.0 6704 2676 0 S+ 15:41 0:00.00 grep rpc

From the client side, I can see shares but not mount them:

blowfish$ uname -a OpenBSD blowfish.XX.lan 6.6 GENERIC#353 amd64 blowfish$ showmount -e 192.168.1.251 Exports list on 192.168.1.251: /mnt/zdata/media 192.168.1.0 blowfish$ sudo mount -t nfs 192.168.1.251:/mnt/zdata/media /mnt Password: mount_nfs: /mnt: Input/output error blowfish$ blowfish$

What is wrong with my configuration?
 

hestefisk

Cadet
Joined
Jan 16, 2020
Messages
2
And from my FreeBSD NFS client:

root@razorfish /mnt# mount -t nfs 192.168.1.251:/mnt/zdata/media /hest mount_nfs: nmount: /hest: Operation not permitted
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
re: message "Jan 17 15:10:11 freenas nfsd: can't register svc name" , see https://redmine.ixsystems.com/issues/11351

How is FreeNAS NFS server configured: NFSv3 or NFSv4, etc.? Are NFS server and client on the same subnet? Checked contents of "/etc/exports/"?

FreeBSD client to FN NFSv3 server works for me when server & client are on the same subnet:
Code:
root@freebsdvm:~ # uname -a
FreeBSD freebsdvm 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC  amd64
root@freebsdvm:~ # mount -t nfs 192.168.0.88:/mnt/NasPool/proxmox-bkups /mnt
root@freebsdvm:~ # nfsstat -m
192.168.0.88:/mnt/NasPool/proxmox-bkups on /mnt
nfsv3,tcp,resvport,hard,cto,lockd,sec=sys,acdirmin=3,acdirmax=60,acregmin=5,acregmax=60,nametimeo=60,negnametimeo=60,rsize=65536,wsize=65536,readdirsize=65536,readahead=1,wcommitsize=4194304,timeout=120,retrans=2
root@freebsdvm:~ #
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
When I start nfsd, I get the following error in /var/log/messages:
Jan 17 15:10:11 freenas nfsd: can't register svc name
This is not a real error, but just an information, see here
blowfish$ showmount -e 192.168.1.251
Exports list on 192.168.1.251:
/mnt/zdata/media 192.168.1.0
Please check the netmask of the authorized network in the configuration of that NFS share. The netmask can not be viewed via the showmount command. What is the IP of your client? It needs to be in that IP range.
 
Top