vSAN 8.x
vSAN 7.x
Virtual machine becomes orphaned on a vSAN datastore after its namespace object becomes inaccessible.
The object was still owned by an ESXi host that had entered maintenance mode and vSAN was unable to transfer ownership of the object to another working host.
since the host was still in maintenance mode, The object remain inaccessible.
This resulted in the VM becoming orphaned and inaccessible from the vSphere inventory.
Example :
#esxcli vsan debug object health summary getHealth Status Number Of Objects--------------------------------------------------------- -----------------remoteAccessible 0inaccessible 1reduced-availability-with-no-rebuild 0healthy 563
#esxcli vsan debug object list --health=inaccessibleObject UUID: bba03665-####-####-############Version: 15Health: inaccessible - Lost data availability.(APD)Owner: Host1Size: 0.00 GBUsed: 1.82 GBPolicy:Configuration:RAID_1Component: bba03665-4e77-####-####-############Component State: ABSENT, Address Space(B): 273804165120 (255.00GB), Disk UUID: 52f5205e-eef3-####-####-############, Disk Name: mpx.vmhba0:C0:T7:L0:2Votes: 1, Capacity Used(B): 989855744 (0.92GB), Physical Capacity Used(B): 977272832 (0.91GB), Host Name: Host2Component: 281c0368-1a01-####-####-############Component State: ABSENT, Address Space(B): 273804165120 (255.00GB), Disk UUID: 523214a2-2523-####-####-############, Disk Name: mpx.vmhba0:C0:T6:L0:2Votes: 1, Capacity Used(B): 981467136 (0.91GB), Physical Capacity Used(B): 968884224 (0.90GB), Host Name: Host3Witness: 3e906868-bea6-####-####-############Component State: ACTIVE, Address Space(B): 0 (0.00GB), Disk UUID: 5283dbcf-e19f-####-####-############, Disk Name: mpx.vmhba0:C0:T7:L0:2Votes: 1, Capacity Used(B): 12582912 (0.01GB), Physical Capacity Used(B): 4194304 (0.00GB), Host Name: Host4Type: vmnamespacePath: /vmfs/volumes/vsan:79fd76100ace49d2-#############/wh-#### (Missing)Group UUID: bba03665-3e22-####-####-############Directory Name: wh-#####
To resolve the issue, follow these steps to force vSAN to reassign object ownership:
Exit the affected host from maintenance mode, if it is still in maintenance.
Identify the UUID of the inaccessible object (e.g., the VM namespace):
cmmds-tool find -t DOM_OBJECT -f json -u <object_uuid> | head
Find the current DOM owner (host UUID) from the output.
Map the owner UUID to a hostname:
cmmds-tool find -t HOSTNAME -f json -u <owner_uuid> | grep content
SSH into the host that currently owns the object.
Run the following command to force the object to abdicate ownership:
vsish -e set /vmkModules/vsan/dom/ownerAbdicate <object_uuid>
After ownership is abdicated, vSAN will reassign the object to a healthy host, restoring accessibility to the VM