LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't mount an nfs share when i disable ipv6 in sysctl in rhel7.3 (https://www.linuxquestions.org/questions/linux-newbie-8/cant-mount-an-nfs-share-when-i-disable-ipv6-in-sysctl-in-rhel7-3-a-4175618509/)

chickenjoy 11-28-2017 12:45 AM

can't mount an nfs share when i disable ipv6 in sysctl in rhel7.3
 
why am i un able to mount an NFS share if i disable IPv6 in rhel7.3?

error:
Code:

# 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: failed (Result: exit-code) since Tue 2017-11-28 10:05:44 GST; 8min ago
  Process: 34683 ExecStart=/usr/sbin/rpc.statd --no-notify $STATDARGS (code=exited, status=1/FAILURE)

Nov 28 10:05:44 servername rpc.statd[34684]: Flags: TI-RPC
Nov 28 10:05:44 servername rpc.statd[34684]: Failed to register (statd, 1, udp): svc_reg() err: RPC: Remote system error - No route to host
Nov 28 10:05:44 servername rpc.statd[34684]: Failed to register (statd, 1, tcp): svc_reg() err: RPC: Remote system error - No route to host
Nov 28 10:05:44 servername rpc.statd[34684]: Failed to register (statd, 1, udp6): svc_reg() err: RPC: Remote system error - No route to host
Nov 28 10:05:44 servername rpc.statd[34684]: Failed to register (statd, 1, tcp6): svc_reg() err: RPC: Remote system error - No route to host
Nov 28 10:05:44 servername rpc.statd[34684]: failed to create RPC listeners, exiting
Nov 28 10:05:44 servername systemd[1]: rpc-statd.service: control process exited, code=exited status=1
Nov 28 10:05:44 servername systemd[1]: Failed to start NFS status monitor for NFSv2/3 locking..
Nov 28 10:05:44 servername systemd[1]: Unit rpc-statd.service entered failed state.
Nov 28 10:05:44 servername systemd[1]: rpc-statd.service failed.

the changes are in /etc/sysctl.conf:
Code:

#disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

i can mount nfs if i remove the 2 lines in sysctl.conf and restart the server.

AwesomeMachine 11-28-2017 07:19 PM

I thought you get tech support with rhel. You could try calling them.

chickenjoy 12-02-2017 02:42 AM

Thanks, they forwarded me to a knowledgebase article:

Resolution
  • Rebuild the initramfs:
    Code:

    # dracut -v -f
    to incorporate the changes made to
    Code:

    /etc/sysctl.conf
  • It is necessary to rebuild the initramfs when ever there are modifications made to
    Code:

    /etc/sysctl.conf
    .
  • Following the rebuild of the initramfs please reboot the system in order for the systemd response to take effect.


All times are GMT -5. The time now is 04:55 PM.