/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 Posts, vSAN, vSphere|0 Comments

About the Author:

I have over 20 years of experience in the IT industry. I have been working with Virtualization for more than 15 years (mainly VMware). I recently obtained certifications, including VCP DCV 2022, VCAP DCV Design 2023, and VCP Cloud 2023. Additionally, I have VCP6.5-DCV, VMware vSAN Specialist, vExpert vSAN, vExpert NSX, vExpert Cloud Provider for the last two years, and vExpert for the last 7 years and a old MCP. My specialties are Virtualization, Storage, and Virtual Backup. I am a Solutions Architect in the area VMware, Cloud and Backup / Storage. I am employed by ITQ, a VMware partner as a Senior Consultant. I am also a blogger and owner of the blog ProVirtualzone.com

Leave A Comment