This article provides steps to resolve the issue where a virtual machine displays two datastores where it should only be one as all its files are located in the same datastore.
When all VMware virtual machine files are located in one datastore, you experience these symptoms:
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
This issue occurs due to the following:
harddisk-xd-delta.vmdk
). This means earlier when the VM was running on the other datastore where there was a snapshot taken and since then it has been running on that snapshot disk.
parentFileNameHint'
parameter will show the UUID of the other datastore still showing up on the VM. Also, the file name would be ending with delta.vmdk.esxcli storage vmfs extent list | grep -i Datastore_name
Datastore_name xxxxxxxx-xxxxxxxx-744d-xxxxxxxxxxxx 0 naa.600xxxxxxxxxxxxxxxxx 1
cat harddisk-xd-delta.vmdk
# Disk DescriptorFile
version=1
encoding="UTF-8"
CID=b09d5b6c
parentCID=b09dxxxx
createType="seSparse"
parentFileNameHint="/vmfs/volumes/
xxxxxxxx-xxxxxxxx-744d-xxxxxxxxxxxx
/datastore/21 Jan 2025 15-45-54.3920Z.vmdk"# Extent description
RW 209715200 SESPARSE "harddisk-xd-delta-sesparse.vmdk"
Note: In some cases, the vmware.log file of the virtual machine is configured to write to another datastore.
To resolve this issue, either do one of the following:
To address if the vmware.log file of the virtual machine is configured to write to another datastore
If the virtual machine still displays two datastores
Workaround:
A) Compute vMotion the VM to another ESXi host, or re-register the VM:
Workaround:
B) Storage vMotion the VM to the datastore that contains the VM's .vmx file.