rpcbind.socket failed to listen on sockets: Address family not supported by protocol
背景
虚拟机模板禁用了ipv6,创建了虚拟机
启动nfs报错,报错如下
Error:
rpcbind service fails to start with below error message in /var/log/messages
|
|
I got this error the other day while working on Red Hat Enterprise Linux 7.3 and after digging for a while I got to know there is a sort of a BUG in RHEL 7.3.
Analysis:
I found a BUG reported for this issue and I was facing the exact one.
https://bugzilla.redhat.com/show_bug.cgi?id=1402961
As explained by one of the engineers on the above page
|
|
Just to summarise if you have disabled ipv6 using your sysctl configurations then it is disabled only on kernel level but not via GRUB so it is not disabled completely hence systemd will attempt to make a connection on port 111 on any ipv6 address, [::]:111 during the boot up.
To know more on how to disable ipv6 follow below link
How to disable or enable ipv6 in Linux
解决办法:
/etc/sysctl.conf
|
|
grub级别禁用ipv6
|
|