As time goes by your vCenter database will grow, its a fact we all know and accept. However we dont want to retain unnecessary old data in the database which causes disks to eventually fill up and backups to for run longer periods. So what can we do about it? Change the vCenter database retention policy of course...

 

 

Everytime a task or event is created it is stored in the database.

For example a task is created when powering on a virtual machine.

An event would be created when something occurs such as cpu usage for a VM changing to red.

In most cases for each task an event is created, such as powering off a VM in the example below.

 

 

Fortunatley the retention period for tasks and events can be changed (individually too!) 

 

 

1. In vSphere client go to (Administration --> vCenter Server Settings).

 

 

2. Check the database retention policy

Go to "Database Retention Policy".

The default retention policy is to keep tasks and event indefinatley.

 

 

3. Change the retentention policy as required

PCI-DSS compliance requires logs/records to be kept for up-to 1 year.

To change this so to reduce the database size while remaining compliant, set the retention period to 365 days for both tasks and events.

Click Ok, and there you go, you have now limited the growth of the database.

 

 

 

 

 

 

 

 

 

DISCLAIMER: All advice, tips, guides and other information on this website is provided as-is with no warranty or guarantee. While most information is correct to the best of my knowledge, I am not reponsible for any issues that may arise in using the information, and you do so at your own risk. As always before doing anything; check, double check, test and always make a backup.

Help VMadmin

All resources on this site are provided absolutley free. However it takes time and money to keep the site running. If any information has been helpful to you or your company, and you wish to make a donation to help keep VMadmin.co.uk running you can do so via paypal, and it would be much appreciated.

Click to donate to VMadmin.co.uk via paypal.