Solved

vmware esxi 5.5 connection to NFS

Posted on 2014-01-31
17
3,238 Views
Last Modified: 2014-03-24
Hi!

I have trouble connectiong esxi 5.5 host (part of vsphere - essential) to NFS hosted on a fedora 20 linux host

I opened the firewall on esxi for correct subnet
I can vmkping the host from esxi
nc -z connection succeeds


vmk log from esxi:

2014-01-31T07:18:57.471Z cpu47:34081)NFS: 157: Command: (mount) Server: (yyy) IP: (x.x.x.89) Path: (/home/first-backup/kt-vcenter) Label: (backup-datastore-onClone) Options: (None)

2014-01-31T07:18:57.471Z cpu47:34081)StorageApdHandler: 698: APD Handle 32aa8fb2-26b1028f Created with lock[StorageApd0x41124f]

2014-01-31T07:18:57.482Z cpu47:34081)NFS: 1236: NFS FSINFO failed with NFS status 70 (Stale file handle) on Server (yyy) Path (/home/first-backup/kt-vcenter)

2014-01-31T07:18:57.482Z cpu47:34081)StorageApdHandler: 745: Freeing APD Handle [32aa8fb2-26b1028f]

2014-01-31T07:18:57.482Z cpu47:34081)StorageApdHandler: 808: APD Handle freed!
2014-01-31T07:18:57.482Z cpu47:34081)NFS: 218: NFS mount yyyy:/home/first-backup/kt-vcenter status: Unable to query remote mount point's attributes


the /etc/exports file on the server yyyy includes the line
/home/first-backup/kt-vcenter QQQQ (rw,sync,no_subtree_check)


QQQQ is ip of the esxi host (the hostname of the esxi is not yet in the dns). I can ping the ip of the esxi from fedora server

What else can I check?
(the esxi host is a the moment the only host in vsphere).


Thanks for help,
0
Comment
Question by:DamjanDemsar
  • 10
  • 6
17 Comments
 
LVL 119
ID: 39823603
Do you have a VMKernel port group?

What version of NFS is supported on your Linux box?

only v3.0 is supported by VMware vSphere.
0
 
LVL 5

Author Comment

by:DamjanDemsar
ID: 39823613
vmkernel port group - probably not how do I set it up?

If I see correctly the linux box supports NFS v3.0 and v4.0
0
 
LVL 119
ID: 39823634
0
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
LVL 5

Author Comment

by:DamjanDemsar
ID: 39823660
Hmm,

I created the vmkernel port group, tried again, same error
Then I thought, that it be a problem with IPs, since the vmkernel port group has a new ip... I tried to allow that vmkernel port group ip on linux server nfs settings, but now I got an error that mount request was denied.

original error is Unable to query remote mount point's attributes

I also tried adding no_root_squash permission in linux NFS settings, and it does not help
0
 
LVL 119
ID: 39823668
mount request denied.

do you have the IP Address added to the export.
0
 
LVL 5

Author Comment

by:DamjanDemsar
ID: 39823669
yes, that happend when I chaned the IP in the /etc/exports from esxi host IP to the vmkernel port group IP... do I need them both in the export file?
0
 
LVL 119
ID: 39823677
You need the IP Address which is talking NFS, which is the VMKernel Portgroup.
0
 
LVL 5

Author Comment

by:DamjanDemsar
ID: 39823697
I added permissions for both IPs and still the Unable to query remote point's permissions error is reported. The mount request denied is reported only when I use the vmkernel port group IP only.

if I check the linux server log I get:
Jan 31 12:24:36 YYYY rpc.mountd[13386]: authenticated mount request from QQQQ:746 for /home/first-backup/kt-vcenter (/home/first-backup/kt-vcenter)

QQQQ is the managemnt network IP from esxi
0
 
LVL 119
ID: 39823772
make sure the IP addresses can be resolved to names.

add to local host table on linux machine if needed.

also check the /var/log/vmkernel.log on ESXi.
0
 
LVL 5

Author Comment

by:DamjanDemsar
ID: 39823840
Hmmmm...

If I understand correctly the log from linux server, esxi tries to connect and is correctly authenticated

how to resolve the vmkernel IP   - the same name as the esxi host ip (management network IP)? - there was no place to put another name in esxi for vkernel port group ip

the unable to query mount point's attributes error is from vmkernel.log and it is always the same as in my original post

the first error is
2014-01-31T11:45:15.185Z cpu24:34081)NFS: 1236: NFS FSINFO failed with NFS status 70 (Stale file handle) on Server (YYYY) Path (/home/first-backup/kt-vcenter)
0
 
LVL 119
ID: 39823911
on the linux server in the hosts file

xxx.xxx.xxx.xxx management IP Host name of server
xxx.xxx.xxx.xxx IP Address of VMKernel and another name
0
 
LVL 5

Author Comment

by:DamjanDemsar
ID: 39823936
Sure... done

no effect.


and the hostname for vmkernel ip could not helo, since the esxi does not know it.
0
 
LVL 42

Expert Comment

by:paulsolov
ID: 39824002
have you enabled no_root_squash?  Essentially allow root access for read/write without authentication?

What type of hardware is the NFS mount on?
0
 
LVL 5

Author Comment

by:DamjanDemsar
ID: 39824022
Yes I tried it with and without no_root_squash.
The server itself is an older linux server (I do not need performance, since this will be a datastore for backups), but the data itself is on a fibrechannel connected infortrend enclosure.

The server has already NFS connections to other linux servers (as a NFS server, not client).
0
 
LVL 5

Author Comment

by:DamjanDemsar
ID: 39838504
Hmm... still not working

NFS server logs say that esxi is trying to connect using Management network IP, not VMkernel IP.

VMkernel has empty routing table...

is it possible to convince esxi to use the VMkernel?
0
 
LVL 5

Accepted Solution

by:
DamjanDemsar earned 0 total points
ID: 39941585
the problem was with the nfs server (even if it worked for other servers, it did not work for esxi. Update and reboot helped)
0
 
LVL 5

Author Closing Comment

by:DamjanDemsar
ID: 39949773
The question was pointed in the wrong direction... I thought the problem was the NFS client - that is VMware esxi, but the problem resolved itself after a scheduled update and reboot of NFS server (even if it worked ok with other non VMware NFS clients)
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Latest thoughts on C# utilizing Mono on Linux vs .NET on Windows? 5 61
Memory test on Esxi host 7 43
RHEL 6.7 Gnome Desktop on VMware 6 VM 9 63
Hypervisor 1 U 10 34
If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question