Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Increase the disk space in vCenter Server Appliance (2056764)

Details

vCenter Server Appliance with an embedded vPostgres database might experience low disk space.

Solution

To increase the disk space available, perform the following steps:
  
  1.  Shut down the vCenter Server Appliance.
  2.  Add a new hard disk of necessary size to the vCenter Server Appliance. 
       
       For more information on how to add a new hard disk, see the Add a New Hard Disk to a Virtual Machine section of the vSphere Virtual Machine Administration Guide.

  3.  Power on the vCenter Server Appliance.
  4.  Connect to the vCenter Server Appliance using SSH.
  5.  List all disk and identify the device ID of the new disk added by running the following command in the shell client:
   fdisk -lu
       Note: By default, the device ID for the new disk is /dev/sdc

  6.  Create a new partition on the new disk:
           a.  Access the disk utility for the new disk by running the following command:
       fdisk /dev/sdc
           b.  Press N then Enter for new partition
           c.  Press P then Enter for primary partition
           d.  Enter 1 as the partition number
           e.  Accept the default start block and the default end block
            f.  Enter W to write the partition table to disk

   7.  Build an ext3 file system on the new disk using the following command:
    mkfs -t ext3 /dev/sdc1
   8.  Create a new temporary directory under the root directory by running the following command:
    mkdir /tmp/db
   9.  Mount the new disk to the /tmp/db directory by running the following command:
    mount -t ext3 /dev/sdc1 /tmp/db
 10.  Power off all services that access the vPostgres /storage/db directory by running the following commands:
    service vmware-vpxd stop
    service vmware-vpostgres stop
    service vmdird stop
    service vmware-inventoryservice stop
 11.  Copy all the /storage/db files into the /tmp/db directory by running the following command:
    cp -a /storage/db/* /tmp/db
 12.  Return to the root directory by running the following command: 
    cd /
 13.  Unmount the original disk and the new disk by running the following commands:
    umount /dev/sdb3
    umount /dev/sdc1
 14.  Mount the new disk to the /storage/db directory by running the following command:
    mount -t ext3 /dev/sdc1 /storage/db
 15.  Preserve the new mount to the /storage/db directory, by running the following command:
    sed -i -e 's#/dev/sdb3#/dev/sdc1#' /etc/fstab

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 2 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 2 Ratings
Actions
KB: