Dear @ll,
I have upgraded to FreeBSD 14.1-RELEASE-p3 and now it seems that nfs lockd is no longer working.
Anyone experiencing the same issue?
Edit:
Corrected the FreeBSD release. Thanks to Emrion!
I have upgraded to FreeBSD 14.1-RELEASE-p3 and now it seems that nfs lockd is no longer working.
Code:
# /etc/rc.conf
rpcbind_enable="YES"
mountd_enable="YES"
rpc_statd_enable="YES"
rpc_lockd_enable="YES"
nfs_server_enable="YES"
Code:
zfs get sharenfs zroot/data/test
zroot/data/test sharenfs -maproot=root local
Code:
touch /data/test/myfile
# obtain nfs lock from FreeBSD client
lockf /data/test/myfile true && echo ok || echo nok
# obtain nfs lock from Linux client
flock /data/test/myfile true && echo ok || echo nok
Code:
# rpcinfo executed from the nfs server
$ rpcinfo -s bsdnfs
program version(s) netid(s) service owner
100000 2,3,4 local,udp6,tcp6,udp,tcp rpcbind superuser
100005 3,1 tcp,udp,tcp6,udp6 mountd superuser
100003 3,2 tcp6,tcp,udp6,udp nfs superuser
100024 1 tcp,udp,tcp6,udp6 status superuser
100021 4,3,1,0 tcp,udp,tcp6,udp6 nlockmgr superuser
# rpcinfo for the client from the server
$ rpcinfo -s client
program version(s) netid(s) service owner
100000 2,3,4 local,udp6,tcp6,udp,tcp rpcbind superuser
100024 1 tcp6,udp6,tcp,udp status superuser
100021 4,3,1,0 tcp6,udp6,tcp,udp nlockmgr superuser
Anyone experiencing the same issue?
Edit:
Corrected the FreeBSD release. Thanks to Emrion!