sps-access log files not being compressing as expected
search cancel

sps-access log files not being compressing as expected

book

Article ID: 376593

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

sps-access logs are not being compressed causing /storage/log to steadily increase in size

cd /storage/log/vmware/vmware-sps

Run command:

find . -type f -print0 | xargs -0 du -h | sort -rh | head -n 10

Example output

763M    ./vmware/vmware-sps/sps-access-log.2024-08-28.log
757M    ./vmware/vmware-sps/sps-access-log.2024-08-29.log
754M    ./vmware/vmware-sps/sps-access-log.2024-08-30.log
753M    ./vmware/vmware-sps/sps-access-log.2024-09-01.log
753M    ./vmware/vmware-sps/sps-access-log.2024-08-31.log
752M    ./vmware/vmware-sps/sps-access-log.2024-08-27.log
750M    ./vmware/vmware-sps/sps-access-log.2024-08-26.log
493M    ./vmware/vmware-sps/sps-access-log.2024-09-02.log

Environment

vCenter 7.x
vCenter 8.x

Cause

Excessive Storage Profile Service (SPS) logs in the vCenter /storage/log directory.
Logs for the Storage Profile Service, such as sps-access-log and sps-external, might not properly rotate, or compress after rotation. As a result, unhandled logs fill up the /storage/log directory.

Resolution

Option1. Upgrade to vCenter 70U3q or 80U3 as issue has been resolved & fixed

Option2. Disable sps-access logging

*** SNAPSHOTS AND/OR BACKUPS OF VCSA OR THE FILE BEFORE ANY MODIFICATIONS***
1. SSH to the VCSA as root
2. vi  /usr/lib/vmware-vpx/sps/conf/sms.properties
-> find the line  sms.enabledStr=true  
-> Edit the value from true to false >>>>   sms.enabledStr=false
-> Save the file esc :wq!
   
 3.  Restart the SPS service

service-control --restart vmware-sps


Option3. Decrease the number of retained sps-access logs

*** SNAPSHOTS AND/OR BACKUPS OF VCSA OR THE FILE BEFORE ANY MODIFICATIONS***
1. SSH to the VCSA as root
2. vi /usr/lib/vmware-vpx/sps/conf/sms.properties 
-> Find the line    sms.maxDays=30  
-> Edit the value   sms.maxDays=14        <- Example
-> Save the file esc :wq!

 3. Restart the SPS service

service-control --restart vmware-sps

Note: 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.