I did some tests, and looks like I was able to configure ubuntu 22.04 to
export NFS v2. I was able to mount from an ubuntu 14.04 machine
specifying vers=2:
t1 is trusty (14.04), j1 is jammy (22.04):
root@t1:~# rpcinfo -s j1-nfs-server
program version(s) netid(s) service owner
100000 2,3,4 local,udp,tcp,udp6,tcp6 portmapper superuser
100024 1 tcp6,udp6,tcp,udp status 113
100005 3,2,1 tcp6,udp6,tcp,udp mountd superuser
100003 4,3,2 tcp6,tcp nfs superuser
100227 3,2 tcp6,tcp - superuser
100021 4,3,1 tcp6,udp6,tcp,udp nlockmgr superuser
root@t1:~# mount j1-nfs-server:/storage /mnt -o vers=2
root@t1:~# mount -t nfs
j1-nfs-server:/storage on /mnt type nfs (rw,vers=2,addr=192.168.122.136)
Note that TCP was used, though, not UDP.
To allow the 22.04 server to export via UDP, add "udp=y" to the [nfsd]
section in /etc/nfs.conf and restart nfs-utils and nfs-server, and then
I can specify udp:
root@t1:~# mount j1-nfs-server:/storage /mnt -o vers=2,udp
j1-nfs-server:/storage on /mnt type nfs (rw,vers=2,udp,addr=192.168.122.136)
The config I used on the 22.04 server was:
root@j1-nfs-server:~# nfsconf --dump
[general]
pipefs-directory = /run/rpc_pipefs
[mountd]
manage-gids = 1
[nfsd]
debug = all
rdma = n
threads = 8
udp = y
vers2 = y
vers2,3,4 = y
vers3 = y
vers4 = y
vers4.0 = y
vers4.1 = y
vers4.2 = y
That being said, from 22.04 I CANNOT mount an NFSv2 export:
root@j1-nfs-server:~# mount j1-nfs-server:/storage /mnt -o vers=2
mount.nfs: requested NFS version or transport protocol is not supported
So the TL:DR seems to be that 22.04 can export NFSv2, even via UDP, but
not MOUNT NFSv2.
To make progress in this bug, please show:
- nfsconf --dump on the 22.04 server
- attempted mount error on the NFSv2 and NFSv3 clients, including dmesg and
/var/log/syslog (or equivalent) covering the attempt
- try enabling UDP in your 22.04 server's /etc/nfs.conf. Keep in mind that,
since your server was upgraded, you will also have an
/etc/nfs.conf.d/local.conf. You may want to merge local.conf with nfs.conf. See
the release notes at [1] for more details, and perhaps the server guide[2]
where the new nfs changes are also documented, in particular the upgrade
scenario.
1. https://discourse.ubuntu.com/t/jammy-jellyfish-release-notes/24668
2. https://ubuntu.com/server/docs/service-nfs
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973101
Title:
After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1973101/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs