vSAN datastore is inaccessible and cannot be removed
search cancel

vSAN datastore is inaccessible and cannot be removed

book

Article ID: 320008

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

Symptoms:

  • Datastore shows as (inaccessible) in the vCenter UI

  • No files are available in the vCenter UI for the respective datastore

  • There is an error: Datastore ‘{name}’ is not accessible or “No connected and accessible host is attached to the datastore.

  • Datastores may show as accessible but will not have any reference to the ESXi hosts or virtual machines.

Environment

VMware vCenter Server
VMware vSAN

Cause

Host has not properly decommissioned the vSAN disk groups and the host was moved out of the cluster.

Resolution

1. Place the Host configured for vSAN in Maintenance Mode

Before making storage changes, ensure the host is not actively running workloads.

  • Right-click the host in vCenter and select Maintenance Mode > Enter Maintenance Mode.

  • Choose No Data Migration (since we are destroying the cluster).

2. Connect via SSH

Enable SSH on the ESXi host (via the DCUI or vCenter) and connect to it using a terminal client like PuTTY.

3. Identify and Remove vSAN Disk Groups

You must manually delete the vSAN disk groups to release the storage devices.

  • Run the following command to list all disks participating in vSAN:

    esxcli vsan storage list

  • Identify the vSAN Disk Group UUID or the SSD UUID (the caching tier drive).

  • Remove the disk group using the SSD UUID (this automatically removes the capacity drives attached to it):
    esxcli vsan storage remove -s <SSD_UUID>

  • Verification: Run esxcli vsan storage list again. It should return no results, indicating the disk group is fully removed.

4. Force the Host to Leave the vSAN Cluster

Once the disks are wiped, command the host to abandon the vSAN cluster configuration.

  • Run the leave command:
    esxcli vsan cluster leave

5. Clean Up vCenter

After repeating the above steps for every host in the cluster, the physical vSAN infrastructure is completely dismantled.

  • Move the ESXi hosts out of the problematic cluster (drag and drop them to the Datacenter level).

  • Right-click the now-empty cluster and select Delete.

  • If you need to rebuild, you can now create a fresh cluster, move the hosts back in, and enable vSAN cleanly.

If after a cluster level rescan and command line removal the inaccessible datastore entry is seen open case with Broadcom Technical Support 

Additional Information