Increasing the disk space for the VMware vCenter Server Appliance in vSphere 6.0
search cancel

Increasing the disk space for the VMware vCenter Server Appliance in vSphere 6.0

book

Article ID: 320156

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

This article provides steps to increase the disk space of a specific VMDK for the vCenter Server Appliance 6.x. With the introduction of Logical Volume Management (LVM) in vSphere 6.0, you are now able to dynamically increase the disk size of the vCenter Server disks.
 


Environment

VMware vCenter Server Appliance 6.0.x

Resolution

To increase the disk capacity for a specific VMDK on the vCenter Server Appliance 6.0

Note:This KB article is not applicable for increasing the size of the root ( / ) partition as the root partition is not LVM, we cannot modify the size of root ( / )  
  1. Log in to the vCenter Server Appliance using SSH and root credentials.
  2. Run this command to enable the Bash shell:

    shell.set --enabled true
     
  3. Type shell and press Enter.
  4. Use this command to verify which disk is experiencing disk space issues:

    df -h
     
  5. Using the vSphere Client or vSphere Web Client, locate the vCenter Server Appliance virtual machine and increase the disk space on the affected virtual disk. For more information, see Increasing the size of a virtual disk (1004047) .

    Note: If the vCenter Server Appliance is inaccessible connect directly to the host that is running the virtual machine.
  6. After the virtual disk is increased, return to the SSH session and run this command to automatically expand any logical volumes for which the physical volumes are increased:

    vpxd_servicecfg storage lvm autogrow

    When the grow operation is successful, you see output similar to:

    VC_CFG_RESULT=0
     
  7. Run this command to confirm that the virtual disk has been successfully grown:

    df -h

To increase the disk capacity for a specific VMDK on the PSC 6.0 U2a or later

  1. Log in to the PSC using SSH and root credentials.
  2. Run this command to enable the Bash shell:

    shell.set --enabled true
     
  3. Type shell and press Enter.
  4. Use this command to verify which disk is experiencing disk space issues:

    df -h
     
  5. Using the vSphere Client or vSphere Web Client, locate the PSC virtual machine and increase the disk space on the affected virtual disk. For more information, see Increasing the size of a virtual disk (1004047).

    Note: If the PSC is inaccessible connect directly to the host that is running the virtual machine.
  6. After the virtual disk is increased, return to the SSH session and run this command to automatically expand any logical volumes for which the physical volumes are increased:

    /usr/lib/applmgmt/support/scripts/lvm_cfg.sh storage lvm autogrow
     
  7. Run this command to confirm that the virtual disk has been successfully grown:

    df -h


Additional Information

Increase the disk space in vCenter Server Appliance (2056764). Increasing the size of a virtual disk
Increasing the disk space in vCenter Server Appliance 5.x
/storage/log directory is full in vCenter Server Appliance 6.X 
增加 vSphere 6.0 中 VMware vCenter Server Appliance 的磁盘空间
vSphere 6.0 の VMware vCenter Server Appliance のディスク容量を増やす
Increasing the disk space for the VMware vCenter Server Appliance in vSphere 6.5