Sunday, 8 January 2023

#VMware vCenter - log storage disk space full

Method 1: Increase disk space

1. Increase VCSA's virtual disk size.

2. Run the following command in VCSA. (Alt + F1 to enter shell)

For VCSA ver. 6.0

vpxd_servicecfg storage lvm autogrow

For VCSA ver. 6.5 or 6.7

/usr/lib/applmgmt/support/scripts/autogrow.sh


Method 2: Clean up disk space

1. To list file system disk space:

To list all disk space: df -h


or

To list disk exceed 75%: df -h | awk '0+$5 >=75 {print}'



2. Remove the catalina*log and localhost_access* from following paths.

/storage/log/vmware/sso/tomcat

/storage/log/vmware/eam/web

/storage/log/vmware/lookupsvc/tomcat    (for ver 7.0 only)

To list:

ls -lha catalina*log
ls -lha localhost_access*

To remove:

rm catalina*log
rm localhost_access*