Forum Discussion

X2's avatar
X2
Moderator
3 years ago

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.

     

     

3 Replies

  • X2's avatar
    X2
    Moderator

    Used the following command to delete log files:

    # /usr/openv/netbackup/bin/vxlogmgr -F -p 50936

    But still curious as to why vxlogmgr was saying there were no files found when using the command in the first post.

  • Try swapping the date format round, so '05/12/2021/

    From my test server

    $ vxlogmgr --del -p 50936 -e '23/11/2021 11:59:59 PM'

    Following are the files that were found:

    /var/log/VRTSpbx/50936-103-533729034-211029-0000000008.log
    /var/log/VRTSpbx/50936-103-533729034-211029-0000000009.log
    /var/log/VRTSpbx/50936-103-533729034-211029-0000000010.log
    <SNIP>

  • X2's avatar
    X2
    Moderator

    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.