An administrator performing Storage VMotions, finds that they complete, but the VM(s) still show that they are using the datastore from which they migrated from.
vSphere (All versions)
ESXi (All versions)
Virtual machine configuration files (vmx file) located in the VM folder, contain all the details of the running VM, including the files it uses. When a Storage VMotion is performed, only these parts are moved with the VM, and anything left behind are essentially orphaned.
However, there is another situation where the datastore will be still referenced. If the VM had an ISO associated with that datastore, and is not connected, but set to use it, it can lead to a reference to the original datastore.
If an ISO is associated on the VM in this situation, the resolution is to remove/disconnect this on the VM settings.
Procedure: