Avamar DB2 백업이 실패하고 "Unable to spawn Avdb2 for backup"이라는 오류와 db2diag 로그에서 SQL2025N 오류 발생

Summary: Avamar DB2 백업이 실패하거나 예외 없이 완료됩니다. db2diag.log에는 백업이 시작된 직후에 공급업체 오류와 SQL2025N 입출력 오류가 표시됩니다. avdb2 디버그가 활성화된 경우 프로세스 파일 잠금 오류가 표시됩니다.

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.

Symptoms

Avamar DB2 백업이 실패하거나 예외 없이 완료됩니다. db2diag.log에는 백업이 시작된 직후에 공급업체 오류와 SQL2025N 입출력 오류가 표시됩니다. 

avdb2 로그에는 다음이 표시됩니다.

2023-01-13 02:30:10 avdb2 Info : Process 965860 (/usr/local/avamar/bin/avdb2) finished (code 170: completed with errors, client log should be examined)
2023-01-13 02:30:10 avdb2 Warning : CTL workorder "DB2_DB_0220-DBNAMEXDS01_DB-1673547600007#1" non-zero exit status 'code 170: completed with errors, client log should be examined'
2023-01-13 02:30:10 avdb2 Error : Unable to spawn Avdb2 for backup/restore of [db2inst1/DBNAME db2inst1/DBNAME].
2023-01-13 02:30:10 avdb2 Info : Process 966206 (/usr/local/avamar/bin/avtar) for workorder DB2_DB_0220-DBNAMEXDS01_DB-1673547600007#201 started
2023-01-13 02:30:10 avdb2 Info : Setting ctl message version to 3 (from 1)
2023-01-13 02:30:10 avdb2 Info : Setting ctl max message size to 268435456
2023-01-13 02:30:13 avdb2 Info : Process 966206 (/usr/local/avamar/bin/avtar) finished (code 0: success)
2023-01-13 02:30:13 avdb2 Error : Unable to get the list of backup images from the child process.
2023-01-13 02:30:13 avdb2 Info : Starting graceful (staged) termination, Unable to get the list of backup images from the child process. (wrap-up stage)


디버그가 활성화된 경우 프로세스 파일 잠금과 관련하여 이와 유사한 오류가 표시될 수도 있습니다.

2023/01/12-18:20:04.79408 [ctl_conn_recv-DB2_DB_0220-DBNAMEXDS01_DB-1673547600007#1] ctl_connection::lowdata:
recv:

 

백업이 시작된 직후 db2diag.log의 오류:
2023-01-17-03.30.03.849521+480 I300934E909 LEVEL: Error
PID : 9696 TID : 140540540610304 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : DBNAME
APPHDL : 0-55065 APPID: *LOCAL.db2inst1.230116193009
AUTHID : DB2INST1 HOSTNAME: db2hostname
EDUID : 32933 EDUNAME: db2med.30870.0 (DBNAME) 0
FUNCTION: DB2 UDB, database utilities, sqluMapVend2MediaRCWithLog, probe:699
DATA #1 : String, 144 bytes
Vendor error: rc = 25 returned from function sqluvput.
Return_code structure from vendor library /usr/local/avamar/lib/libdb2_avamarloader.so:

DATA #2 : Hexdump, 48 bytes
0x00007FD47978F350 : 1701 0000 4176 7461 7220 496E 7075 742F ....Avtar Input/
0x00007FD47978F360 : 4F75 7470 7574 2065 7272 6F72 2E00 0000 Output error....
0x00007FD47978F370 : 0000 0000 0000 0000 0000 0000 0000 0000 ................

2023-01-17-03.30.04.850521+480 E301844E535 LEVEL: Error
PID : 9696 TID : 140540540610304 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : DBNAME
APPHDL : 0-55065 APPID: *LOCAL.db2inst1.230116193009
AUTHID : DB2INST1 HOSTNAME: db2hostname
EDUID : 32933 EDUNAME: db2med.30870.0 (DBNAME) 0
FUNCTION: DB2 UDB, database utilities, sqluMCWriteToDevice, probe:1304
MESSAGE : Media controller -- problem writing to vendor device. rc = -2025

2023-01-17-03.30.04.850898+480 E302380E571 LEVEL: Error
PID : 9696 TID : 140540540610304 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : DBNAME
APPHDL : 0-55065 APPID: *LOCAL.db2inst1.230116193009
AUTHID : DB2INST1 HOSTNAME: db2hostname
EDUID : 32933 EDUNAME: db2med.30870.0 (DBNAME) 0
FUNCTION: DB2 UDB, database utilities, sqluMCWriteToDevice, probe:1304
MESSAGE : SQL2025N An I/O error occurred. Error code: "". Media on which this
error occurred: "".

Cause

이 오류는 Avamar /usr/local/avamar/var/clientlogs 디렉토리에 대한 잘못된 사용자 또는 권한 때문에 발생합니다. 

이 경우 문제를 일으킨 잘못된 사용 권한의 예:
drwxr-xr-x 2 root root 20480 Jan 17 08:00 clientlogs

Resolution

디렉토리에는 백업 작업에 사용되는 db2 사용자 및 그룹에 대한 최소 읽기+실행 권한이 필요합니다.

다음은 문제를 해결하는 데 사용할 수 있는 명령의 예입니다. 운영 체제 Avamar 경로 및 db2 관리 그룹 이름과 일치하도록 조정해야 합니다.

명령을 루트 사용자로 실행해야 합니다.
chown root:db2iadm1 /usr/local/avamar/var/clientlogs

최소 사용 권한을 설정하는 명령 예:
chmod 755 /usr/local/avamar/var/clientlogs


Affected Products

Avamar Client, Avamar Plug-in for IBM DB2, Avamar Server
Article Properties
Article Number: 000210810
Article Type: Solution
Last Modified: 02 Jun 2023
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.