This article provides steps to increase the disk space of a specific VMDK for the vCenter Server Appliance (VCSA) 6.5, 6.7, 7.0 and 8.0. With the introduction of Logical Volume Management (LVM) in vSphere 6.0 and continued support with vSphere 6.5, 6.7, 7.0 and 8.0, the vCenter Server disks can be dynamically increased.
For more information on the disk layout of vCenter Server, see:
Notes:
lsblk -o NAME,HCTL,MOUNTPOINT,SIZE
ls -al /sys/block/sd*
cat /sys/devices/pci0000:00/0000:00:11.0/0000:02:00.0/label
Note: If the device realpath which we get in step2 is not having serial number format before the host folder (4th folder level) then that maps to SCSI0, for example /sys/devices/pci0000:00/0000:00:10.0/ maps to SCSI0
Mapping SCSI device.
6. To put it more simply, in VCSA the letter in /dev/sdX follows the alphabetical order to indicate the sequence of hard disks detected by the system.
a = Hard Disk 1 (/dev/sda)
b = Hard Disk 2 (/dev/sdb)
...
q is the 17th letter of the alphabet so sdq is Hard Disk 17
shell.set --enabled trueshell and press Enter.df -h; lsblk; lsscsi-----------------:/dev/mapper/log_vg-log 9.8G 4.4G 5.0G 47% /storage/log:sdd 8:48 0 25G 0 diskmqcore_vg-core 254:12 0 25G 0 lvm /storage/core★sde 8:64 0 10G 0 disk★ mqlog_vg-log 254:14 0 10G 0 lvm /storage/logsdf 8:80 0 10G 0 diskmqdb_vg-db 254:5 0 10G 0 lvm /storage/db:[2:0:3:0] disk VMware Virtual disk 1.0 /dev/sdd★[2:0:4:0] disk VMware Virtual disk 1.0 /dev/sde[2:0:5:0] disk VMware Virtual disk 1.0 /dev/sdf-----------------
/usr/lib/applmgmt/support/scripts/autogrow.shdf -hNote: In a scenario where the vcenter upgrade pre-check is failing with the error "Vcenter pre-check error, "vcenter" has 27GB free space which is less than the required 30GB"
1.Root partition (/): Contains the operating system files , but, Resizing root partition is not supported on 7.0 and above.
2.Clearing out the journalctl log will clear out the space instead
3. Command that can be used to clear out the journalctl logs is as below
(SSH into the vCenter and run the below command)
#journalctl --vacuum-time=1h
4. This command is used to query and display messages from the journal and deletes the log entries older than one hour.
5. Run this command to check the size of the root and other partitions
#df -h
com.vmware.appliance.version1.resources.storage.stats.list has to be executed from the Command > location and the command does not work if ran inside the shell prompt.root@hostname# com.vmware.appliance.version1.resources.storage.stats.list bash: com.vmware.appliance.version1.resources.storage.stats.list: command not foundcom.vmware.appliance.version1.resources.storage.stats.listcom.vmware.appliance.version1.resources.storage.stats.list...7:Totalinodes: 655360Usedinodes: 4211Name: /storage/seatTotalkbytes: 10181944Usedkbytes: 9081843...com.vmware.appliance.version1.system.storage.resizecom.vmware.appliance.system.storage.resize com.vmware.appliance.version1.resources.storage.stats.listcom.vmware.appliance.version1.resources.storage.stats.list...7:Totalinodes: 786432Usedinodes: 4211Name: /storage/seatTotalkbytes: 12246192Usedkbytes: 9081843If you get this error below when attempting to grow a partition, see this article: autogrow.sh fails to increase partition size due to LVM logical volumes snapshot
Snapshot origin volumes can be resized only while inactive: try lvchange -an