Increasing the disk space for the vCenter Server Appliance in vSphere 6.5, 6.7 and 7.0

Hi, Today I had a problem, my vCenter server storage/log was full.

I was able to solve it with these instructions:

To increase the disk space

  1. Power off the vCenter Server VM. If the VM is inaccessible, then do this from the ESXi host level
  2. Right-click the VM.
  3. Click Edit Settings.
  4. Select Virtual Disk.
  5. Increase the size of the disk. Ensuring there is no snapshot attached to VM. 
  6. Power on VM
  7. Use the BASH Shell or Appliance Management CLI o expand the partition(s).

Increase disk space using BASH Shell

  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 these commands to verify which disk is experiencing disk capacity issues, then trace which SCSI ID will show in the VM edit settings:
df -h;  lsblk;  lsscsi

5- Using the VAMI address –> https://vcenter:5480 –> Monitor –> Disks

You can find the Hard Disk number that you must be increased.

6- 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.

7- 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/autogrow.sh

8- Run this command to confirm that the virtual disk has successfully grown:

df -h; lsblk; lsscsi

9- you can see it from VAMI

Finish 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *