Many customers choose to deploy VirtualCenter Server with a Microsoft SQL Server database. SQL Server offers administrators a choice of recovery models, which is the primary factor that determines transaction log disk space requirements. The full recovery model is default and has the potential to consume all available disk space, if appropriate database maintenance is not performed. It is a best practice to schedule regular backups of the database and transaction log to avoid unnecessary growth.
In some instances, VirtualCenter may crash because all disk space is consumed by the transaction logs or not start due to lack of transaction log space. In these cases where full backup cannot be performed and free space is required to get VirtualCenter to start, it is possible to 'commit' and then shrink the transaction logs.
To commit and shrink the transaction logs:
Note: If this is a production database, backup the database after following these steps. When the transaction log is committed replay is not available for any transactions in a disaster recovery scenario after the last full backup that was performed.
Microsoft SQL
On a Microsoft SQL server:
Note: Microsoft SQL Server Management Studio Express can be used for SQL server 2005 Express Edition. If it is not installed on the server, you cant download and install it from the Microsoft
Download Center. For Microsoft SQL 2008 Express edition, see
Download Center.
Note: The preceding link was correct as of November 28, 2019. If you find the link is broken, provide feedback and a VMware employee will update the link.
- Log in to the Microsoft SQL Server as an administrator.
- Open up SQL Management Studio.
Note: If you are using MS SQL 2005, ensure that you use MS SQL Management Studio 2005. Alternatively, if you are using MS SQL 2008, ensure that you use MS SQL Management Studio 2008.
- Right-click the database that VirtualCenter is using.
- Click Properties.
- Click the Options link.
- Set the Recovery Model to Simple:
- Click OK.
- Right-click on the database again.
- Click Tasks > Shrink > Files.
-
On the Shrink Database window select the file type as
Log . The file name appears in the filename drop down as
databasename_log:
The space used versus the space allocated displays. After you set the recovery model to Simple, the majority of the space in the transaction log released.
- Ensure that the Release unused space radio button is selected.
- Click OK on this window to shrink the transaction log.
Free space is now available on the server. If the VMware VirtualCenter Server service was not starting due to lack of space in the transaction log attempt to start the service again at this point.
Workaround:
To work around this issue:
- Log in to SQL Server Management Studio Express.
- Select vCenter database.
- Right Click on vCenter database and select Properties as shown below.
- Click on Files and set the Maximum File size as shown in the below screenshot:
- Click OK.