I have NFS mounts set up in /etc/hstab
as
HOSTXYZ:/share/dir /mnt/nfs/local-dir nfs4 _netdev 0 0
It mounts fine when I run mount -a
however it hangs during boot. I discovered that if I use IP address instead of HOSTXYZ
it boots normally. HOSTXYZ
is a local server defined in /etc/hosts. I am puzzled. Why doesn't it try to use /etc/hosts
entries to resolve HOSTXYZ
during boot?
systemd
log indicates that it simply fails to mount when host name is used and a success when IP is used.
This occurs on Ubuntu 16.04.