Deleting Inaccessible Objects from VSAN Datastore

  • Post category:VMware / VMware vSAN
  • Post last modified:July 25, 2024

While working on VSAN Environment you might come across a situation where your Production workload is working fine and everything is online. However, there will be Inaccessible objects present on the VSAN Cluster when you look at the vSAN Health section under the Monitor tab.

This is a common issue that can be resolved by deleting the inaccessible entries, However, since you are going to perform the delete operation you need to be very careful and always make sure that you have a healthy backup of the VMs on which you are going to perform this operation.

To get a health summary of the VSAN Objects.

esxcli vsan debug object health summary get

Deleting Inaccessible Objects from VSAN Datastore

To get the list of Inaccessible objects.

esxcli vsan debug object list --health=inaccessible > tmp/inaccessible.txt

Deleting Inaccessible Objects from VSAN Datastore

To copy the UUID from the Inaccessible Data

less inaccessible.txt | egrep "Object\ UUID:Path" | sed 'N;s/\n/ /g'

Deleting Inaccessible Objects from VSAN Datastore

To Check the attribute of the Data on the VSAN Cluster

/usr/lib/vmware/osfs/bin/objtool getAttr <UUID>

Deleting Inaccessible Objects from VSAN Datastore

Now you have the attribute details, this would be your last chance to decide whether this entry you are seeing is stale or is currently being used. Post this the last command will delete the entries.

To delete an Object

/usr/lib/vmware/osfs/bin/objtool delete -u <UUID> -f; 

Deleting Inaccessible Objects from VSAN Datastore

At any point, if you are not sure what you are doing, I would recommend you to stop and raise a Support case with VMWare.

Ashutosh Dixit

I am currently working as a Senior Technical Support Engineer with VMware Premier Services for Telco. Before this, I worked as a Technical Lead with Microsoft Enterprise Platform Support for Production and Premier Support. I am an expert in High-Availability, Deployments, and VMware Core technology along with Tanzu and Horizon.

This Post Has One Comment

  1. Chad Schoonover

    actually, the typo is between Object\ UUID:Path, it should be this – less inaccessible.txt | egrep “Object UUID:|Path” | sed ‘N;s/\n/ /g’

Leave a Reply