Log retention and log size
The following options are available to manage how NetBackup recycles and deletes log files.
Table: Log retention options in NetBackup
Log retention option | Description | Interface |
|---|---|---|
Limits the size of unified and legacy logs. For a NetBackup server, the recommended value is 25 GB or greater. For clients, the recommended value is 5 GB or greater. See Log pruning. | This option is available in the host property settings. | |
NumberOfLogFiles | Limits the number of unified log files that you want to retain for a NetBackup process. | vxlogcfg |
MaxLogFileSizeKB and other RolloverMode options | Prevents the unified log files from becoming too large. When a file size or time setting is reached, the current log file is closed. New log messages for the logging process are written or "rolled over" to a new log file. | vxlogcfg |
Limits the days for which NetBackup retains for unified and legacy logs. | This option is available in the host property settings. | |
MAX_LOGFILE_SIZE and MAX_NUM_LOGFILES | Limit the legacy log size and the number of legacy log files that are retained. | bpsetconfig |
All logs are retained until the log size reaches the high water mark, that is, 95% of the value. NetBackup verifies the log size every 10 minutes. When the log size reaches the high water mark, NetBackup begins to delete older logs. NetBackup stops deleting logs when the log size reaches the low water mark, 85% of the value.
If both and are selected, the logs are pruned based on the condition that occurs first.
You can verify the log pruning behavior in NetBackup by viewing the logs at the following location:
install_path\NetBackup\logs\nbutils
/usr/openv/logs/nbutils