Failed to Create VMware NFS Data store and Displayed Unable to Resolve Hostname Error
Valid for VMware
Symptom
Instant VM creation fails and displays the following error message:
Example
Solution
The reason for this error is that the ESX server lists all the NFS data store when you create InstantVM NFS data store, even when some data store are no longer available. For example, the NFS dat astore created by host2 still exists even if host2 is not available because the machine was deleted. So the ESX server cannot resolve the host name.
To resolve this issue, delete the unavailable data store from the ESX server.
Follow these steps:
- Log in to the ESX server using SSH.
- Type the following command:
- The same error is displayed in the command line.
- Add a mapping in the /etc/hosts file of the ESX server to resolve this issue.
- <IP address> <hostname>
- Note: The IP address should be reachable.
- Example: 10.57.X.X host2
- List all the NFS data store using the following command:
- Example: esxcfg-nas –l
- arcserve_UDP_host2 is /arcserve_UDP_IVM_{991555E6-09A4-4D80-A47E-522831A62Axx} from host2 unmounted unavailable
- Use the following command to delete the unavailable data store:
- Remove the <hostname> mapping in the /etc/hosts file from the ESX server.
- Now you can use the NFS function as usual.
esxcfg-nas –l
Error performing operation: Unable to resolve hostname 'host2'.
esxcfg-nas –l
arcserve_UDP_<hostname> is /arcserve_UDP_IVM_{ESX_generated_number} from <hostname> unmounted unavailable
esxcfg-nas -d arcserve_UDP_host2
Note: For more information on this issue, see the VMware KB article.