NFS share fails to mount at boot due to error "Failed to resolve server : Name or service not known"

Solution Verified - Updated -

Issue

  • NFS share fails to mount during the reboot with error below:
Aug 28 16:44:46 NFS-Client systemd[1]: Mounting /mnt/test...
Aug 28 16:44:58 NFS-Client mount[4092]: mount.nfs: Failed to resolve server <NFS-Server>.: Name or service not known
Aug 28 16:44:58 NFS-Client systemd[1]: mnt-nfs.mount: Mount process exited, code=exited, status=32/n/a
Aug 28 16:44:58 NFS-Client systemd[1]: mnt-nfs.mount: Failed with result 'exit-code'.
Aug 28 16:44:58 NFS-Client systemd[1]: Failed to mount /mnt/test.
  • NFS share can be manually mounted post the reboot.

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content