Virtual Machine displays two datastores in Summary tab despite all its files being located on one datastore
book
Article ID: 323058
calendar_today
Updated On:
Products
VMware vCenter ServerVMware vSphere ESXi
Issue/Introduction
This article provide 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.
Symptoms: When all VMware virtual machine files are located in one datastore, you experience these symptoms:
VM shows on two datastore.
The Summary tab of the Virtual Machine displays two datastores within the vSphere Web Client.
The "Datastores and Datastore Clusters" view displays the Virtual Machine in two datastores within the vSphere Web Client.
The VM is still showing a reference to an old datastore after storage vMotion.
Environment
VMware vSphere ESXi 6.7 VMware vSphere ESXi 8.0 VMware vCenter Server 6.5.x VMware vCenter Server 8.0.x VMware vSphere ESXi 6.5 VMware vCenter Server 6.0.x VMware vCenter Server 6.7.x VMware vSphere ESXi 6.0 VMware vCenter Server 7.0.x VMware vSphere ESXi 7.0
Cause
This issue occurs due to the following:
The VM is referencing an ISO file and is actively mounted.
For VMs running on hardware version 10 or older, there is a possibility of the VM referencing a floppy drive.
The VM is running on a snapshot and/or a snapshot that might have been taken at a time when the VM had an ISO reference (For example, for older VMs, a floppy drive reference).
Note: In some cases, the vmware.log file of the virtual machine is configured to write to another datastore.
Resolution
To resolve this issue, either do one of the following:
Consolidate the virtual machine snapshot. For steps and for more information, see Consolidate Snapshots.
Unmount the ISO file currently mounted to the virtual machine.
For VMs running on Hardware Version 10 or lower, unmount the floppy drive reference (This would be visible only through the Windows Desktop Client).
Note: If the ISO file (or floppy drive) is not in use by the virtual machine, select Client Device from the drop-down next to the CD/DVD drive.
vSphere Web Client
Right click the virtual machine and select Edit Settings.
Expand the CD/DVD drive, verify if an ISO file is mounted to virtual machine from another datastore.
From the drop-down next to the CD/DVD drive, select Client Device.
Click OK to save the changes to the virtual machine.
To address if the vmware.log file of the virtual machine is configured to write to another datastore
Navigate to VM Options > Advanced > Edit Configuration:
Search for the custom field: log.fileName.
If the field exist, power off the virtual machine and remove or delete this field.
Power on the virtual machine.
If the virtual machine still displays two datastores
Workaround A) Compute vMotion the VM to another ESXi host, or re-register the VM: