Incorrect datastore information
To determine if this issue is caused by incorrect datastore information, run this command on your ESX hosts:
# vdf -h
You see output similar to:
[root@esx01 ~]# vdf -h
/vmfs/volumes/1dd794c6-cc279de7
600G 438G 161G 73% /vmfs/volumes/VM_STOR2
/vmfs/volumes/e2978cef-5a532852
400G 282G 117G 70% /vmfs/volumes/VM_STOR7
[root@esx02 ~]# vdf -h
/vmfs/volumes/1dd794c6-cc279de7
600G 438G 161G 73% /vmfs/volumes/VM_STOR2
/vmfs/volumes/e2978cef-5a532852
400G 282G 117G 70% /vmfs/volumes/VM_STOR7
[root@esx03 ~]# vdf -h
/vmfs/volumes/36132c1c-6f72083e
600G 437G 162G 72% /vmfs/volumes/VM_STOR2
/vmfs/volumes/e01dc51c-0e591900
400G 282G 117G 70% /vmfs/volumes/VM_STOR7
In this example, the third host identifies the datastore with a different UUID. Adding a host by these four different methods produces four different UUIDs:
- hostname
- hostname.domainname
- IP.address.of.host
- HOSTNAME vs. hostname
Run this command to find which methods were used to mount the datastores, SSH into each host:
# esxcfg-nas -lTo resolve this issue:
- If the virtual machine(s) that are attached to the datastore(s) in question can be powered off:
- Power off the virtual machine(s).
- Unmount the NFS datastore.
- Mount the NFS datastore with the required details to be consistent with all the hosts that have access to this datastore (that is, HOSTNAME, hostname, hostname.domainname, or IP.address.of.host).
- Power on the virtual machine(s).
- If the virtual machine(s) cannot be powered off:
- Use Storage vMotion to move virtual machines to a volume that is equally shared by the hosts. For more information, see Moving virtual machines with Storage vMotion (1005544).
- Unmount the NFS datastore.
- Mount the NFS datastore with the required details to be consistent with all the hosts that have access to this datastore (that is, HOSTNAME, hostname, hostname.domainname, or IP.address.of.host).
- Move the virtual machine(s) back to the datastore(s) using Storage vMotion.
Note: This procedure is applicable for NFS datastores, with block storage (local, Fiber Channel, iSCSI) steps 2 and 3 can be replaced with unpresenting/re-presenting the LUN from the ESX/ESXi host. For more information, see Removing a LUN containing a datastore from VMware ESXi/ESX 4.x (1029786)
If the issue persists:
- Unmap and remap the LUN from the storage side.
- Confirm that the UUID displays correctly, both from an SSH Client and in the datastore of the host.
- In the var/log/vmkwarning file, look for an entry similar to:
Failed to migrate vswp file" with /vmfs/ incorrect_datastore_ID
- If you see this entry, power off the virtual machine.
- Right-click the virtual machine in the Inventory and choose Edit Settings.
- Click the Option tab.
- Select a swap file location.
- Select Always store with the virtual machine.
Out-of-date virtual hardware
To determine if this issue is caused by out-of-date hardware, in the
/var/log/vmware/hostd.log file look for an entry similar to:
Upgrade is required since hwVersion in config file is 3This log entry indicates that the virtual machine's virtual hardware is at an earlier version than is required.
To confirm that the virtual hardware is out-of-date:
- Right-click on the virtual machine in the Inventory and choose Edit Settings.
- Check in the upper right corner of the Virtual Machine Properties screen. If the version is less than 4, you must upgrade the virtual hardware for this virtual machine.