/vSAN find and delete unassociated or inaccessible objects

vSAN find and delete unassociated or inaccessible objects


In this vSAN find and delete unassociated or inaccessible objects blog post, I will discuss an issue I had a couple of weeks ago. I had a vSAN with some issues with some inaccessible objects and could not resync or fix them using the vSAN. Even detach and reattach the ESXi host did not fix the problem.

So this work needs to be done manually and delete the inaccessible objects. The first issue, I was able to find in which ESXi these objects belong.

To be able to fix this, we need to use the rvc tool.

Note: Guide for rvc tool HERE.

From vCenter console

First, let us check the vSAN Cluster state.

Note: Do not forget first in rvc to enter the computer’s directory to run your commands.

As we can see on object was detected as inaccessible.

We can then try to remove them with just a purge command

Again, even the state display one object inaccessible, the purge command could not delete or fix.

Next, we need to find where these objects belong to so that we can delete them manually. We can do that using the command vsan.cmmds_find.

Note: You need to add the location(full path) where the find command should run.

As we can see in the following image, the find command found the object and the stored ESXi.

From ESXi host.

Now that we know in which ESXi the object is, we can run the delete command manually in the identified ESXi.

We do the same process for all objects found in all the ESXi with unassociated or inaccessible objects.

After finish, run the Health Check(Skyline Health) again in the vSAN monitor, and all is green with no more issues with objects.

I hope this quick fix helps you take care of your vSAN find and delete unassociated or inaccessible objects.

Share this article if you think it is worth sharing. If you have any questions or comments, comment here, or contact me on Twitter.

©2021 ProVirtualzone. All Rights Reserved
By | 2021-10-05T11:59:45+02:00 October 5th, 2021|VMware, vSAN, vSphere|0 Comments

About the Author:

I am over 20 years’ experience in the IT industry. Working with Virtualization for more than 10 years (mainly VMware). I am an MCP, VCP6.5-DCV, VMware vSAN Specialist, Veeam Vanguard 2018/2019, vExpert vSAN 2018/2019 and vExpert for the last 4 years. Specialties are Virtualization, Storage, and Virtual Backups. I am working for Elits a Swedish consulting company and allocated to a Swedish multinational networking and telecommunications company as a Teach Lead and acting as a Senior ICT Infrastructure Engineer. I am a blogger and owner of the blog ProVirtualzone.com

Leave a Reply

%d bloggers like this: