df shows NFS volume as <IP address>:/<path> even the volume is mounted with <hostname>:/<path>
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.