Avamar: How to Check Avamar DB2 Plugin Archivelog Configuration
Summary: This article explains how to verify the Avamar DB2 plugin archivelog configuration to ensure that DB2 databases are correctly set up for archive log backups.
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.
-
Check if
Archivelogbackups are correctly configured in DB2:- Log in as the DB2 user:
- Run:
db2 get db cfg for db <dbname>
Check if the parametersLOGARCHMETH1orLOGARCHMETH2andLOGARCHOPT1orLOGARCHOPT2are set to send the backups to Avamardb2 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.txt
- Run:
NOTE 1:- If
LOGARCHMETH1is set, thenLOGARCHOPT1must be set - If
LOGARCHMETH2is set, thenLOGARCHOPT2must be set
NOTE 2:LOGARCHMETH1must start with: "VENDOR:" (the same if the one set isLOGARCHMETH2)- The library referenced by
LOGARCHMETH1must be:
UNIX/Linux:libdb2_avamarloader.so and not libdb2_avamar.so
Windows:libavdb2.dll
NOTE 3:LOGARCHOPT1must start with "@" (the same if the one set isLOGARCHOPT2)
- Log in as the DB2 user:
-
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 -
Ensure that 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 ...
-
Check that the log files are created during
archivelogbackups.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-001.log
-
Check Permissions on the directory specified by --logfile and ensure that DB2 can write to that directory.
Example:
... --logfile=/tmp/cli_test/avdb2.log ... chmod 777 /tmp/cli_test
Affected Products
AvamarProducts
Avamar, Avamar Plug-in for IBM DB2Article Properties
Article Number: 000023656
Article Type: How To
Last Modified: 10 تموز 2026
Version: 9
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.