Sunrpc settings are not persistent after reboot.
This document (7022831) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 12
After such a boot, the following type of error can be found in /var/log/messages:
error systemd-sysctl: Couldn't write '128' to 'sunrpc/tcp_max_slot_table_entries', ignoring: No such file or directory.
There are several possible ways to address this. The two easiest are:
1. For distributions of SLES which still receive maintenance updates, new nfs-utils packages will cause the sunrpc module to activate sysctl settings when it loads. So even if those settings could not come into effect during boot, they will come into effect later.
Packages that need updating are nfs-client and (if present) nfs-kernel-server, which together are also known as "nfs-utils" because they both come from a source code package with that name.
|Distribution||Minimum nfs-client version|
|SLES 15 SP4||2.1.1-150126.96.36.199|
|SLES 15 SP3 (LTSS)||2.1.1-150188.8.131.52|
|SLES 15 SP2 (LTSS)||2.1.1-150184.108.40.206|
|SLES 15 SP1 (LTSS)||2.1.1-150220.127.116.11|
|SLES 12 SP5||1.3.0-34.42.1|
2. Where the update (#1) is not available, the sunrpc module can be forced to load earlier in the boot sequence. Give the following command, which will create the following file with "sunrpc" as contents:
echo sunrpc > /etc/modules-load.d/sunrpc.confUpon the next boot, sunrpc will load earlier and systemd-sysctl should successfully set the sunrpc values.
sunrpc.max_resvport = 1023
sunrpc.min_resvport = 665
sunrpc.nfs_debug = 0x0000
sunrpc.nfsd_debug = 0x0000
sunrpc.nlm_debug = 0x0000
sunrpc.rpc_debug = 0x0000
sunrpc.tcp_fin_timeout = 15
sunrpc.tcp_max_slot_table_entries = 65536
sunrpc.tcp_slot_table_entries = 2
sunrpc.transports = tcp 1048576
sunrpc.transports = udp 32768
sunrpc.transports = tcp-bc 1048576
sunrpc.udp_slot_table_entries = 16
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7022831
- Creation Date: 10-Apr-2018
- Modified Date:27-Jul-2023
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com