Every vSAN Cluster has a CMMDS/Stats Master/Primary and Backup ESXi host that manages the cluster. This master/primary host is responsible for the following:
Below are examples when VMware by Broadcom Support may ask for just the master/primary host logs and/or a subset of cluster logs to be collected, especially for large clusters:
VMware vSAN (All Versions)
echo -e "\n--- vSAN Cluster Roles ---"; MASTER=$(esxcli vsan cluster get | awk -F ': ' '/Sub-Cluster Master UUID/ {print $2}'); BACKUP=$(esxcli vsan cluster get | awk -F ': ' '/Sub-Cluster Backup UUID/ {print $2}'); HOST_MAP=$(cmmds-tool find -f json -t HOSTNAME | grep -E "uuid|content" | sed 'N;s/\n/ /' | awk -F \" '{print $10": " $4}'); echo -e "Master Node:\t$(echo "$HOST_MAP" | grep "$MASTER")"; echo -e "Backup Node:\t$(echo "$HOST_MAP" | grep "$BACKUP")"
--- vSAN Cluster Roles ---Master Node: esxi03: 69c38079-d91a-acdc-b1as-############Backup Node: esxi13: 69c38078-7404-7c5c-23cd-############