/storage/log to steadily increase in size.The issue can be observed by navigating to the SPS log directory cd /storage/log/vmware/vmware-sps and identifying large, uncompressed access log files using the following command:
find . -type f -print0 | xargs -0 du -h | sort -rh | head -n 10
sps-access-log files consuming substantial disk space:776M ./vmware/vmware-sps/sps-access-log.YYYY-MM-DD.log
757M ./vmware/vmware-sps/sps-access-log.YYYY-MM-DD.log
754M ./vmware/vmware-sps/sps-access-log.YYYY-MM-DD.log
753M ./vmware/vmware-sps/sps-access-log.YYYY-MM-DD.log
753M ./vmware/vmware-sps/sps-access-log.YYYY-MM-DD.log
752M ./vmware/vmware-sps/sps-access-log.YYYY-MM-DD.log
750M ./vmware/vmware-sps/sps-access-log.YYYY-MM-DD.log
493M ./vmware/vmware-sps/sps-access-log.YYYY-MM-DD.log
vCenter Server 7.x
vCenter Server 8.x
Logs for the Storage Profile Service, such as sps-access-log and sps-external, produced by services such as the Apache Tomcat Java Servlet for example, might not properly rotate, or compress after rotation, or have no limit on the log file. As a result, unhandled logs fill up the /storage/log directory.
The following options are available to remediate or mitigate the issue:
Important: Ensure a snapshot and/or backup of the VCSA or the configuration file is taken before making any changes.
Option 1: Upgrade vCenter Server
Upgrade to a fixed version of vCenter Server where this issue has been resolved:
Option 2: Disable SPS Access Logging:
cp /usr/lib/vmware-vpx/sps/conf/sms.properties /usr/lib/vmware-vpx/sps/conf/sms.properties_bkpvi /usr/lib/vmware-vpx/sps/conf/sms.propertiessms.enabledStr=truesms.enabledStr=false
(Esc :wq!)
service-control --restart vmware-sps
Option 3: Reduce Retention of SPS Access Logs:
cp /usr/lib/vmware-vpx/sps/conf/sms.properties /usr/lib/vmware-vpx/sps/conf/sms.properties_bkp
vi /usr/lib/vmware-vpx/sps/conf/sms.properties
sms.maxDays=30sms.maxDays=14(Esc :wq!).service-control --restart vmware-spsNote: This won't remove existing files over the maxDays so they will need to be removed manually. A cron job can be created to remove files over 30 days.