How to Remove an Inaccessible Datastore from VMware vCenter Inventory
search cancel

How to Remove an Inaccessible Datastore from VMware vCenter Inventory

book

Article ID: 444646

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • One or more datastores appear as an inaccessible datastore in the vCenter Server inventory after unmounting from all hosts.
  • The ESXi command line interface (CLI) command esxcli storage filesystem list shows a VMFS volume with empty mount points.

    /vmfs/volumes/########-#######-####-##################  OSDATA-########-#######-####-################# #######-########-####-############    true   VMFS-OS 128580583424  115675758592
                                                             #######-#####-DATASTORE00                     #######-########-####-############    false  VMFS-6      0             0

Environment

  • VMware vSphere ESXi 8.x

  • VMware vCenter Server 8.x

Cause

Storage array level detachment or deletion of the backing LUN occurs before the datastore properly unmounts from the vCenter Server inventory. Consequently, vCenter Server continues to track the inaccessible datastore UUID in the database. This causes the VMFS volume to persist as an orphan object in the user interface.

Resolution

To remove the inaccessible datastore from vCenter Server inventory, perform the following steps:

  1. Log in to the vSphere Client.

  2. Navigate to the Storage view.

  3. Check if any virtual machines or templates still associate with the inaccessible datastore.

    Note: Even if a virtual machine resides on another datastore, it might have a stale ISO or secondary disk reference pointing to the inaccessible volume.

  4. Once all references are cleared, right-click the Inaccessible datastore and select Delete Datastore.

  5. To refresh the inventory across the cluster, right-click the Cluster and select Storage > Rescan Storage.

Additional Information

For vSAN Datastore, refer to vSAN datastore is inaccessible and cannot be removed.