Open e-carlin opened 3 months ago
@robnagler the INI format is less amenable to our current perl substitution.
Currently we set the number of threads for the nfs_server with a perl substitution. But, the new INI format has multiple threads=
assignments. We only want to edit the one under the [nfsd]
block
# debug="all|auth|call|general|parse"
# manage-gids=n
# descriptors=0
# port=0
# threads=1
# reverse-lookup=n
# state-directory-path=/var/lib/nfs
# ha-callout=
# cache-use-ipaddr=n
# ttl=1800
#
[nfsdcld]
# debug=0
# storagedir=/var/lib/nfs/nfsdcld
#
[nfsdcltrack]
# debug=0
# storagedir=/var/lib/nfs/nfsdcltrack
#
[nfsd]
# debug=0
# threads=8
# host=
# port=0
# grace-time=90
# lease-time=90
# udp=n
# tcp=y
# vers3=y
# vers4=y
# vers4.0=y
# vers4.1=y
# vers4.2=y
rdma=y
rdma-port=20049
Any advice on a solution? Pull /etc/nfs.conf into rsconf and write the whole file?
We decided we will pull this file into rsconf as a jinja template and update it that way.
We'll likely need a way for rsconf to know what host is being configured because we want to run centos and alma simultaneously. It should be configurable on a per host basis at the python level (not yaml/fconf).
For now punting on solving because this isn't needed for a basic end to end.
https://fedoraproject.org/wiki/Changes/nfs.conf https://access.redhat.com/solutions/3938381
Looks like the file is now /etc/nfs.conf. Furthermore, the file looks to be INI format compared to arg=value format.