Can you please help me on my problem. I'm currently creating a VM to be use as A NAS Server and the OS is RHEL 5. I created a certain folder and share it. I also edited the vi /etc/exports and then I apply the folder to be shared just like this.
/folder 192.168.126.0 /255.255.255.0 (rw,no_root_squash,sync)
But still I received this kind of error. Hope you could help me out on this.
Appreciate your response.
The NFS share properties looks good,
This error is popped up when the VMkernel is not able to connect the NFS Server.
When you wanted to create a NFS datastore you need to create VMkernel nic.
If you have done this, can you try to perform a vmkping to NFS server
vmkping <nfs server IP >
If you did not create the vmkernel nic, please do as below.
In the VI client go to > Configuration > Networking > Add networking > select VMkernel > Then give the static IP and netmask and follow the wizard to create the VMkernel nic.
Then try to mount a NFS datastore.
This would help us to isolate the issue.
I have already created vmkernel nic IP and i can ping the said IP from the NFS Server but still the same concern.
Do we have any option?
Again thank you for your inputs.
have you tried to do a vmkping or a normal ping.
Please try to perform a vmkping,
And also can you try to do a general mount of that nfs share using the mount command on the console.
On the NFSServer investigate the log files for errors. /var/log/messages generally has those. Remember the IP to allow is the vmkernel device IP for NFS.
Edward L. Haletky
VMware Communities User Moderator
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
SearchVMware Blog: http://itknowledgeexchange.techtarget.com/virtualization-pro/
As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization
Thanks for your input, as advise I include all the vmkernel IP address on the NFS Server but still the problem is there. And when I try to ping the vmkping IP the status is ok..
Do we have any alternative to isolate the problem.
By the way upon checking the /var/log/messages here's what I've got.
Thanks for your help!
looking in to the /var/log/messages on the nfs server, there is a problem with the portmap service as its not able to connect.
Please try to restart the portmap and nfs service on the nfs server.
service portmap restart
service nfs restart
and then try to check the exports using the below command,
now try to do a datastore mount on the nfs server.
we lets try to investigate step by step.
have you tried to perform this on the NFS server, or the esx server?
can you let me know if you give command exportfs -a, what is the output ?
Yes I type the exportfs -a at the NFS Server and at the ESX Server and there's no result its just proceed on the next line and still the same problem. Unable to mount to the NFS Server.
looks like the nfs server is not responding.
can you try to give the output of cat /etc/exports
and also try to check the service nfs status, service portmap status
if they are not running, then try to start the service.
Then give the command showmoutn -e, this will show the nfs shares exported.
also try to flush the iptables, this might also stop the connection.
if every things is fine, all the services are running, then try to create the nfs datastore from the console of ESX.
esxcfg-nas -a <name> -o <nfs server name > -s <share name>
then give the command.
esxcfg-nas -l , this is to list the available nfs datastores in the ESX machine.
Here's the output on the cat /etc/exports
the service nfs and portmap are started
for the showmount -e
Export list for nfs-msi.vmeduc.com
/iso 192.168.126.72/255.255.255.255.0, 192.168.126.71/255.255.255.255.0, 192.168.126.70/255.255.255.255.0
Sorry for being so naive, but how to flush the IPs? And what's the command for this?Sorry I didn't get you..esxcfg-nas -a <name> -o <nfs server name > -s <share name>
Then when I try to access the esxcfg-nas -l there's no result.
command to flush iptables in nfs server
and the command esxcfg-nas -a is to create the nfs datastore
seeing your environment try to run thebelow comand.
esxcfg-nas -a iso -o nfs-msi.vmeduc.com -s /iso
this will create the nfs datastore share in ESX.
now to check if this this done, try to give the below command
and also check inthe storage pool are in VI client for the ESX
Thank you so much i have now mounted the NFS server on ESX.
I don't know how did it happen but i guess when i type the iptables on the ESX Server wherein i installed the RHEL 5 that i used to be the NFS server.
Again thank you so much for helping me on this appreciate your response and efforts on my scenario.
Looking forward for more Q&A inquiries.