[Bug 1992358] Re: existing 20.04 nfs-kernel-sever default which did not convert

Andreas Hasenack 1992358 at bugs.launchpad.net
Thu Oct 13 16:59:09 UTC 2022


Looking at the old /usr/lib/systemd/scripts/nfs-utils_env.sh[1] script,
it looks like another variable was reserved for NFSD command-line
arguments (RPCNFSDOPTS):

(...) (line 12)
echo RPCNFSDARGS=\"$RPCNFSDOPTS ${RPCNFSDCOUNT:-8}\"
                    ^^^^^^^^^^^

And RPCNFSDOPTS is handled by the conversion script[2], and the "-V" option is valid for it:
# options for nfsd found in RPCNFSDOPTS
OPTS_NFSD = 'dH:p:rR:N:V:stTuUG:L:'


So to amend my previous comment, you should remove "-V 2" from RPCNFSDCOUNT in /etc/default/nfs-kernel-server and move it to a new entry:

RPCNFSDOPTS="-V 2"

And then upgrade nfs-kernel-server/nfs-common again and the conversion
script should finish the job. This will correctly translate the "-V 2 8"
you had before to:

[nfsd]
vers2 = y
threads = 8


1. https://git.launchpad.net/ubuntu/+source/nfs-utils/tree/debian/nfs-utils_env.sh?h=applied/ubuntu/focal-devel#n12
2. https://git.launchpad.net/ubuntu/+source/nfs-utils/tree/debian/nfsconvert.py?h=applied/ubuntu/jammy-devel#n15

** Changed in: nfs-utils (Ubuntu)
   Importance: Medium => Low

-- 
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/1992358

Title:
  existing 20.04  nfs-kernel-sever default which did not convert

Status in nfs-utils package in Ubuntu:
  Confirmed

Bug description:
  I got install conversion errors until I read your very kind  note on
  upgrading to jammy and discovered that this config file was the
  problem:

  john at Nvidia:/etc/default$ cat nfs-kernel-server

  # Number of servers to start up
  RPCNFSDCOUNT="-V 2 8"

  # Runtime priority of server (see nice(1))
  RPCNFSDPRIORITY=0

  # Options for rpc.mountd.
  # If you have a port-based firewall, you might want to set up
  # a fixed port here using the --port option. For more information, 
  # see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS
  # To disable NFSv4 on the server, specify '--no-nfs-version 4' here
  RPCMOUNTDOPTS="-V 2 --manage-gids"

  # Do you want to start the svcgssd daemon? It is only required for Kerberos
  # exports. Valid alternatives are "yes" and "no"; the default is "no".
  NEED_SVCGSSD=""

  # Options for rpc.svcgssd.
  RPCSVCGSSDOPTS=""

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1992358/+subscriptions




More information about the foundations-bugs mailing list