The Problem
rpc.statd(or rpc.*) logs following error messages into syslog(/var/log/messages):
Nov 29 11:01:34 hostname rpc.statd[12345]: Failed to create listener xprt (statd, 1, udp6) Nov 29 11:01:34 hostname rpc.statd[12345]: Failed to create listener xprt (statd, 1, tcp6)
Or you can also check the rpc-statd.service status:
# systemctl status rpc-statd.service ● rpc-statd.service - NFS status monitor for NFSv2/3 locking. Loaded: loaded (/usr/lib/systemd/system/rpc-statd.service; static; vendor preset: disabled) Active: active (running) since Sun 2017-03-05 20:28:50 EST; 9s ago Process: 2297 ExecStart=/usr/sbin/rpc.statd --no-notify $STATDARGS (code=exited, status=0/SUCCESS) Main PID: 2299 (rpc.statd) CGroup: /system.slice/rpc-statd.service └─2299 /usr/sbin/rpc.statd --no-notify Mar 5 20:28:50 localhost.localdomain systemd[1]: Starting NFS status monitor for NFSv2/3 locking.... Mar 5 20:28:50 localhost.localdomain rpc.statd[2299]: Version 1.3.0 starting Mar 5 20:28:50 localhost.localdomain rpc.statd[2299]: Flags: TI-RPC Mar 5 20:28:50 localhost.localdomain rpc.statd[2299]: Failed to create listener xprt (statd, 1, udp6) Mar 5 20:28:50 localhost.localdomain rpc.statd[2299]: Failed to create listener xprt (statd, 1, tcp6) Mar 5 20:28:50 localhost.localdomain systemd[1]: Started NFS status monitor for NFSv2/3 locking..
The Solution
Typically these are logged when an NFS client tries mounting NFS exports. rpc.statd(or rpc.*) is trying to use IPv6 at first, and if it failed then trying IPv4 next.
These messages can be safely ignored in case you do not have issues regarding NFS, ex. “mount command has been succeeded even these messages are logged”. These message usually appear after disabling IPv6 by adding “ipv6.disable=1” boot parameter as shown below:
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap ipv6.disable=1"
For CentOS/RHEL 6
To suppress these messages, comment out “tcp6” and “udp6” lines in /etc/netconfig file to disable NFS IPv6 handling, as shown below:
# vi /etc/netconfig # # The network configuration file. This file is currently only used in # conjunction with the TI-RPC code in the libtirpc library. # # Entries consist of: # #\ # # # The and fields are always empty in this # implementation. # udp tpi_clts v inet udp - - tcp tpi_cots_ord v inet tcp - - # udp6 tpi_clts v inet6 udp - - # tcp6 tpi_cots_ord v inet6 tcp - - rawip tpi_raw - inet - - - local tpi_cots_ord - loopback - - - unix tpi_cots_ord - loopback - - -
Now, restart all NFS related services.
For CentOS/RHEL 7
In case of CentOS/RHEL 7 modify the /etc/netconfig file as shown below:
Before:
udp6 tpi_clts v inet6 udp - - tcp6 tpi_cots_ord v inet6 tcp - -
After:
udp6 tpi_clts - inet6 udp - - tcp6 tpi_cots_ord - inet6 tcp - -
Now, restart all NFS related services.