#1138209 - nfs-kernel-server: Parameter RPCNFSDCOUNT from /etc/default/nfs-kernel-server is ignored after Upgrade from Deb12 (original) (raw)

version graph

Reported by: Patrik Schindler poc@pocnet.net

Date: Fri, 29 May 2026 11:45:01 UTC

Severity: normal

Found in version nfs-utils/1:2.8.3-1

Done: Ben Hutchings ben@decadent.org.uk

Reply or subscribe to this bug.

Display info messages


Report forwardedto debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org> (nfs-kernel-server for {1138209}):
Bug#1138209; Package nfs-kernel-server. (Fri, 29 May 2026 11:45:02 GMT) (full text, mbox, link).


Acknowledgement sentto Patrik Schindler <poc@pocnet.net>:
New Bug report received and forwarded. Copy sent to debian-kernel@lists.debian.org. (Fri, 29 May 2026 11:45:02 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

Package: nfs-kernel-server Version: 1:2.8.3-1 Severity: normal

Dear Maintainer,

I'm using SysVrc and updated an NFS server from Deb12 to Deb13. This is a machine which heavy load due to Veeam Backup & Replication repositories.

To keep up, I had changed /etc/default/nfs-kernel-server to increase RPCNFSDCOUNT to a number high enough to stop syslog messages about incomplete data transfers.

Since Deb13, RPCNFSDCOUNT is no longer used. Culprit is that in /etc/init.d/nfs-kernel-server lines 99 to 101, /sbin/rpc.nfsd is no longer given the $RPCNFSDCOUNT variable, as it was in the Debian 12 initscript.

-- 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 100024 1 udp 59890 status 100024 1 tcp 47985 status 100003 3 tcp 2049 nfs 100003 4 tcp 2049 nfs 100227 3 tcp 2049 nfs_acl 100021 1 udp 36247 nlockmgr 100021 3 udp 36247 nlockmgr 100021 4 udp 36247 nlockmgr 100021 1 tcp 45365 nlockmgr 100021 3 tcp 45365 nlockmgr 100021 4 tcp 45365 nlockmgr 100005 1 udp 40951 mountd 100005 1 tcp 53591 mountd 100005 2 udp 56325 mountd 100005 2 tcp 36969 mountd 100005 3 udp 51628 mountd 100005 3 tcp 50041 mountd -- /etc/default/nfs-kernel-server -- RPCNFSDCOUNT=2000 RPCNFSDPRIORITY=0 RPCNFSDOPTS="" RPCMOUNTDOPTS="--manage-gids" NEED_SVCGSSD="" RPCSVCGSSDOPTS=""

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

Kernel: Linux 6.12.90+deb13.1-amd64 (SMP w/12 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: sysvinit (via /sbin/init)

Versions of packages nfs-kernel-server depends on: ii keyutils 1.6.3-6 ii libblkid1 2.41-5 ii libc6 2.41-12+deb13u3 ii libcap2 1:2.75-10+deb13u1+b1 ii libevent-core-2.1-7t64 2.1.12-stable-10+b1 ii libnl-3-200 3.7.0-2 ii libnl-genl-3-200 3.7.0-2 ii libreadline8t64 8.2-6 ii libsqlite3-0 3.46.1-7+deb13u1 ii libtirpc3t64 1.3.6+ds-1 ii libuuid1 2.41-5 ii libwrap0 7.6.q-36 ii libxml2 2.12.7+dfsg+really2.9.14-2.1+deb13u2 ii netbase 6.5 ii nfs-common 1:2.8.3-1 ii ucf 3.0052

Versions of packages nfs-kernel-server recommends: ii python3 3.13.5-1 pn python3-yaml

Versions of packages nfs-kernel-server suggests: ii procps 2:4.0.4-9

-- Configuration Files: /etc/init.d/nfs-kernel-server changed: DESC="NFS kernel daemon" PREFIX=/usr [ -x $PREFIX/sbin/rpc.nfsd ] || exit 0 [ -x $PREFIX/sbin/rpc.mountd ] || exit 0 [ -x $PREFIX/sbin/exportfs ] || exit 0 DEFAULTFILE=/etc/default/nfs-kernel-server RPCNFSDPRIORITY=0 NEED_SVCGSSD=no PROCNFSD_MOUNTPOINT=/proc/fs/nfsd if [ -f $DEFAULTFILE ]; then . $DEFAULTFILE fi . /lib/lsb/init-functions do_modprobe() { if [ -x /sbin/modprobe ] && [ -f /proc/modules ] then modprobe -q "$1" || true fi } do_mount() { if ! grep -E -qs "$1$" /proc/filesystems then return 1 fi if ! mountpoint -q "$2" then mount -t "$1" "$1" "$2" return fi return 0 } case "$1" in start) export_files="/etc/exports" for file in /etc/exports.d/.exports ; do if [ -f "$file" ]; then export_files="$export_files $file" fi done # shellcheck disable=SC2086 if [ -f /etc/exports ] && grep -q '^[[:space:]][^#]*/' $export_files then do_modprobe nfsd # See if our running kernel supports the NFS kernel server if ! grep -E -qs "[[:space:]]nfsd$" /proc/filesystems; then log_warning_msg "Not starting $DESC: no support in current kernel" exit 0 fi

    do_mount nfsd $PROCNFSD_MOUNTPOINT || NEED_SVCGSSD=no
    log_action_begin_msg "Exporting directories for $DESC"
    $PREFIX/sbin/exportfs -r
    RET=$?
    if [ $RET != 0 ]; then
        log_action_end_msg $RET
        exit $RET
    fi
    log_action_end_msg 0
    log_daemon_msg "Starting $DESC"
    log_progress_msg "nfsd"
    
    # See if rpcbind is running
    $PREFIX/sbin/rpcinfo -p >/dev/null 2>&1
    RET=$?
    if [ $RET != 0 ]; then
        echo
        log_warning_msg "Not starting: portmapper is not running"
        exit 0
    fi
    start-stop-daemon --start --oknodo --quiet \
        --nicelevel $RPCNFSDPRIORITY \
        --exec <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi><mi>R</mi><mi>E</mi><mi>F</mi><mi>I</mi><mi>X</mi><mi mathvariant="normal">/</mi><mi>s</mi><mi>b</mi><mi>i</mi><mi>n</mi><mi mathvariant="normal">/</mi><mi>r</mi><mi>p</mi><mi>c</mi><mi mathvariant="normal">.</mi><mi>n</mi><mi>f</mi><mi>s</mi><mi>d</mi><mo>−</mo><mo>−</mo></mrow><annotation encoding="application/x-tex">PREFIX/sbin/rpc.nfsd -- </annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathnormal" style="margin-right:0.13889em;">PREF</span><span class="mord mathnormal" style="margin-right:0.07847em;">I</span><span class="mord mathnormal" style="margin-right:0.07847em;">X</span><span class="mord">/</span><span class="mord mathnormal">s</span><span class="mord mathnormal">bin</span><span class="mord">/</span><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="mord mathnormal">p</span><span class="mord mathnormal">c</span><span class="mord">.</span><span class="mord mathnormal">n</span><span class="mord mathnormal" style="margin-right:0.10764em;">f</span><span class="mord mathnormal">s</span><span class="mord mathnormal">d</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.6667em;vertical-align:-0.0833em;"></span><span class="mord">−</span></span></span></span>RPCNFSDCOUNT
    RET=$?
    if [ $RET != 0 ]; then
        log_end_msg $RET
        exit $RET
    fi
    # make sure 127.0.0.1 is a valid source for requests
    ClearAddr=
    if [ -f /proc/net/rpc/auth.unix.ip/channel ]
    then
        grep -Fqs 127.0.0.1 /proc/net/rpc/auth.unix.ip/content || {
        echo "nfsd 127.0.0.1 2147483647 localhost" >/proc/net/rpc/auth.unix.ip/channel
        ClearAddr=yes
        }
    fi
    [ -z "$ClearAddr" ] || echo "nfsd 127.0.0.1 1" >/proc/net/rpc/auth.unix.ip/channel

        if [ "$NEED_SVCGSSD" = "yes" ]; then
        do_modprobe rpcsec_gss_krb5
        log_progress_msg "svcgssd"
        start-stop-daemon --start --oknodo --quiet \
            --exec $PREFIX/sbin/rpc.svcgssd
        RET=$?
        if [ $RET != 0 ]; then
            log_end_msg $RET
            exit $RET
        fi
    fi
    log_progress_msg "mountd"
    start-stop-daemon --start --oknodo --quiet \
        --exec $PREFIX/sbin/rpc.mountd
    RET=$?
    if [ $RET != 0 ]; then
        log_end_msg $RET
        exit $RET
    fi
    log_end_msg 0
else
    log_warning_msg "Not starting $DESC: no exports"
fi
;;

stop) log_daemon_msg "Stopping $DESC" log_progress_msg "mountd" start-stop-daemon --stop --oknodo --quiet
--name rpc.mountd --user 0 RET=$? if [ $RET != 0 ]; then log_end_msg $RET exit $RET fi if [ "$NEED_SVCGSSD" = "yes" ]; then log_progress_msg "svcgssd" start-stop-daemon --stop --oknodo --quiet
--name rpc.svcgssd --user 0 RET=$? if [ $RET != 0 ]; then log_end_msg $RET exit $RET fi fi log_progress_msg "nfsd" start-stop-daemon --stop --oknodo --quiet
--name nfsd --user 0 --signal 2 RET=$? if [ $RET != 0 ]; then log_end_msg $RET exit $RET fi log_end_msg 0 log_action_begin_msg "Unexporting directories for $DESC" $PREFIX/sbin/exportfs -au RET=$? if [ $RET != 0 ]; then log_action_end_msg $RET exit $RET fi log_action_end_msg 0 if mountpoint -q $PROCNFSD_MOUNTPOINT then $PREFIX/sbin/exportfs -f fi ;; status) status_of_proc nfsd nfsd exit $? ;; reload | force-reload) log_begin_msg "Re-exporting directories for $DESC..." $PREFIX/sbin/exportfs -r RET=$? log_end_msg $RET exit $RET ;; restart) $0 stop sleep 1 $0 start ;; *) log_success_msg "Usage: nfs-kernel-server {start|stop|status|reload|force-reload|restart}" exit 1 ;; esac exit 0

