df shows NFS volume as <IP address>:/<path> even the volume is mounted with <hostname>:/<path>

Solution Verified - Updated -

Issue

  • After mounting an NFS volume with mount server:/nfs/prj1 /mnt/prj1, df /mnt/prj1 shows the following.

    $ df /mnt/prj1
    Filesystem          1K-blocks    Used Available Use% Mounted on
    192.0.2.1:/nfs/prj1   9164800 2113792   7051008  24% /mnt/prj1
    

Environment

  • Red Hat Enterprise Linux 8
  • NFSv4 client

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