Validate vSAN Storage Policy used by vSAN objects on a vSAN cluster
search cancel

Validate vSAN Storage Policy used by vSAN objects on a vSAN cluster

book

Article ID: 398515

calendar_today

Updated On:

Products

VMware vSAN

Issue/Introduction

This article explains how to validate what vSAN storage policies are applied to all the vSAN objects on a vSAN cluster via CLI.

Environment

VMware vSAN 7.x

Resolution

To validate what storage policies are used by the vSAN objects in the cluster:

  1. Open SSH to any host in the vSAN cluster.

  2. Run this command to get the list of all objects in the vSAN cluster: esxcli vsan debug object list --all > /tmp/vsan_obj.txt

  3. Run this command to get a list of vSAN Storage policies used, and the number of vSAN objects using each of these storage policies: grep -i "spbmProfileName" /tmp/vsan_obj.txt |sed 's/.*spbmProfileName//' | sort | uniq -c 

    Example output:


    In the above example, 580 objects are using "vSAN" storage policy and 812 objects are using "vSAN_FTT_1" storage policy.

  4. To validate the configuration of each vSAN storage policy, navigate to vSphere Client > Menu > Policies and Profiles > VM Storage Policies > Here the storage policies seen in the output of Step 3 can be verified.