RPC messages in logs after disabling IPv6

Solution Verified - Updated

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=1 boot 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/netconfig and modify the entries for udp6 and tcp6:

    ## 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

Diagnostic Steps

  • Disable the IPv6 protocol and reboot the system.

  • Once the system is up again, start the rpc-statd service:

    # systemctl start rpc-statd
    
  • Check the logs and look for the Failed to create listener xprt messages:

    # 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..
    
Components
Category
Tags

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.