cancel
Showing results for 
Search instead for 
Did you mean: 

how to increase the number of bpbkar log files

Juannillus
Level 4
Partner Accredited

Hello all,

I would like to increase the number of bpbkar log files. Currently the solaris client keeps only 3 files, and thay are not enough. The logs get filled rapidly, and I can get only a few hours of information. When I come back the following day, I have only a few hours left on the logs.

I have increased the days to keep logs to 6.

I've read several TN regarding logs configuration, and the one that gives me a clue about what to do, says:

 

To change the maximum file size or the maximum number of log files per directory, use the MaxLogFileSizeKB and the NumberOfLogFiles options. These options are part of the vxlogcfg command, which is located in the following directory:

UNIX
  /usr/openv/netbackup/bin

Windows
    install_path\NetBackup\bin

Use the following example to set the maximum file size to 2048 and the maximum number of log files per log directory to 10:

vxlogcfg -a -p 51216 --orgid Default -s
MaxLogFileSizeKB=2048,NumberOfLogFiles=10

The example sets the default values for all unified logging processes and for all legacy processes for NetBackup (product ID 51216). :

 

I was wondering how can I increase the Number of log files for just the BPBKAR and not for all logs. Is there a way of doing it?

 

Kind regards,

 

Juan

 
1 ACCEPTED SOLUTION

Accepted Solutions

Juannillus
Level 4
Partner Accredited

Hello, 

it is a flashbackup. I did update the number of log files to 10, and now I'm able to see the information that i wanted, which is to have just a full day of bpbkar logs. 

So the final solution for me has been to update:

- Days to keep logs

KEEP_LOGS_DAYS = 6    --> Entry in bp.conf

 

 Number of log files:

vxlogcfg -a -p 51216 -o Default -s NumberOfLogFiles=10

 

Thanks all for your help solving my doubts.

Juan

View solution in original post

9 REPLIES 9

Nicolai
Moderator
Moderator
Partner    VIP   

This tech note may be out of date - but take a look at it

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

mph999
Level 6
Employee Accredited

Far as I can tell, there is no way to change the log retention for only the bpbkar log via vxlog commands, as the vxlog command identifies logs via an OID, and there isn't an OID for bpbkar, as it's a legacy log.

It's a bit odd, as the vxlog commands are for unified ;logging, but the log rollover settings do globally affect the legacy logs.

mph999
Level 6
Employee Accredited

The TN is still valid I think, the two settings :

KEEP_LOGS_DAYS and DAYS_TO_KEEP_LOGS

are certainly still listed in the NBU code, and the DAYS_TO_KEEP_LOGS setting is for the media manager logs (far as I can tell).

There is also another setting CLIENT_KEEP_LOG_DAYS  which would be set  in bp.conf (could use bpgetconfig / bpsetconfig) which is read by the bpcd process and deletes all logs older than the valuse it is set to.

 

Juannillus
Level 4
Partner Accredited

If I configure number_of_log_files in the client machine for 10 files, will it increase the number of log files in the processes running on master and media server?

 

KR,

Juan

Juannillus
Level 4
Partner Accredited

Martin,

 

the client_keep_logs_days will be configured in client bp.conf, won't be?

 

KR,

Juan

mph999
Level 6
Employee Accredited

Yes ...

INT_RND
Level 6
Employee Accredited

No

Mark_Solutions
Level 6
Partner Accredited Certified

What sort of backup is your client running?

For the majority of scheduled jobs the default retention of the bpbkar logs is 28 days - only user ops are retained for 3 days.

This is controlled in a different place .. the readme.txt found in the netbackup\logs directory has this entry:

The user_ops sub-directory is created during the install of NetBackup on
 all servers and clients.  It is used by the NetBackup - Client GUI
 applications for placement of job and progress log files generated by the
 end-user client application (nbwin.exe) and temporary files generated while
 using these applications.  This directory must exist for successful operation
 of any of these GUI applications and must allow read and write access to
 the local system account (or the account under which you chose to run the
 NetBackup services during installation).  One sub-directory in logs/user_ops
 will exist for every user that is using these GUI applications.  The pruning
 of files in this sub-directory is done as specified in the "Keep status of
 user-directed backups, archives and restores for ___ days" text box on the
 General Client tab of the Configure NetBackup GUI (the default is 3 days).
 In addition, when the NBJava GUI is installed, a sub-directory of user_ops
 is created - nbjlogs.  This directory will contain the NBJava GUI debug
 log files.  It must also exist and must allow read and write access to
 the local system account.  Pruning of the files in this directory is done
 in the same manner as with the other sub-directories of user_ops.

Just wondering what sort of backup you are running as it may need something else changing to help with what you need

Juannillus
Level 4
Partner Accredited

Hello, 

it is a flashbackup. I did update the number of log files to 10, and now I'm able to see the information that i wanted, which is to have just a full day of bpbkar logs. 

So the final solution for me has been to update:

- Days to keep logs

KEEP_LOGS_DAYS = 6    --> Entry in bp.conf

 

 Number of log files:

vxlogcfg -a -p 51216 -o Default -s NumberOfLogFiles=10

 

Thanks all for your help solving my doubts.

Juan