-- no debconf information


Reply sentto Ben Hutchings <ben@decadent.org.uk>:
You have taken responsibility. (Fri, 29 May 2026 20:45:03 GMT) (full text, mbox, link).


Notification sentto Patrik Schindler <poc@pocnet.net>:
Bug acknowledged by developer. (Fri, 29 May 2026 20:45:03 GMT) (full text, mbox, link).


Message #10 received at 1138209-done@bugs.debian.org (full text, mbox, reply):

[Message part 1 (text/plain, inline)]

This was an intentional change. Support for /etc/default/nfs-kernel-server was deprecated in bookworm (as documented in NEWS) and removed in trixie.

Ben.

-- Ben Hutchings Horngren's Observation: Among economists, the real world is often a special case.

[signature.asc (application/pgp-signature, inline)]


Information forwardedto debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org> (nfs-kernel-server for {1138209}):
Bug#1138209; Package nfs-kernel-server. (Fri, 29 May 2026 20:49:02 GMT) (full text, mbox, link).


Acknowledgement sentto Ben Hutchings <ben@decadent.org.uk>:
Extra info received and forwarded to list. Copy sent to debian-kernel@lists.debian.org. (Fri, 29 May 2026 20:49:02 GMT) (full text, mbox, link).


Message #15 received at 1138209@bugs.debian.org (full text, mbox, reply):

