This is a known issue affecting vCenter Server 6.0.
To resolve this issue, create the VPX_STAT_COUNTER_M1 index using the user account, as vpxuser, of vCenter Server database:
- Open the SQL Management Studio and connect to the vCenter Server database using the vCenter Server user to connect.
- Create a backup of the vCenter Server database.
- Select New Query and execute this query:
use vCenter_Server_Database
CREATE INDEX VPX_STAT_COUNTER_M1 ON VPX_STAT_COUNTER(STAT_ID,COUNTER_ID)
For example:
use vcdb
CREATE INDEX VPX_STAT_COUNTER_M1 ON VPX_STAT_COUNTER(STAT_ID,COUNTER_ID)
- To check for data that needs to be processed, execute this query:
select COUNT(*) from vpx_sample_time2 where rollup_counter is null
and DATEDIFF(HH, sample_time,getutcdate()) > 6
go
- If the query does not return 0, run these steps:
- Navigate to Server > SQL Server Agent.
Note: Ensure that the SQL Server Agent is running. If it is not running, right-click the SQL Server Agent and select Start.
- Click Jobs.
- Right-click Past Week stats rollup vCenter_Server_Database.
- Click Start Job at Step.
- Click Start.
- After the job completes, click Close.
- Repeat the query in Step 4.
- If the query does not return 0. Run steps a through h until it returns 0. If the job is running successfully in some time, it takes multiple runs to clear the data that is not processed.