RPC messages in logs after disabling IPv6
Environment
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 7
- nfs-utils
Issue
-
After disabling IPv6 by adding
ipv6.disable=1boot parameter, the following message was output in/var/log/messages.rpc.statd[PID]: Failed to create listener xprt (statd, 1, udp6) rpc.statd[PID]: Failed to create listener xprt (statd, 1, tcp6)
Resolution
-
The messages are just a warning and they can be ignored.
-
If you do not want messages displayed in the logs, edit the file
/etc/netconfigand modify the entries forudp6andtcp6:## udp6 tpi_clts v inet6 udp - - ## tcp6 tpi_cots_ord v inet6 tcp - - udp6 tpi_clts - inet6 udp - - tcp6 tpi_cots_ord - inet6 tcp - -
Root Cause
- These messages are a side effect of an Content from git.linux-nfs.org is not included.upstream commit that was merged in the kernel to help debugging
rpcbindfailures, by making sure that all errors would be logged.
Diagnostic Steps
-
Disable the IPv6 protocol and reboot the system.
-
Once the system is up again, start the
rpc-statdservice:# systemctl start rpc-statd -
Check the logs and look for the
Failed to create listener xprtmessages:# journalctl --unit=rpc-statd May 27 01:38:32 localhost.localdomain systemd[1]: Starting rpc-statd.service - NFS status monitor for NFSv2/3 locking.... May 27 01:38:32 localhost.localdomain rpc.statd[1787]: Version 2.8.2 starting May 27 01:38:32 localhost.localdomain rpc.statd[1787]: Flags: TI-RPC May 27 01:38:32 localhost.localdomain rpc.statd[1787]: Initializing NSM state May 27 01:38:32 localhost.localdomain rpc.statd[1787]: Failed to create listener xprt (statd, 1, udp6) May 27 01:38:32 localhost.localdomain rpc.statd[1787]: Failed to create listener xprt (statd, 1, tcp6) May 27 01:38:32 localhost.localdomain systemd[1]: Started rpc-statd.service - NFS status monitor for NFSv2/3 locking..
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.