[Message part 1 (text/plain, inline)]

On Fri, 2026-05-29 at 22:44 +0200, Ben Hutchings wrote:

This was an intentional change. Support for /etc/default/nfs-kernel-server was deprecated in bookworm (as documented in NEWS) and removed in trixie.

Correction: it has not yet been removed, but that is the intent.

Ben.

-- Ben Hutchings Horngren's Observation: Among economists, the real world is often a special case.

[signature.asc (application/pgp-signature, inline)]


Information forwardedto debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org> (nfs-kernel-server for {1138209}):
Bug#1138209; Package nfs-kernel-server. (Fri, 29 May 2026 20:57:01 GMT) (full text, mbox, link).


Acknowledgement sentto Ben Hutchings <ben@decadent.org.uk>:
Extra info received and forwarded to list. Copy sent to debian-kernel@lists.debian.org. (Fri, 29 May 2026 20:57:01 GMT) (full text, mbox, link).


Message #20 received at 1138209@bugs.debian.org (full text, mbox, reply):

[Message part 1 (text/plain, inline)]

On Fri, 2026-05-29 at 22:47 +0200, Ben Hutchings wrote:

On Fri, 2026-05-29 at 22:44 +0200, Ben Hutchings wrote:

This was an intentional change. Support for /etc/default/nfs-kernel-server was deprecated in bookworm (as documented in NEWS) and removed in trixie.

