Hi Konnan,
From what you described, it looks like the old datastores are still orphaned in vCenter but no longer actually exist on the ESXi hosts. This happens when vCenter retains references to storage that no longer exists in the real system. To resolve this safely and avoid issues, you can remove them directly from vCenter using PowerCLI.
First, connect to vCenter via PowerCLI using the command:
Once connected, list all the existing datastores with:
If the old datastores are still listed, proceed with removing them using:
This will delete the orphaned datastore reference directly from vCenter without needing any interaction with the ESXi hosts.
If PowerCLI does not resolve the issue and the datastores are still visible in the vCenter GUI, it means that vCenter might still have residual references in its database. In this case, restarting the vpxd service can help clear them. You can do this by running:
on the vCenter server. After the restart, check again if the orphaned datastores are still present, and try removing them again if necessary.
With this method, you avoid performing any risky operations on the hosts and act safely within vCenter itself. This should resolve the issue without leaving any residual traces. Let me know if it work