Comment 3 for bug 1992358

Revision history for this message
Andreas Hasenack (ahasenack) wrote : Re: existing 20.04 nfs-kernel-sever default which did not convert

This is the error:

# /usr/share/nfs-common/nfsconvert.py
Error running nfs-conf tool:
 /usr/sbin/nfsconf: invalid option -- 'V'
Usage: /usr/sbin/nfsconf [-v] [--file filename.conf] ...
Options:
 -v Increase Verbosity
 --file filename.conf Load this config file
     (Default config file: /etc/nfs.conf
 --modified "info" Use "info" in file modified header
Modes:
  --dump [outputfile]
      Outputs the configuration to the named file
  --get [--arg subsection] {section} {tag}
      Output one specific config value
  --entry [--arg subsection] {section} {tag}
      Output the uninterpreted config entry
  --isset [--arg subsection] {section} {tag}
      Return code indicates if config value is present
  --set [--arg subsection] {section} {tag} {value}
      Set and Write a config value
  --unset [--arg subsection] {section} {tag}
      Remove an existing config value

Args: ['/usr/sbin/nfsconf', '--file', '/etc/nfs.conf.d/local.conf', '--set', 'nfsd', 'threads', '-V 2 8']

Conversion failed. Please correct the error and try again.

The RPCNFSDCOUNT is meant to be only a number. "-V 2" is an invalid option there. This worked in previous ubuntu releases because even though the parameter is called RPCNFSDCOUNT (i.e., a count, expecting a number), it was just passed straight to the rpc.nfsd command line.

I'll see if there is an update to this conversion script to handle that, but in the meantime, please remove the "-V 2" from RPCNFSDCOUNT and adjust your preferences in /etc/nfs.conf and /etc/nfs.conf.d/local.conf after the conversion script is run.