Correction: it has not yet been removed, but that is the intent.

Sorry, I really should go back to the source before trying to answer from memory.

Ben.

-- Ben Hutchings Horngren's Observation: Among economists, the real world is often a special case.

[signature.asc (application/pgp-signature, inline)]


Information forwardedto debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org> (nfs-kernel-server for {1138209}):
Bug#1138209; Package nfs-kernel-server. (Fri, 29 May 2026 21:13:01 GMT) (full text, mbox, link).


Acknowledgement sentto Patrik Schindler <poc@pocnet.net>:
Extra info received and forwarded to list. Copy sent to debian-kernel@lists.debian.org. (Fri, 29 May 2026 21:13:01 GMT) (full text, mbox, link).


Message #25 received at 1138209@bugs.debian.org (full text, mbox, reply):

Hello Ben,

there is no mentioning of this IMHO breaking change in a Deb12's /usr/share/doc/nfs-kernel-server/NEWS.Debian.gz. Besides… usual systems can have many hundreds of NEWS files. Nobody is able to read those during a system upgrade, and there was no mentioning of this fact in neither https://www.debian.org/releases/stable/release-notes/index.en.html nor https://www.debian.org/releases/stable/release-notes/issues.en.html — I always read these pages very carefully before upgrading. Maybe, I'm part of a minority with my setup…

I presume the new intended way of handling things is editing /etc/nfs.conf, and setting the threads parameter within [nfsd]. It would have been really helpful if the package upgrade scripts would do this parameter migration if they have been changed, and give a warning with e. g. dialog.

I'll revisit the initscript and /etc/default, and clean up manually, so the Deb14-Upgrade will go smoothly.

Thanks for the insight!

Am 29.05.2026 um 22:47 schrieb Ben Hutchings ben@decadent.org.uk:

On Fri, 2026-05-29 at 22:44 +0200, Ben Hutchings wrote:

This was an intentional change. Support for /etc/default/nfs-kernel-server was deprecated in bookworm (as documented in NEWS) and removed in trixie.

Correction: it has not yet been removed, but that is the intent.

Ben.

:wq! PoC


Information forwardedto debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org> (nfs-kernel-server for {1138209}):
Bug#1138209; Package nfs-kernel-server. (Fri, 29 May 2026 21:27:01 GMT) (full text, mbox, link).


Acknowledgement sentto Ben Hutchings <ben@decadent.org.uk>:
Extra info received and forwarded to list. Copy sent to debian-kernel@lists.debian.org. (Fri, 29 May 2026 21:27:01 GMT) (full text, mbox, link).


Message #30 received at 1138209@bugs.debian.org (full text, mbox, reply):

[Message part 1 (text/plain, inline)]

On Fri, 2026-05-29 at 23:04 +0200, Patrik Schindler wrote:

Hello Ben,

there is no mentioning of this IMHO breaking change in a Deb12's /usr/share/doc/nfs-kernel-server/NEWS.Debian.gz.

It's in nfs-common's NEWS because this change affected both client and server usage. But it was not a breaking change, and was not mentioned in release-notes because...

[...]

I presume the new intended way of handling things is editing /etc/nfs.conf, and setting the threads parameter within [nfsd]. It would have been really helpful if the package upgrade scripts would do this parameter migration if they have been changed, and give a warning with e. g. dialog. [...]

...the upgrade to bookworm did include an automatic migration.

Ben.

-- Ben Hutchings Horngren's Observation: Among economists, the real world is often a special case.

[signature.asc (application/pgp-signature, inline)]


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified:Wed Jun 17 16:16:18 2026; Machine Name:buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.