This article explains how to validate what vSAN storage policies are applied to all the vSAN objects on a vSAN cluster via CLI.
VMware vSAN 7.x
To validate what storage policies are used by the vSAN objects in the cluster:
Open SSH to any host in the vSAN cluster.
Run this command to get the list of all objects in the vSAN cluster: esxcli vsan debug object list --all > /tmp/vsan_obj.txt
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.
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.