/storage/log partition full due to SSO log files are not compressed in vCenter Server Appliance
book
Article ID: 341135
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
To work around the /storage/log directory full issue in vCenter Server Appliance, decrease the maximum backup size and the maximum backup index in the log4j.properties file.
Symptoms: You see that the /storage/log directory is highly utilized in an Embedded vCenter Server Appliance or Platform Controller Server Appliance 6.0.
Note: For additional symptoms and log entries, see the Additional Information section.
Environment
VMware vCenter Server Appliance 6.5.x VMware vCenter Server Appliance 6.0.x
Cause
This issue occurs due to an increase in the SSO log files in the /storage/log directory. During the log rotation, the old log file is not compressed resulting in multiple large files in the /storage/logdirectory.
Resolution
This issue is resolved in VMware vCenter Server 6.0 Update 3, available at VMware Downloads The issue is also resolved in 6.5 Update 1, available at VMware Downloads
Workaround:
Video tutorial to Resolve/Workaround the issue:
To work around this issue, decrease the maximum backup size and the maximum backup index in the log4j.properties file.
Note: In external Platform Service Controller (PSC) environments, log in to the Platform Service Controller instead. Note: This workaround is applicable only for 6.0 version only.
Process to decrease maximum backup size and index in the log4j.properties file:
Log in to the vCenter Server Appliance or PSC console as root user.
Run this command to enable access the Bash shell:
shell.set --enabled true
Type shell and press Enter.
Navigate to this directory:
cd /usr/lib/vmware-sso/vmware-sts/webapps/sts/WEB-INF/classes/
Run this command to back up the log4j.properties file:
cp log4j.properties log4j.properties.bak
Open the log4j.properties file using a text editor.
Locate the log4j.appender.LOGFILE.MaxFileSize and log4j.appender.LOGFILE.MaxBackupIndex parameters after this entry: