VMware Vcenter – VIM_VCDB database ‘PRIMARY’ filegroup is full

Recently a customer had filled up their free SQL Express Database with Events and Tasks from Vmware. The Hosts has both gone to Disconnected with error

cannot synchronize host cannot contact the specified host

and when trying to re-add the error would be displayed

VIM_VCDB database ‘PRIMARY’ filegroup is full

failed because the resulting cumulative database size would exceed your licensed limit of 4096 MB per database.

SQL Express has a 4GB database limit, we need to clear out the old logs and don’t want to install and download SQL management studio so we need to run the below in command prompt with the same user that installed the DB or has write permissions to it!

c:> "C:\Program Files\Microsoft SQL Server\90\Tools\Binn\OSQL.EXE" -S localhost\VIM_SQLEXP -E
1> use VIM_VCDB
2> go
1> update vpx_parameter set value=’<value>’ where name=’event.maxAge’
2> update vpx_parameter set value=’<value>’ where name=’task.maxAge’
3> update vpx_parameter set value=’true’ where name=’event.maxAgeEnabled’
4> update vpx_parameter set value=’true’ where name=’task.maxAgeEnabled’
5> go
(1 row affected)
(1 row affected)
(1 row affected)
(1 row affected)
1> exec cleanup_events_tasks_proc
2> go
1> dbcc shrinkdatabase (‘VIM_VCDB’)
2> go


The permanent solution would be to move the SQL server to a full version of SQL Server or to migrate to Vcenter Standalone server ( Hosted on Linux! ) 

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...