If the vCenter is installed on a Windows server, a MSSQL event similar to the following would show up in the Event Viewer / Windows Logs / Application:
To purge vCenter database (SQL), open the vCenter database (VIM_VCDB) by using SQL Management Studio. By inspecting the database properties, the Space Avaiable may only have several MB left. Since it's a dev lab, there's no need of keeping 180 day worth of events and tasks. I shrinked it down to 30 day by:
- Go to VIM_VCDB > Tables
- Right click the dbo.VPX_PARAMETER table and Edit Top 200 Rows
- Modify event.maxAgeEnabled to true
- Modify event.maxAge to 30
- Modify task.maxAgeEnabled to true
- Modify task.maxAge to 30
- Go to VIM_VCDB > Programmability > Stored Procedures and right click dbo.cleanup_events_tasks_proc and select Execute Stored Procedure
Depending on your environment, it took about 40 minutes to free up 4.6 GB (150 day worth of task and event) in the database. After cleanup, the database Space Available would show more available space:
After free up the vCenter database, all vCenter operations are back to normal. This is the VMware KB link with more details.
No comments:
Post a Comment