Incorrect space usage reported for objects in vSAN ESA Cluster using Command Line option
search cancel

Incorrect space usage reported for objects in vSAN ESA Cluster using Command Line option

book

Article ID: 383485

calendar_today

Updated On:

Products

VMware vSAN 7.x VMware vSAN 8.x

Issue/Introduction

‘esxcli vsan debug object list’ command output showing discrepancy in the ‘Used’ space and the ‘Size’ for objects.

For Example, a 510 GB disk showing used space of 2842 GB in the vSAN datastore.


Object UUID: bd8c9d5e-eac8-b4e5-4cec-xxxxxxxxxxxx:
Version: 10
Health: Healthy
Owner: ESX_01
Size: 510.00 GB
Used: 2842.00 GB

Storage policy change for these objects will report a huge resync data.

Environment

VMware VSAN 7.x

VMware vSAN 8.x

Resolution

A script attached with this article can be utilized to efficiently retrieve and display the actual usage of each object within the vSAN ESA cluster.

Syntax:
 
To query a specific object by its UUID:
python query_object_capacity_usage.py --uuid 55fe3b67-xxxx-xxx-xxxx-xxxxxxxxxxxx
 
By default, the script will display capacity usage for all objects:
python query_object_capacity_usage.py
 
Options:
  --uuid            Filter by object UUID.
  --rawSize         Display the raw capacity data (in bytes).
  --csv             Output data in CSV format (comma-separated).
 

Note

  • Use the --rawSize option to view capacity usage in bytes for detailed analysis.
  • Use the --csv option for exporting results in a format suitable for spreadsheet applications.

Attachments

query_object_capacity_usage.py get_app