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.
shell.set --enabled true
shell
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 disk
mqcore_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/log
sdf 8:80 0 10G 0 disk
mqdb_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.sh
df -h
Note: 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 found
com.vmware.appliance.version1.resources.storage.stats.list
com.vmware.appliance.version1.resources.storage.stats.list
...
7:
Totalinodes: 655360
Usedinodes: 4211
Name: /storage/seat
Totalkbytes: 10181944
Usedkbytes: 9081843
...
com.vmware.appliance.version1.system.storage.resize
com.vmware.appliance.system.storage.resize
com.vmware.appliance.version1.resources.storage.stats.list
com.vmware.appliance.version1.resources.storage.stats.list
...
7:
Totalinodes: 786432
Usedinodes: 4211
Name: /storage/seat
Totalkbytes: 12246192
Usedkbytes: 9081843
VMware Skyline Health Diagnostics for vSphere - FAQ
This article is explicitly for vSphere 6.5, 6.7 and 7.0. If using the vCenter Server or Platform Services Controller Appliances version 6.0 or 5.x, see: