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.
Another scenario where the datastore might still be referenced is if the VM is configured to use an ISO or serial port associated with that datastore, even if it's not currently connected. This setup can result in 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:
Note: In the case of a serial port, even after storage vMotion, it may still be connected to the original datastore. This must be changed manually by editing the VM settings > Serial Port > Browse > New Datastore.