The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
Increasing the disk space in vCenter Server Appliance 5.x (2056764)
Note: For information on increasing disk space in vCenter Server 6.0, see Increasing the disk space for the vCenter Server Appliance in vSphere 6.0 (2126276).
To increase the disk space:
- Shut down the vCenter Server Appliance.
- Create a snapshot of the vCenter Server Appliance.
- Add a new hard disk of necessary size to the vCenter Server Appliance.
For more information on adding a new hard disk, see:
- Power on the vCenter Server Appliance.
- Connect to the vCenter Server Appliance using SSH.
- List all disk and identify the device ID of the new disk added by running this command in the shell client:
Note: By default, the device ID for the new disk is /dev/sdc
- Access the disk utility for the new disk by running this command:
- Press N then Enter for new partition
- Press P then Enter for primary partition
- Enter 1 as the partition number
- Accept the default start block and the default end block
- Enter W to write the partition table to disk
- Create a new partition on the new disk:
- Build an ext3 file system on the new disk using this command:
mkfs -t ext3 /dev/sdc1
- Create a new temporary directory under the root directory by running this command:
- Mount the new disk to the /tmp/db directory by running this command:
mount -t ext3 /dev/sdc1 /tmp/db
- Power off all services that access the vPostgres /storage/db directory by running this commands:
service vmware-vpxd stop
service vmware-vpostgres stop
service vmdird stop
service vmware-inventoryservice stop
- Copy all the /storage/db files into the /tmp/db directory by running this command:
cp -a /storage/db/* /tmp/db
- Return to the root directory by running this command:
- Verify the mount points by running this command:
For example, you see output similar to:
/dev/sda3 on / typ ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type devpts (rw,mode=0620,gid=5)
/dev/sda1 on /boot type ext3 (rw,noexec,nosuid,nodev,noacl)
/dev/sdb1 on /storage/core type ext3 (rw,nosuid,nodev)
/dev/sdb2 on /storage/log type ext3 (rw,nosuid,nodev)
/dev/sdb3 on /storage/db type ext3 (rw,nosuid,nodev)
/dev/sdc1 on /tmp/db type ext3 (rw,nosuid,nodev)
- Unmount the original disk and the new disk by running these commands:
- Mount the new disk to the /storage/db directory by running this command:
mount -t ext3 /dev/sdc1 /storage/db
- Preserve the new mount to the /storage/db directory by running the command:
sed -i -e 's#/dev/sdb3#/dev/sdc1#' /etc/fstab
Note: Do not remove /sdb3 from the virtual machine.
- Reboot the vCenter Server Appliance.
Additional InformationFor translated versions of this article, see:
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.