Mounting NFS share hangs on VMware ESX server

I just happened to face very trivial issue while mounting NFS share on VMware ESX box. I did verify NFS exports on NFS server and NFS service was indeed running on NFS server.

Also verified that “nfsClient” service is enabled in ESX firewall using esxcfg-firewall CLI.

[root@esx35 root]# esxcfg-firewall --enableService  nfsClient

Still I couldn’t able to mount NFS share on VMware ESX and mount command was hanged or stuck.

[root@esx35 root]# mount –t nfs nfs-server:/share /mnt/share

.

.

.

^C

After bit of troubleshooting, it was found that “portmap” service was down by default. So after enabling “portmap” service, mount CLI succeeded in mounting NFS share.

[root@esx35 root]# /etc/init.d/portmap status
portmap is stopped
[root@esx35 root]# /etc/init.d/portmap restart
Stopping portmapper:                                       [FAILED]
Starting portmapper:                                        [  OK  ][root@esx35 root]#mount –t nfs nfs-server:/share /mnt/share[root@esx35 root]#echo $?
0

Note: We at TechSutram take our ethics very seriously. More information about it can be found here.
Mandar Pise Opinions expressed by techsutram contributors are their own. More details

Mandar is a seasoned software professional for more than a decade. He is Cloud, AI, IoT, Blockchain and Fintech enthusiast. He writes to benefit others from his experiences. His overall goal is to help people learn about the Cloud, AI, IoT, Blockchain and Fintech and the effects they will have economically and socially in the future.

1 comment:

  1. Thanks for the tip about starting portmap service to make NFS mounts work on an ESXi.

    ReplyDelete

    Your valuable comments are welcome. (Moderated)