I'm trying to get my linux machine to mount my nfs share from freebsd 14.3. Here's what I've got:
and
now, after starting services:
but when I try to mount it:
but, if I just mount.nfs it:
So, it looks like it's not nfsv4?
Also, if i try to set up automounting (on the linux side):
# enable nfs and set some related vars
nfs_server_enable="YES"
nfsv4_server_enable="YES"
nfsuserid_enable="YES"
mountd_enable="YES"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"
rpcbind_enable="YES"
and
vi /etc/exports
V4: /ark -maproot=root -network 192.168.1.0/24
now, after starting services:
# on server
showmount -e 192.168.1.13
Exports list on 192.168.1.13:
/ark 192.168.1.0
sudo showmount -e 192.168.1.13
Export list for 192.168.1.13:
/ark 192.168.1.0
but when I try to mount it:
sudo mount.nfs4 192.168.1.13:/ark /ark
mount.nfs4: access denied by server while mounting 192.168.1.13:/ark
but, if I just mount.nfs it:
sudo mount.nfs 192.168.1.13:/ark /ark
~ $ ls -l /ark
total 102664
...
So, it looks like it's not nfsv4?
Also, if i try to set up automounting (on the linux side):
It doesn't mount. I'm just guessing it's a mismatch v3/v4, but I'm off to see if I can track down logging on autofs... In the meantime, if you see a misconfiguration on the freebsd side, please help me out!systemctl is-enabled nfs-server
systemctl status nfs-server
sudo vi /etc/default/nfs-common
NEED_STATD=no
NEED_IDMAPD=yes
sudo vi /etc/default/nfs-kernel-server
RPCNFSDOPTS="-N 2 -N 3"
RPCMOUNTDOPTS="--manage-gids -N 2 -N 3"
sudo vi /etc/exports
/ark 192.168.1.0/255.255.255.0(rw,sync,no_subtree_check)
sudo systemctl restart nfs-kernel-server
sudo showmount -e
Export list for odin:
192.168.1.0/255.255.255.0
# test client access to nfs and git