vCenter Server Appliance with an embedded vPostgres database may stop running with out any warning. After logging into the web user interface (web UI) of the appliance you may notice that, in the Storage Usage on the Summary tab, the database statistics are showing 100%. Attempting to start the vCenter Server services at this point will result in the service running for a brief moment before is automatically shuts down again. This occurs because a disk partition on the vPostgres database contains no free space.
VMware doesn't have any recommended preventative maintenance tasks at this time but it doesn't hurt to establish your own in order to prevent this sort of issue in the first place. There is a retention policy for the database and we will look at why that may not be adequate for some installations.
The following information was compiled from VMware knowledge base articles KB2058273 and KB2092127
Let's first see about getting the vCenter appliance running again. In order to perform maintenance on your vCenter Appliance, you will need to open an SSH session with the appliance. We typically use PuTTY since it is free and reliable. Login using the root account and password. This is likely the same password you use to login to the appliance's web UI.
Perform a check to verify that the vPostgres database is full using the following command.
my-vcenter:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 9.8G 3.7G 5.6G 40% /
udev 4.0G 104K 4.0G 1% /dev
tmpfs 4.0G 0 4.0G 0% /dev/shm
/dev/sda1 128M 21M 101M 18% /boot
/dev/sdb1 20G 9.1G 9.7G 49% /storage/core
/dev/sdb2 20G 1.1G 18G 6% /storage/log
/dev/sdb3 60G 11G 46G 20% /storage/db
In the example above the /storage/db is at 20% utilization, which is good. When this reaches 100%, the system will automatically shutdown the database until there is enough space available to operate. With vCenter appliance v5.5 U2 the log files often get too large and too fast so that the normal retention time doesn't get rid of them
If your situation is such that you are seeing 100% utilization on the database storage volume then you can follow the remaining steps to clear out some log files to free up available space.
At this time your vCenter appliance should be running.
VMware has noted that with vCenter v5.5 Update 2 changes were made to database driver which has caused the database to grow at a faster rate than the default allotted storage can retain with the default retention policy. VMware knowledge base article KB2092117 notes a change to the configuration file for vCenter to help reduce the log file size.
We hope that this information is helpful. Please let us know how this has helped you or if you have additional questions. As always Firestone Technical Resources, Inc. is here to help with your computer support issues - "Providing personal service for your impersonal technology."
Comments