vCenter Server MS SQL Express database is full

This is something that I encounter more commonly with older versions of vCenter where the MS SQL Express 2008 that came bundled with vCenter was used.

I’ve stumbled on to this when you can’t login to vCenter and the VirtualCenter Server service won’t stay started.

**I have found that in some cases it might make sense to drop event.maxAge and task.maxAge to 15 if they keep filling up over and over.


In the event log, it will say something like:

Could not allocate space for object ‘dbo.VPX_EVENT’.’VPXI_EVENT_USERNAME’ in database ‘VCDB’ because the ‘PRIMARY’ filegroup is full. 

To purge the data in the VPX_EVENT table:
  1. Connect to Servername\SQL Database and log in with the appropriate credentials.
  2. Click databases to expand and select VIM_VCDB > Tables.Note: By default, the vCenter Server database is named VIM_VCDB, unless it was renamed during initial creation.
  3. Right-click the dbo.VPX_PARAMETER table and click Open.Note: If you are using SQL Server 2008, right-click the dbo.VPX_PARAMETER table and click Edit Top 200 Rows.
  4. Modify event.maxAge to 30 and the event.maxAgeEnabled value to true.
  5. Modify task.maxAge to 30 and the task.maxAgeEnabled value to true.Note: To improve the time of the data cleanup, run the preceding steps in several intervals:
    1. Ensure to keep the default value of event.maxAge and task.maxAge.
    2. Perform step 6 to run the cleanup.
    3. Reduce the event.maxAge and task.maxAge value by 60 and run the cleanup.
    4. Repeat the steps a-c until the value is reached to 30 for the final cleanup process.
  6. Run the built-in stored procedure:
    1. Go to VIM_VCDB > Programmability > Stored Procedures.
    2. Right-click dbo.cleanup_events_tasks_proc and select Execute Stored Procedure.This purges the data from the vpx_event, vpx_event_arg, and vpx_task tables based on the date specified for maxAge.
    3. When purging is successfully completed, close the SQL Management Studio and start the VMware Virtual Center Server service.
  7. Ensure that the default Statistics Level is set to 1:
    1. Using the vSphere Client, log in to vCenter Server as an administrator.
    2. Go to Administration > vCenter Server Settings > Statistics.
    3. Under Statistics Intervals, ensure the Statistics Level column is set to 1.
    4. To change the value, select the Interval Duration, click Edit and select Level 1 from the list.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s