Posted in: VMware, vSAN

Deleting Inaccessible vSAN Objects

Sometimes you may see few objects in Inaccessible state in vSAN cluster. Any disruptive action like abrupt power failure, or swap objects could be the reason for inaccessible objects.
If the objects are no longer needed, we can check and get rid of them.

SSH into vCenter and browse to vSAN cluster in RVC :

Run below command to check for inaccessible objects. It will try to refresh the state of the objects and list the inaccessible ones :-
vsan.check_state -r <cluster-name>

To fetch the information about the object like Host on which we have this object, etc, run below command :-
 vsan.cmmds_find -u <object_uuid> <cluster_name>

Alternate way is to run below command on any vSAN host in the cluster :

# /usr/lib/vmware/osfs/bin/objtool getAttr –bypassDom -u <object_uuid>

Based on the above information, you can decide if the objects is needed or not. If it’s some stale object leftover from any intentional or manual intervention, and you decide to get rid ot it, below command can be run to delete the object :-
# /usr/lib/vmware/osfs/bin/objtool delete -u <object uuid> -f -v 10

Note : Please be careful before deleting the object. If you are not sure, it’s better to have valid backup of all the VMs/objects. In my case here it was just a ISO object which is safe for deletion.

You may run the below command again to check if this inaccessible object has been removed.
Same can be also validated through vSAN health check GUI :
vsan.check_state -r .

Back to Top