VMware

This Question is Not Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
6 Replies Last post: Apr 27, 2009 9:35 PM by sicoffey  

ESXi NFS client appears to use "localhost" as its machine name for RPC calls? posted: Apr 25, 2009 7:35 PM

Click to view sicoffey's profile Novice 8 posts since
Feb 5, 2009

Hi,

I've been trialling using a NFS datastore with ESXi 3.5 (3.5.0 158869). I've hit a number of issues, most resolved, and I'm at least now able to add a NFS datastore and import/create VMs. However I'm seeing problems around NFS recovery in the event of problems with the NFS server (ESXi marks the datastore as inactive after the reboot, only resolution I have is rebooting ESXi server itself).

Anyway - I've been trawling network captures and I think I have a combination of a fussy NAS NFS server, but also a badly behaved ESXi NFS/RPC client. What I see is that the RPC call from ESXi declares the machine name to be "localhost" (i.e. the AUTH UNIX credentials, Machine Name value). I well behaved client should fill in its hostname there, to identify itself to the NFS server.

I'm not sure whether this is a bug in the ESXi NFS client, or is it something in my ESXi configuration..

I have checked the following on ESXi server:

~ # hostname
esx1.cl-au.local
~ # cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.12.210 esx1.cl-au.local esx1
192.168.13.161 esx1NASNET

(Note - I've manually added the entry for the 192.168.13.x address, which is a NIC dedicated to the NAS. However I have tested with the NAS on the "primary" 192.168.12 address and seen the same behaviour).

I'm thinking that the NFS client incorrectly pulls the hostname from somewhere else?

Any help appreciated!

cheers

Simon

Click to view lamw's profile Champion 2,803 posts since
Nov 27, 2007
How are you attempting to add an NFS datastore via the unsupported SSH console? Any reason you're not going through the VI Client to do so under the Storage configurations? Is your NFS datastore being exported out with the correct permissions including no_root_squash ?

=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
http://twitter.com/lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

If you find this information useful, please award points for "correct" or "helpful".

Click to view athlon_crazy's profile Expert 524 posts since
Oct 28, 2007

This is not only happened to ESXi 3.5. I also experienced the same problem on ESX 3.5. If you do some maintenance on NFS box or somehow your NFS box hanged, then when your restart it, ESX didn't managed to reconnect to NFS datastore.

When I ran esxcfg-nas -l, the NFS volume still mounted, somehow, in vi-client, ESX still complaining NFS volume disconnected. So, my temporary solution :

  • Shutdown ESX before do maintenance job on NFS box
  • Deleted & remount NFS volume if something wrong to your NFS box
  • Get most stable NFS box to minimum the impact


VMware newbie..
Zen Systems Sdn Bhd
www.no-x.org

Click to view athlon_crazy's profile Expert 524 posts since
Oct 28, 2007
Last time used tiny linux distro to be NFS server since it's easy for tweak compare to appliance. But now I turn to ESX running NFS server.

VMware newbie..
Zen Systems Sdn Bhd
www.no-x.org

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities