There may be times when you see some vSAN objects which are in an inaccessible state.Try to “Repair the absent or degraded vSAN objects immediately” or “Purge Inaccessible VM swap Objects” from VMWare vSAN Skyline Health option,and check if that helps.

There’s a few reasons that objects could have been inaccessible, one being orphaned objects like .vswp files that used to exist, or objects that are currently suffering failures more than it was configured to tolerate.

You can follow the below set of commands to delete the inaccessible objects from vSAN.

Step 1. SSH into VCSA. Login with root, then RVC into the VCSA Console. If your are not using the default vphere.local try: user@domain.com@localhost.

Step 2. Change directories and get into the Cluster folder.

Locate the name of your vSAN cluster by traversing the folders
Locate the name of your vSAN cluster by traversing the folders

Step 3.  Run vsan.check_state -r cluster-name. This will check the state and tries to refresh the objects it. It will then list out all the inaccessible objects.Note down the UUIDs of the inaccessible objects.

List inaccessible objects in the cluster
List inaccessible objects in the cluster

Step 4. We still have 16 objects that are unclassified. Run vsan.check_state -r cluster-name again, and note down the UUID of the remaining inaccessible objects.

Run vsan.cmmds_find -u UUID cluster-name. The details will show you where is the object hosted and what object it is.

Details of the particular object, owner and type
Details of the particular object, owner and type

Step 5. To delete, you will need to SSH into the respective owner nodes. Delete the objects using the UUID that we noted earlier. Run /usr/lib/vmware/osfs/bin/objtool delete -u UUID -f -v 10

Deleting inaccessible objects from the node
Deleting inaccessible objects from the node

Step 7. Repeat the process for each of the objects. 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s