On Aug 17, 2015, at 5:42 AM, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote: > On Tue, Aug 11, 2015 at 06:48:18AM -0400, Steve Dickson wrote: >> hmm... What do you mean "fails to start"... are there any error messages? > > [....] Starting NFS kernel daemon: nfsdrpc.nfsd: address family AF_INET6 > not supported by protocol TCP > rpc.nfsd: unable to set any sockets for nfsd > failed! > > And then any attempts to mount from this machine fail. > >> If nfs-utils is compiled with the --disable_ipv6 flag, does >> the same problem happen? > > No, that fixes it. Probably stopped working with "rpc.nfsd: Squelch DNS errors when using --host option". getaddrinfo(3) returns a list of addresses, some of which are IPv6 addresses. It gets the list from /etc/hosts, or DNS. Even on kernels which do not support IPv6, there may be at least one IPv6 address in the list. nfssvc_setfds() then loops over this list. The error handling in nfssvc_setfds() causes the loop to exit if the socket(2) call fails. It should "continue" if the error is EAFNOSUPPORT. In fact, that xlog notice can also be removed. I'm traveling this week. Is this enough for you to generate a fix? -- Chuck Lever -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html