cancel
Showing results for 
Search instead for 
Did you mean: 

unified logs issue

Admin_NBU
Level 4

Hi,

Unified logs are getting creating automatically even log folders removed and changed log level from "5" to "0".

 

Netbackup version : 7.5.0.4

Windows : 2008R2 servers

 

Thanks &Regards,

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

yes.. unified logs will get created automaically and it can not be stopped... only thing we can do is to reduce the debug and diagonisting level for unified log.

and also you can automate the log recycle... where you can choose howmany log files or Size you want to keep.. anything more than that will get deleted automatically.

To enable log recycling as the default for all NetBackup originators run:
# vxlogcfg -a -p 51216 -o Default -s LogRecycle=true

The following command will rotate the log files once a file reaches 50meg (51200 KB) in size.
 
# cd /usr/openv/netbackup/bin
 
# ./vxlogcfg -a -p 51216 -o Default -s RolloverMode=FileSize -s MaxLogFileSizeKB=51200
 

./vxlogcfg -a -p 51216 -o Default -s NumberOfLogFiles=5

 

the above commands will recyle any unified logs which is having more than 5 files each of 50 MB, depends on your space avaliablity you can change these values.

 

see the below tech notes to enable the unified log recyle.

http://www.symantec.com/docs/TECH44292

http://www.symantec.com/docs/TECH44244

View solution in original post

6 REPLIES 6

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Hi,

 

How did you change the log level? Sometimes running vxlogcfg doesn't work you have to modify the logging cofiguration file?

Does vxlogcfg output show the level is set to 0?

Did you recycle the services?

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

yes.. unified logs will get created automaically and it can not be stopped... only thing we can do is to reduce the debug and diagonisting level for unified log.

and also you can automate the log recycle... where you can choose howmany log files or Size you want to keep.. anything more than that will get deleted automatically.

To enable log recycling as the default for all NetBackup originators run:
# vxlogcfg -a -p 51216 -o Default -s LogRecycle=true

The following command will rotate the log files once a file reaches 50meg (51200 KB) in size.
 
# cd /usr/openv/netbackup/bin
 
# ./vxlogcfg -a -p 51216 -o Default -s RolloverMode=FileSize -s MaxLogFileSizeKB=51200
 

./vxlogcfg -a -p 51216 -o Default -s NumberOfLogFiles=5

 

the above commands will recyle any unified logs which is having more than 5 files each of 50 MB, depends on your space avaliablity you can change these values.

 

see the below tech notes to enable the unified log recyle.

http://www.symantec.com/docs/TECH44292

http://www.symantec.com/docs/TECH44244

Admin_NBU
Level 4

I have changed the log level from 5 to 0 using vxlogcfg and recycled the services, rebooted the server as well, but no luck. Unified logs is generating 2 MB size log file for every minit. 

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

so did you set the log recyle yet? using the vxlogcfg...

Marianne
Level 6
Partner    VIP    Accredited Certified

Please remember that there is NO need to restart NBU or the server to apply changes to Unified Logging.

Please show us contents of the config file: <install-path>\veritas\netbackup\nblog.conf

Copy the file to nblog.txt and upload as File Attachment.

mph999
Level 6
Employee Accredited

Manually modifing the file can break it, but in the event it has to be done, NBU services should be stopped first.