• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

rpc.statd[PID]: Failed to create listener xprt (statd, 1, udp6) – CentOS/RHEL 6, 7

by admin

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.

Note that commenting them out means that rpc.* will never try IPv6. If you have a plan to use IPv6 on your system, it is safe to leave /etc/netconfig file and just ignore the messages as described above.

Filed Under: CentOS/RHEL, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. sestatus: command not found
  2. XFS error: Unable to mount filesystem With Noacl Permission in CentOS/RHEL 7
  3. How to add words to the dictionary cracklib uses for validating passwords against known dictionary words
  4. pi: command not found
  5. apt-add-repository: command not found
  6. CentOS / RHEL 6,7 : How to delete an iSCSI Target on the initiator (iSCSI client)
  7. CentOS / RHEL : How to add a null route in Linux
  8. How to create and mount filesystems in Linux
  9. Audit rules for monitoring Copy, move, delete and kill Commands In Linux
  10. csplit Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright