vSAN health Performance data collection fails
search cancel

vSAN health Performance data collection fails

book

Article ID: 326464

calendar_today

Updated On:

Products

VMware vSAN

Issue/Introduction

It appears that vSAN Performance has stopped collecting data.

In vSAN Skyline Health vSAN Performance data collection test fails

Details:

  • stats gathering failed
  • stats persistence failed

This article explains troubleshooting steps for when the VMware vSAN Performance Graphs are not visible in vCenter.

You can view performance changes from different levels of entities (clusters, hosts, disk groups, physical disks, virtual machines and virtual disks) and different standpoints (Virtual Machine consumption, vSAN backend).

There are multiple graphs you can monitor to understand vSAN performance. To review the details of all available vSAN performance graphs, see:

 vSAN Performance Graphs in the vSphere Web Client Part 1

vSAN Performance Graphs in the vSphere Web Client Part 2

vSAN Performance Graphs in the vSphere Web Client Part 3



Cause

There are a few common causes:
  • Performance service not enabled.
  • The ESXi hosts are on a newer version than vCenter.
  • Host certs are invalid/expired
  • Failed/stopped services.
  • The “Turn ON Virtual SAN performance service” is not enabled for VM policies.
  • Port 80 used for Performance Services is blocked on the ESXi hosts, see VMware Ports and Protocols for required vSAN ports

Resolution

To get vSAN performance graphs/charts, first, you need to enable the vSAN performance service.

Before you configure the vSAN Performance Service, make sure that the cluster is properly configured and has no unresolved health problems.

Configure vSAN Performance Service

Example:



After the service starts/restarts, go back to the vCenter web Client and click Edit for the Performance Service box

  •  Select the appropriate storage policy from the dropdown, ensure the “Turn ON Virtual SAN performance service” box is checked, and click “OK” 
  • Confirm that the performance service is turned on and reporting healthy
 
  1. Ensure all VMs are compliant with the related VM Storage policy.
  2. Reapply storage policy to VMs if necessary.
  3. Run the performance health check test again.


Workaround:
1)  Restarting the vsanmgmtd service on all the ESXi hosts in the vSAN Cluster.  There is no impact of restarting this service on the ESXi hosts, 
  • /etc/init.d/vsanmgmtd  restart
Make sure the service is running after the restart, 
  • /etc/init.d/vsanmgmtd  status
If this doesn't resolve the issue then (provided you don't mind losing historical performance data) consider disabling and re-enabling the performance service which also creates a new stats Object.

2)  Re-enable the performance service from the cluster level
  • Go to vSAN Cluster > Configure > vSAN > Services
  • Click “Turn off” in the “Performance Service”
  • Ensure that the Performance Service is disabled by refreshing the page. 
  • Re-enable the Performance Service and retest the Skyline Health.
3) In vCenter 8.0, to disable and re-enable vSAN Performance service, follow the below steps:
  1. Log into RVC via vCenter SSH.
    1. Open vCenter SSH.
    2. Log into shell
    3. Run the command: rvc
    4. Login with administrator@<domain>@localhost
  2. cd into localhost > datacenter > computers > vSAN Cluster
  3. Then run the command to delete the vSAN performance object: vsan.perf.stats_object_delete .
  4. Once deleted, proceed to create the vSAN performance object by using the command: vsan.perf.stats_object_create .
Note: You can also re-enable Performance Service via the vCenter Web Client.
4) Check vCenter/ESXi versions, if the vCenter version is on a lower version of ESXi then upgrade vCenter to be equal to or newer than ESXi.

5) Check firewalls and make sure port 80 is not being blocked for versions below 8.0U2, 8.0U2 and above ensure port 443 is not being blocked.

6) If the first 4 options don't resolve the issue collect entire cluster logs, open a case with vSAN support, and upload the logs for further investigation.


Additional Information