Investigating and cleaning up inaccessible vSAN objects - VMware vSAN
search cancel

Investigating and cleaning up inaccessible vSAN objects - VMware vSAN

book

Article ID: 397411

calendar_today

Updated On:

Products

VMware vSAN VMware Telco Cloud Platform VMware vSphere ESXi

Issue/Introduction

This article outlines the steps to investigate and identify these orphaned objects.

Symptoms:

  • The Skyline Health check identifies inaccessible objects under vSAN object health.

  • The objects reported on skyline health may be STALE or orphaned caused by either VM deletion/migration to another storage or VMDK is created but never consumed.

Environment

VMware vSAN - all versions

Cause

  • These orphaned vSAN components typically result from incomplete virtual machine (VM) deletions or failed snapshot consolidations, which leave the objects disconnected from any valid VM configuration.

  • Additionally, if a host is moved to a new cluster without being properly decommissioned first, it may retain stale objects from the previous cluster, which will then be flagged in the health check on the new cluster.

Resolution

Follow the below steps to clear the inaccessible vSAN Objects.

  1. For inaccessible VM Swap Objects follow the below steps.

    Purge VM Swap Objects: Use the vCenter UI and navigate to vSAN Skyline Health > Data Health. Click Purge inaccessible VM Swap Objects to detect and remove vswp objects.



  2. For other inaccessible vSAN objects, follow the below steps.
      1. Identify Inaccessible Objects: Connect to an ESXi host in the cluster via SSH and run: esxcli vsan debug object list --health=inaccessible > /tmp/inaccessible_objects.txt

      2. Generate Readable List: For an easier review of the objects, run: cat /tmp/inaccessible_objects.txt | grep "Object UUID\|Health\|Path" | awk '{printf $0}' | sed -e s"/Object UUID/\nObject UUID/g" | grep inaccessible > /tmp/debugInacc.txt

      3. Verify Object Status: Check the identified files within the vCenter inventory to confirm they are not in use. Navigate to vSAN Datastore > Files and verify the object paths.

      4. Once confirmed as orphaned, for further assistance to remove the inaccessible objects contact Broadcom Support. To speak with a customer representative or a Support Engineer see Contact Support. Scroll to the bottom of the page and click on your respective region

Additional Information

For more details on vSAN health, refer to vSAN Health Service - Data Health.