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, the following symptoms are seen:
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
VMware vSAN 8.x
This behavior occurs if the virtual machine maintains a reference to a file on the secondary datastore, such as:
cat the same vmdk file. The '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_nameDatastore_name ########-########-####-############ 0 naa.#################### 1cat harddisk-xd-delta.vmdk# Disk DescriptorFileversion=1encoding="UTF-8"CID=b09d5b6cparentCID=b09dxxxxcreateType="seSparse"parentFileNameHint="/vmfs/volumes/########-########-####-############/datastore/<vm_name>.vmdk"# Extent descriptionRW 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:
From the vSphere Web Client:
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, try one of the below workarounds.
Workaround:
A) Compute vMotion the VM to another ESXi host, or re-register the VM:
B) Storage vMotion the VM to the datastore that contains the VM's .vmx file.
C) On a vSAN cluster after Storage vMotion task, virtual machine shows registered in both cluster due ISO file still pointing on a source cluster:
If the issue still persists, Contact Broadcom Support.