Avamar: How to check Avamar DB2 Plugin Archivelog Configuration

Summary: How to check Avamar DB2 Plugin Archivelog Configuration.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

The goal of this article is to help the reader check the Archivelog Configuration for DB2 backups.
  1. Check if Archivelog backups are correctly configured in DB2:
  • Log in as the DB2 user: 
  • Run: db2 get db cfg for db <dbname>
Check if the parameters LOGARCHMETH1 or LOGARCHMETH2 and  LOGARCHOPT1 or LOGARCHOPT2 are set to send the backups to Avamar
db2 get db cfg for testdb
...
First log archive method                 (LOGARCHMETH1) = VENDOR:/usr/local/avamar/lib/libdb2_avamarloader.so
...
Options for logarchmeth1                  (LOGARCHOPT1) = @/home/db2inst1/flags.t
xt
 
NOTE 1:
  • if LOGARCHMETH1 is set, then LOGARCHOPT1 must be set
  • if LOGARCHMETH2 is set, then LOGARCHOPT2 must be set  
NOTE 2:
  • LOGARCHMETH1 needs to start with: "VENDOR:" (same if the one set is LOGARCHMETH2)
  • The library referenced by LOGARCHMETH1 must be:
Unix/Linux: libdb2_avamarloader.so and not libdb2_avamar.so 
Windows: libavdb2.dll
NOTE 3:
  • LOGARCHOPT1 needs to start with "@" (same if  the one set is LOGARCHOPT2)
  1. Check the library and Option file path are correct by running ls -ltr <path_to_library_and_option_file>
ls -ltr /usr/local/avamar/lib/libdb2_avamarloader.so
ls -ltr /home/db2inst1/flags.txt
 
 NOTE: User dir or File Explorer on Windows Operating Systems.
  1. Make sure the option file has these two statements --debug=true and --logfile=<directory>/filename:
--id=MCUser
--sysdir=/usr/local/avamar/etc
--logfile=/tmp/cli_test/avdb2.log
--avtar-before-after-days-search=1
--vardir=/usr/local/avamar/var
--debug=true
...
  1. Check the log files are created during archivelog backups.
How to check if there are log files created:
 
Example:
Option file contains:   
...
--logfile=/tmp/cli_test/avdb2.log
...
 
ls -ltr /tmp/cli_test/avdb2*log
 
-rw-r--r--. 1 db2inst1 dba 19961878 Jul 27 19:29 /tmp/cli_test/avdb2-avtar-2018-07-27-db2inst1-TESTDB-LOG-BACKUP-00-001.log
-rw-r--r--. 1 db2inst1 dba  3975178 Jul 27 19:29 /tmp/cli_test/avdb2-lib-2018-07-27-db2inst1-TESTDB-LOG-BACKUP-00-00
1.log
  1. Check Permissions on the directory specified by --logfile and make sure DB2 is able to write to that directory.
Example:
...
--logfile=/tmp/cli_test/avdb2.log
..
.

chmod 777 /tmp/cli_test

 

Affected Products

Avamar

Products

Avamar, Avamar Plug-in for IBM DB2
Article Properties
Article Number: 000023656
Article Type: How To
Last Modified: 30 May 2024
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.