Score:0

NFS mount fails over ipv6 with "Address family for hostname not supported"

us flag
Naz

NFS fails to mount through /etc/fstab configuration, which is as follows:

# NFS_SERVER:/PATH/TO/EXPORTED/DIR    /MOUNT_POINT_ON_CLIENT    TYPE_OF_FS   OPTIONS   DUMP     PASS
[REDACTED_IP_V6_OF_STORAGE_SERVER]:/var/nfs/cloud                 /var/nfs/cloud              nfs          auto,nofail,noatime,nolock,intr,tcp,actimeo=1800    0       0

When running an explicit mount command following error is returned:

mount.nfs: Failed to resolve server REDACTED_IP_V6_OF_STORAGE_SERVER: Address family for hostname not supported

The NFS host is running properly from what I've checked and the ports/ufw are configured just like they were before:

>netstat -tulpn | grep 2049

tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      -                   
tcp6       0      0 :::2049                 :::*                    LISTEN      -                   
udp        0      0 0.0.0.0:2049            0.0.0.0:*                           -                   
udp6       0      0 :::2049                 :::*                                -  

>ufw status

Status: active

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       Anywhere                  
22                         ALLOW       Anywhere                  
2049                       ALLOW       REDACTED_IPv4_OF_CLIENT             
22/tcp (v6)                ALLOW       Anywhere (v6)             
22 (v6)                    ALLOW       Anywhere (v6)             
2049                       ALLOW       REDACTED_IPv6_OF_CLIENT 

Recent changes to the server that might, but not sure if are related - I've installed docker environment recently and haven't looked into the mounts straight away unfortunately.

How can I debug this further? Any obvious cases I've missed to check or that could be causing this error? Thanks!

in flag
Does your nfs mount support ipv6? Does ping do the right thing for the address? (verify spelling mistakes) As a test, add it to /etc/hosts and use name.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.