cancel
Showing results for 
Search instead for 
Did you mean: 

How to change dbclient log retention

T_N
Level 6
Hi All,

Anyone knows how to change dbclient log retention ?? Thanks.
1 ACCEPTED SOLUTION

Accepted Solutions

Stumpr2
Level 6
on the master server run this command

bpgetconfig -M | grep KEEP_LOGS_DAYS

It should return
KEEP_LOGS_DAYS = 3

to change it, run this command on the master server
bpsetconfig -h
bpsetconfig> KEEP_LOGS_DAYS = 5
bpsetconfig> ^D

once again run on the master server
bpgetconfig -M | grep KEEP_LOGS_DAYS

It should return
KEEP_LOGS_DAYS = 5

OK? However, I once again recommend simply including the logfiles in your regular OS level backups with whatever retention you desire. Then if you need an old logfile you can simply restore it from the OS backup. This will use up less disk space.Message was edited by:
Bob Stump

View solution in original post

11 REPLIES 11

Dennis_Strom
Level 6
does this help
http://seer.support.veritas.com/docs/271414.htm

and then there is this
Setting the Debug Level
You can control the amount of information written to the debug log in the
install_path/netbackup/logs/dbclient directory by changing the Database debug
level. The higher the value, the more information is logged. In everyday normal
operations, the default value of 0 is sufficient. However, VERITAS technical support may
ask you to set the value higher when a problem is being analyzed. 5 is the highest possible
setting.

To change the Debug Level, enter the following line in the bp.conf file.
VERBOSE = 5

I cut and pasted that out of the Veritas sysadmin 4.5 for oracle serverFreeagent guide page 124
http://72.14.209.104/search?q=cache:k6M0znYhap8J:backups.lbl.gov/backups/documentation/SysAdmin/4.5/NetBackup_AdminGuide_ServerFree_Oracle.pdf+change+dbclient+log+retention&hl=en&gl=us&ct=clnk&cd=11

T_N
Level 6
Hi Denis,

Thanks for your information, but how could I change dbclient log retention from 3 days to 14 days ? I couldn't find the command to change it ? Thanks.

Dennis_Strom
Level 6
http://seer.support.veritas.com/docs/267964.htm

http://seer.support.veritas.com/docs/266619.htm

http://seer.support.veritas.com/docs/243778.htm

T_N
Level 6
Hi Dennis,

Thanks for your informations but they don't tell me how could I change dbclient log retention. Thanks.

Tom

Stumpr2
Level 6
Tom,
You can change the retention of logfiles under the master server's properties for global attributes. However, I recommend simply including the logfiles in your rehular OS level backups with whatever retention you desire. Then if you need an old logfile you can simply restore it from the OS backup.

T_N
Level 6
I checked in master properties, log retention is 14 days but when I go to the client, it keeps only 3 days, I don't know how to change rention from 3 to 14 days. Thanks.

Stumpr2
Level 6
what is the platform?

T_N
Level 6
they're running on Unix Solaris 8,9,10, netbackup version is 5.1 MP5

Stumpr2
Level 6
on the master server run this command

bpgetconfig -M | grep KEEP_LOGS_DAYS

It should return
KEEP_LOGS_DAYS = 3

to change it, run this command on the master server
bpsetconfig -h
bpsetconfig> KEEP_LOGS_DAYS = 5
bpsetconfig> ^D

once again run on the master server
bpgetconfig -M | grep KEEP_LOGS_DAYS

It should return
KEEP_LOGS_DAYS = 5

OK? However, I once again recommend simply including the logfiles in your regular OS level backups with whatever retention you desire. Then if you need an old logfile you can simply restore it from the OS backup. This will use up less disk space.Message was edited by:
Bob Stump

Stumpr2
Level 6
Tom,
Thank you for the points. I look forward to helping you in the future.Bob

T_N
Level 6
thanks Bob,

your answer is great.