This post is about how to remove such an inaccessible object within vSAN.
Open an SSH session to the vCenter and enter the command rvc localhost in the command line.
Navigate to the destinated vSAN cluster where you want to remove the inaccessible objects using cd and utilize ls to list in each step like this one:
Verify the state of vSAN objects using the command vsan.check_state -r . This check involves three steps:
- Checking for inaccessible vSAN objects
- Verifying invalid or inaccessible VMs, and
- Checking for VMs for which VC/hostd/vmx are out of sync
During this check, as you can see in the next screenshot, there are four inaccessible objects with the same UUID as those listed in Virtual Objects within the vSphere Client.
To remove them, open an SSH session to any ESXi in the cluster and use the following command /usr/lib/vmware/osfs/bin/objtool delete -u <UUID> -f replacing UUID with the one you want to remove.
After you remove all inaccessible objects and run the (vsan.checkstate -r .) once again, you should no longer see any inaccessible objects.
You must be logged in to post a comment.