[Bug 1973101] Re: After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

Wataru Ashihara 1973101 at bugs.launchpad.net
Sat Nov 25 06:47:22 UTC 2023


Now NFSv2 server function seems to be disabled in the 6.2 kernels, along with CONFIG_NFSD_V2 was introduced:
https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/commit/?id=2f3a4b2ac2f28b9be78ad21f401f31e263845214

    sudo grep "NFSD_V2" /boot/config-5.15.0-60-generic  # CONFIG_NFSD_V2_ACL=y
    sudo grep "NFSD_V2" /boot/config-5.19.0-50-generic  # CONFIG_NFSD_V2_ACL=y
    sudo grep "NFSD_V2" /boot/config-6.2.0-33-generic   # # CONFIG_NFSD_V2 is not set
    sudo grep "NFSD_V2" /boot/config-6.2.0-37-generic   # # CONFIG_NFSD_V2 is not set

So,

>     echo -e "[nfsd]\nudp=y\nvers2=y" | sudo tee /etc/nfs.conf.d/local.conf
>     sudo systemctl restart nfs-server.service

no longer works in 6.2 kernels. In addition above, we have to boot with
5.x kernel or rebuild the kernel ourselves (with CONFIG_NFSD_V2=y).

-- 
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:
  Opinion

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