X2
4 years agoModerator
Unable to delete VRTSpbx log files
My sysadmin alerted me about space usage on one of our RHEL 7 based oracle servers. The logs for VRTSpbx were using 1.3 GB and files go all the way back till June 2021 (probably when the server was provisioned).
The default log location /opt/VRTSpbx/logs is a link to /var/log/VRTSpbx/ and current config is shown below.
# /usr/openv/netbackup/bin/vxlogcfg -l -p 50936 -o 103
Configuration settings for originator 103, of product 50,936...
LogDirectory = /var/log/VRTSpbx/
DebugLevel = 1
DiagnosticLevel = 0
DynaReloadInSec = 0
LogToStdout = False
LogToStderr = False
LogToOslog = False
RolloverMode = FileSize
LogRecycle = True
MaxLogFileSizeKB = 51200
RolloverPeriodInSeconds = 43200
RolloverAtLocalTime = 0:00
NumberOfLogFiles = 5
OIDNames =
AppMsgLogging = ON
L10nLib = /opt/VRTSpbx/lib/libvxexticu.so.3
L10nResource = VxPBX
L10nResourceDir = /opt/VRTSpbx/resources
SyslogIdent = Symantec
SyslogOpt = 0
SyslogFacility = LOG_USER
LogFilePermissions = 640
when I run the the command to delete older files, I get "no log files found" message. Any suggestions?
# /usr/openv/netbackup/bin/vxlogmgr --del -p 50936 -e '12/05/2021 11:59:59 PM'
V-1-45 No log files found.
The issue reared its ugly head again a few days ago. The solution was to change
RolloverMode = FileSize
to
RolloverMode = FileSize|LocalTime
using the command
/opt/VRTSpbx/bin/vxlogcfg -a -p 50936 -o 103 -s "RolloverMode=FileSize|LocalTime"
and restart VRTSpbx (including NetBackup). At midnight, the RollOver happened leaving only 5 log files in the folder.