[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:43:56 UTC 2022
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.
** Changed in: nfs-utils (Ubuntu)
Status: New => Confirmed
--
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