Experience with KB2110031 - Delete old tasks, events and statistics data in vCenter Server 5.x and 6.x
Hi,
My team was gifted with the task to manage an old vSphere 6.0 enviroment, "managed" from another team, obviously this is a production enviroment .
Due to missing sysadmin\documentation in that team, we found that the DB used by the Windows vCenter Server ( MSSQL 2012 ) was moved from another instance and the various vCenter rollover \ clean past jobs, didnt run due to missing permissions \ wrong MSSQL logins .
I've fixed this, but i've stopped those task since i think that it will not run due to the high old data that it needs to delete .
Long story short, i have a 200gb DB for a vSphere enviroment of 10 host and about 30 VM, with data from 2015 that i want to delete, keeping the last 30 days of events \ tasks .
I know that i can migrate to VCSA leaving the previous task and event on the old DB, but we cannot do it right now, we need to keep this enviroment up and running, maybe in some months we can proceed to migrate to VCSA .
https://kb.vmware.com/s/article/2110031
I've found this VMWare KB but i've never used it, does somebody have any specific hints before using it ?
Es. increase the TempDB \ Increase the T-log files on the VCDB DB ?
Thanks and best regards
Tano
Posted Jul 12, 2020, 10:21 AM UTC
Before we go through the VCDB with the script, have you actually looked at which table entries are taking up the most space? There is another KB out there in regards to purging old database entries where you clean up space from over sized events tables. I will see if I can find it and send it your way, but listing out what your largest tables are and the sizes of them respectively may give you a more accurate idea of what to do.
Hi,
Sorry for the late reply, but the oncall is kicking quite hard .
The top usage tables are the one related to Task \ Events :
VPX_TASK
VPX_EVENT
VPX_EVENT_ARG
Hah, no worries, I know how it goes.
How many of the tables are showing greater than 600mb? Are these three tables showing a huge size?
yes, just these three .