Monday, November 2, 2009

Mounting NFS share hangs on VMware ESX server

Bookmark and Share

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


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. (Comments will be moderated.)

 




Technology