[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1022823: nfs-kernel-server: /etc/default/nfs-kernel-server needs RPCNFSDOPTS



Package: nfs-kernel-server
Version: 1:1.3.4-6
Severity: wishlist

Dear Maintainer,

I needed a way to have rpc.nfsd bind to a specific IP address.

The man page for rpc.nfsd documents a parameter exactly for this, plus some others.

At first signt, it seems that there is no Debian way to pass parameters to rpc.nfsd.

But there is; RPCNFSDOPTS can be set on /etc/default/nfs-kernel-server. It will then
be sourced from /usr/lib/systemd/scripts/nfs-utils_env.sh, which sends its variables
to /run/sysconfig/nfs-utils, from where they are read by nfs-server.service.

Setting RPCNFSDOPTS solves this issue, so I am suggesting that it be added (empty)
to /etc/default/nfs-kernel-server, along with a commentary pointing to the rpc.nfsd
man page for information on parameters.

-- Package-specific info:
-- rpcinfo --
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100003    4   tcp   2049  nfs
-- /etc/default/nfs-kernel-server --
RPCNFSDCOUNT=8
RPCNFSDPRIORITY=0
RPCMOUNTDOPTS="--manage-gids -N 2 -N 3"
NEED_SVCGSSD=""
RPCSVCGSSDOPTS=""
RPCNFSDOPTS="-H 10.RED.ACT.ED -N 2 -N 3"
-- /etc/exports --
/srv/REDACTED 10.RED.ACT.EF(rw,insecure,nohide,sync,anonuid=4001,anongid=4002)
/srv/REDACTED 10.RED.ACT.EF(rw,insecure,nohide,sync,anonuid=4001,anongid=4002)
-- /proc/fs/nfs/exports --
# Version 1.1
# Path Client(Flags) # IPs

-- System Information:
Debian Release: 11.5
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-19-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nfs-kernel-server depends on:
ii  keyutils      1.6.1-2
ii  libblkid1     2.36.1-8+deb11u1
ii  libc6         2.31-13+deb11u4
ii  libcap2       1:2.44-1
ii  libsqlite3-0  3.34.1-3
ii  libtirpc3     1.3.1-1+deb11u1
ii  libwrap0      7.6.q-31
ii  lsb-base      11.1.0
ii  netbase       6.3
ii  nfs-common    1:1.3.4-6
ii  ucf           3.0043

nfs-kernel-server recommends no packages.

nfs-kernel-server suggests no packages.

-- no debconf information


Reply to: