I just upraded an old ASUS atom desktop to be a file server and installed Lubuntu 19.04 serving 3 sub folders to my LAN with various machines running raspbian, ubuntu and mate.
I got the NFS server up and running in similar was on all machines for several years, but was surprised to see my clients mounting lubuntu server with NFS ver=3 like this:-
andrew@VESA-ubuntu:/nfs$ nfsstat -m /nfs/all/Elements1Tb from 192.168.1.106:/media/ab/Elements1Tb Flags: rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.106,mountvers=3,mountport=57921,mountproto=udp,local_lock=none,addr=192.168.1.106
All other servers mount NFSv4 as planned.
The autofs is setup on simple basis like this (/etc/auto.nfs):
Medion1Tb -fstype=nfs4,rw 192.168.1.106:/media/ab/Medion1Tb
Is see both clients and server have recent versions of NFS (1.3.4-2)
What am I missing to get NFSv4 working on the lubuntu server?