Experienced a cluster partition upgrading ESXi from 8.0.2, to 8.0.3 and noticed some VMs showing as orphaned in the vCenter Server Web Client inventory.
-Zero inaccessible objects
-No resync currently running
-All disks in cluster are healthy
-vCenter 8.0.2 and 8.0.3
Found that the MTU for the vSAN vmkernel port was set back to factory defaults of 1500 MTU instead of the current cluster setting of 9000 MTU. Because of this the virtual machines became inaccessible until this issue was resolved. They then showed as orphaned in the vCenter Web Client UI.
This issue can be resolved by re-registering the orphaned virtual machines. Please see "How to register / add a VM to the Inventory in vCenter Server" under "Additional Information" below.
To register a virtual machine in vCenter Server:
To register a virtual machine from the command line in an ESXi host:
To unregister a virtual machine in vCenter Server:
To unregister a virtual machine from the command line in an ESXi host:
# vim-cmd vmsvc/getallvms | grep <vm_name>
# vim-cmd vmsvc/unregister <VM ID>
Following knowledge base article, "Virtual machines appear as invalid or orphaned or inaccessible in vCenter Server", directly under the "Resolution" section, it covers re-registering the virtual machines to clear up the "orphaned" state. There is also a link to "How to register / add a VM to the Inventory in vCenter Server", if any assistance is needed.