Forum Discussion

Jan_Rustico's avatar
11 years ago

Smartway maintain NBU logs

Logs are accumulating and i have small disk space. II've tried to relocate the logs to other drive. 
C:\Program Files\Veritas\NetBackup\logs

  • so does that other Drive helped you?

    if you are dealing with legecy logs.. remove all unwanted log fodlers. and keep the verbose as 0., so that it will not generate the logs...

    and when you are dealing with the unified logs.. do enable the log recycle so that they will get deleted automatically when the reach certin level..

    http://www.symantec.com/business/support/index?page=content&id=TECH44292

  • The easiest way to relocate the logs to another drive (or file system) is to mount a drive (or file system) using the logs directory as mount point. using this solution you do not mess with registry settings and it is working like a charm.

    Works for both windows and UNIX.

     

  • Two TNs:

    DOCUMENTATION: How to configure Veritas NetBackup (tm) to write Unified and Legacy log files to a different directory
    http://www.symantec.com/docs/TECH45907 


    DOCUMENTATION: How to manually change the path where NetBackup log files are located.
    http://www.symantec.com/docs/TECH15567 

    As per Nagalla's advice - check that default logging level is 0.
    Only ever increase logging levels when requested by Symantec and return to 0 when troubleshooting is done.

    Also delete unnecessary log folders. On a master you should only need the following:
    admin bprd bpdbm

    If master is also a media server:
    bptm and bpbrm
    If disk STU on master:
    bpdm.

  • I have found that at 7.5 onwards the main issue is the unified logs which tend to grow to 50MB and have lots of them by default.

    Obviously moving them is a good idea but you can just control their size and number using the vxlogcfg command which generally does the trick.

    So to move all NBU unified logs:

    vxlogcfg –a –p 51216 -o ALL –s LogDirectory=D:\NBU_LOGS

    Set everything to level zero:

    vxconfig –a –p 51216 –o –ALL –s DiagnosticLevel=0 -s DebugLevel=0

    To only keep three of each log file (you choie of how many to keep)

    vxlogcfg –a -p 51216 –o ALL –s NumberOfLogFiles=3

    That should control things pretty well for you (then just delete all of the old ones)

8 Replies

  • so does that other Drive helped you?

    if you are dealing with legecy logs.. remove all unwanted log fodlers. and keep the verbose as 0., so that it will not generate the logs...

    and when you are dealing with the unified logs.. do enable the log recycle so that they will get deleted automatically when the reach certin level..

    http://www.symantec.com/business/support/index?page=content&id=TECH44292

  • The easiest way to relocate the logs to another drive (or file system) is to mount a drive (or file system) using the logs directory as mount point. using this solution you do not mess with registry settings and it is working like a charm.

    Works for both windows and UNIX.

     

  • Two TNs:

    DOCUMENTATION: How to configure Veritas NetBackup (tm) to write Unified and Legacy log files to a different directory
    http://www.symantec.com/docs/TECH45907 


    DOCUMENTATION: How to manually change the path where NetBackup log files are located.
    http://www.symantec.com/docs/TECH15567 

    As per Nagalla's advice - check that default logging level is 0.
    Only ever increase logging levels when requested by Symantec and return to 0 when troubleshooting is done.

    Also delete unnecessary log folders. On a master you should only need the following:
    admin bprd bpdbm

    If master is also a media server:
    bptm and bpbrm
    If disk STU on master:
    bpdm.

  • Yes - Change all those "5" to "0". Or use the "defaults" button in the upper right corner.

    Also remove debug directories in [INSTALL_PATH]/netbackup/logs/

    do not remove the log directory - it needed. You may have to halt Netbackup before you can remove some of the directories.

  • I have found that at 7.5 onwards the main issue is the unified logs which tend to grow to 50MB and have lots of them by default.

    Obviously moving them is a good idea but you can just control their size and number using the vxlogcfg command which generally does the trick.

    So to move all NBU unified logs:

    vxlogcfg –a –p 51216 -o ALL –s LogDirectory=D:\NBU_LOGS

    Set everything to level zero:

    vxconfig –a –p 51216 –o –ALL –s DiagnosticLevel=0 -s DebugLevel=0

    To only keep three of each log file (you choie of how many to keep)

    vxlogcfg –a -p 51216 –o ALL –s NumberOfLogFiles=3

    That should control things pretty well for you (then just delete all of the old ones)

  • @ Mr. Nicolai, do you mean I need to delete all the directories inside [INSTALL_PATH]/netbackup/logs/ ?

     

    @Mr. Mark_Solutions, i'll check your suggestion.

     

    Thank you.

  • You can change the number of days the logs are retained in Netbackup by changing the setting in

    Host Properties > Master Server > {master_server_name} > Clean Up > Keep Log Days

    The default setting is 30 days.

     

    To delete the exisiting logs the best way would be Change this settings to a lower number say 5 or something and then recycle the Netbackup services and it should automatically delete all the older logs.

     

    If you want to delete only the unified logs then run the following command

    <install_path>\NetBackup\bin\vxlogmgr -d

    If you run this command while the Netbackup services are up and running you will get an error stating deletion failed for all the current date logs.