[Bug 1973101] Re: After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work
Andreas Hasenack
1973101 at bugs.launchpad.net
Thu May 12 18:44:56 UTC 2022
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 at 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 at t1:~# mount j1-nfs-server:/storage /mnt -o vers=2
root at 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 at 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 at 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 at 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
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1973101
Title:
After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work
Status in nfs-utils package in Ubuntu:
Incomplete
Bug description:
I upgraded from 20.04 to 22.04 a server which has NFS clients that are
version 2 (SunOS 4.1.4), version 3 (Redhat 6.2) and version 4.2 (other
modern Linux systems).
After upgrading the version 2 and version 3 clients no longer can
mount the file systems.
A check with rpcinfo -p showed version 2 no longer being advertised, I
checked the conf and found the update had disabled it, I re-enabled
it.
Version 3 was still advertised, but the mount still fails, and after
re-enabling version 2, the mount still fails.
I am also not at all appreciative of the unauthorized changes that the
upgrade made to my exports file.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: nfs-kernel-server 1:2.6.1-1ubuntu1
Uname: Linux 5.17.6 x86_64
.etc.request-key.d.id_resolver.conf: create id_resolver * * /usr/sbin/nfsidmap -t 600 %k %d
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: MATE
Date: Wed May 11 18:44:54 2022
NFSMounts:
NFSv4Mounts:
/bu 204.122.16.128:/mail.bu nfs4 rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=204.122.16.222,local_lock=none,addr=204.122.16.128
/misc 204.122.16.12:/misc nfs4 rw,nosuid,nodev,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=204.122.16.222,local_lock=none,addr=204.122.16.12
/home 204.122.16.12:/home nfs4 rw,nosuid,nodev,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=204.122.16.222,local_lock=none,addr=204.122.16.12
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: nfs-utils
UpgradeStatus: Upgraded to jammy on 2022-05-10 (1 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1973101/+subscriptions
More information about the foundations-bugs
mailing list