Symptoms
- While accessing the performance tab and navigating to Overview, you see:
No data available
- The data for Real time, but fails to retrieve it for past 1 day, week, month or year.
- While selecting the advance parameter in performance tab, you see:
Performance data is currently not available for this entity
Cause
This
issue is caused by the vCenter Server database (Postgress) containing a
stale/future time stamp reference for the ESXi host when the data was
collected.
For vCenter Servers using SQL, see "Performance data is currently not available for this entity" error after updating rollup in vSphere
For vCenter Servers using SQL, see "Performance data is currently not available for this entity" error after updating rollup in vSphere
Resolution
- Backup the vCenter database. For more inforamtion, see Back up and restore vCenter Server Appliance/vCenter Server 6.x vPostgres database
- Create a snapshot of the vCenter Server Appliance.
- Log in to the vSphere Web Client and navigate to Advanced Settings.
- Add this setting config.vpxd.stats.maxQueryMetrics with the value 256.
- Connect to vCenter Server Appliance through the console or using an SSH session along with root credentials.
- Enable the shell by running this command:
shell.set --enabled true
- Type shell and press Enter.
- Run this command to log in to the vCenter Server Appliance database:
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres
- Run the following query:
select id,dns_name,last_perf_time from vpx_host;
Example output:
id | dns_name | last_perf_time
----+--------------------+---------------------
15 | esxi1.labs.org | 2020-06-10 17:45:00
18 | esxi2.labs.org | 2020-06-10 17:25:00
52 | esxi3.labs.org | 2020-06-10 17:40:00
- Look for last_perf_time entries that are not close in time to the other entries:
id | dns_name | last_perf_time
----+--------------------+---------------------
15 | esxi1.labs.org | 2020-06-10 17:45:00
18 | esxi2.labs.org | 2020-04-15 13:05:00 <-------- Problem host
52 | esxi3.labs.org | 2020-06-10 17:40:00
- Run the following query to update the time stamp:
update vpx_host set last_perf_time =now() where id=’HOST-ID’;
- In vCenter database confirm that host time has been updated ( After update)
id | dns_name | last_perf_time
----+--------------------+---------------------
15 | esxi1.labs.org | 2020-06-10 17:45:00
18 | esxi2.labs.org | 2020-06-10 17:55:00
52 | esxi3.labs.org | 2020-06-10 17:28:00
- In 30-40 mins the vCenter Server performance chart will start populating. Data collection of month, week will take more time.
Comments
Post a Comment