03-19-2018 04:24 AM - edited 03-19-2018 04:29 AM
Greetings!
I want to set maximum count of unified log files for nbsl process. I used following command:
vxlogcfg -a -p 51216 -o 132 -s NumberOfLogFiles=15
At that time count of these was 8. But now it's greater than 15. In nblog.conf i have right value of NumberOfLogFiles.
How i can resolve this problem?
Solved! Go to Solution.
04-09-2018 11:54 AM
Just verified it. Setting up vx logs does not require any restart of NBU services. But unfortunately we changed other parameters as well i.e. LogRecycle=true. Changing this parameter would take into effect only after a restart of NetBackup services not prior to that
03-19-2018 05:36 AM
03-20-2018 12:35 AM
Do you know if cleanup of Unified logs are also linked to the 12-hourly cleanup cycle on the master?
03-20-2018 02:33 AM
The cleanup of logs does not really follow the 12 hour interval as for the normal image cleanup sessions running in the background.
It works more on a day to day basis. Every day at midnight or a few minutes over midnight, bprd makes a call to attempt to cleanup logs. If its just client then you would see something like - "bpclntcmd -clean_old_logs" running on the client machine. One of the hidden switches in bpclntcmd cli to cleanup logs
The parent bprd process forks a child which in turn loops through the server list (and the media_server list). It then makes a call to - " recycle debug logs on server <remote_server>"
The bpcd logs should show messages similar to below
bprd -dontfork -keeplogs <kp_value> -recycle_server <master_server>
The <kp_value> is from the global configuration on the master.
LogRecycle for unified logs is added to enable/disable log recycling for given originator. If enabled, log recycling will occur at the time of rollover.
If number of log files reach NumberOfLogfiles+1, oldest log file will be removed and new log file will be created.
If rollover policy is set to FileSize, logs should never use disk space more than (NumberOfLogFiles+1)*MaxLogFileSizeKB.
At the backend unified logs would be cleared off via the vxlogmgr command.
One of the old technotes in regards to these parameters for reference
https://www.veritas.com/support/en_US/article.100017250
Just noticed that in my previous post while adding it using my phone I did miss out of a couple of -s entries per option.
@KirillKrotov The exact command above would be as below
vxlogcfg -a --prodid 51216 --orgid 132 -s RolloverMode=FileSize -s MaxLogFileSizeKB=512000 -s NumberOfLogFiles=15 -s LogRecycle=True
03-20-2018 04:32 AM
03-22-2018 05:27 AM
I have used this command but i have the same result.
Work it only after restart the server or it change settings on the go?
03-29-2018 05:18 PM
03-30-2018 04:41 AM
Command ran successfully and value of NumberOfLogFiles from nblog.conf was changed right.
# 132. NetBackup Service Layer
132.L10nResource=nbsl
132.OIDNames=nbsl
132.LogDirectory=nbsl
132.RolloverMode=FileSize
132.NumberOfLogFiles=15
132.AppMsgLogging=ON
132.LogRecycle=true
I want to set this parametr for another services, but i could't restart these, because my enviroment is too busy.
04-03-2018 05:35 AM
For 'vx' type logs, there should be no need to restart anything.
04-09-2018 11:54 AM
Just verified it. Setting up vx logs does not require any restart of NBU services. But unfortunately we changed other parameters as well i.e. LogRecycle=true. Changing this parameter would take into effect only after a restart of NetBackup services not prior to that
04-11-2018 02:36 AM
Interesting - looks like some settings you can change, and others you can't then, without a restart.