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 ( / )
- Log in to the vCenter Server Appliance using SSH and root credentials.
- Run this command to enable the Bash shell:
shell.set --enabled true
- Type shell and press Enter.
- Use this command to verify which disk is experiencing disk space issues:
df -h
- 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. - 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
- 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
- Log in to the PSC using SSH and root credentials.
- Run this command to enable the Bash shell:
shell.set --enabled true
- Type shell and press Enter.
- Use this command to verify which disk is experiencing disk space issues:
df -h
- 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. - 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
- Run this command to confirm that the virtual disk has been successfully grown:
df -h