Forum Discussion

Jhony_LMB's avatar
2 months ago

DB2 policy restore error  (2812)

Hi All Expert,

Hope you have experience and share it.

We try redirect restore DB2 and always failed same error.

=Master is Media Server too=

Windows Server 2016 Standard, NBU version 8.3.0.2

=Source  client ggpdbsprd02=

*Linux Suse SLES 11.4

*DB2 tokens are "DB2 v10.5.0.8", "special_36677", "IP23993_36677", and Fix Pack "8".

=Target  client ggp-firedrill=

*Linux Suse SLES 11.5

*DB2 tokens are "DB2 v10.5.0.8", "special_36677", "IP23993_36677", and Fix Pack "8".

And always error after 2 hours in activity monitor

Jul 29, 2024 2:11:20 PM - started process bptm (pid=17144)
Jul 29, 2024 2:11:20 PM - begin reading
Jul 29, 2024 4:02:09 PM - Info bptm (pid=12888) waited for empty buffer 4 times, delayed 433192 times
Jul 29, 2024 4:02:09 PM - end reading; read time: 1:50:49
Jul 29, 2024 4:02:09 PM - Info bptm (pid=12888) completed reading backup image
Jul 29, 2024 4:02:09 PM - Info bptm (pid=12888) EXITING with status 0 <----------
Jul 29, 2024 4:12:05 PM - Info dbclient (pid=26863) done. status: 41: network connection timed out
Jul 29, 2024 4:12:05 PM - Error bpbrm (pid=1804) client restore EXIT STATUS 41: network connection timed out
Jul 29, 2024 4:12:06 PM - restored from image ggpdbsprd02_1720435442; restore time: 2:00:50
Jul 29, 2024 4:12:07 PM - end Restore; elapsed time 2:00:52
DB2 policy restore error  (2812)

db2diag show:

2024-07-30-15.45.55.336621+420 E74368E518            LEVEL: Error
PID     : 21348                TID : 140289440212736 PROC : db2sysc 0
INSTANCE: db2prd               NODE : 000            DB   : PRD
APPHDL  : 0-4074               APPID: *LOCAL.db2prd.240729071117
AUTHID  : DB2PRD               HOSTNAME: ggp-firedrill
EDUID   : 1082                 EDUNAME: db2med.487.0 (PRD) 0
FUNCTION: DB2 UDB, database utilities, sqluMCReadFromDevice, probe:1868
MESSAGE : Media controller -- problem reading from vendor device

2024-07-30-15.45.55.336781+420 E74887E550            LEVEL: Error
PID     : 21348                TID : 140289440212736 PROC : db2sysc 0
INSTANCE: db2prd               NODE : 000            DB   : PRD
APPHDL  : 0-4074               APPID: *LOCAL.db2prd.240729071117
AUTHID  : DB2PRD               HOSTNAME: ggp-firedrill
EDUID   : 1082                 EDUNAME: db2med.487.0 (PRD) 0
FUNCTION: DB2 UDB, database utilities, sqluMCReadFromDevice, probe:1868
MESSAGE : SQL2079N  An error was reported by the shared library "".  Return  code: "".

2024-07-30-15.45.55.337050+420 E75438E519            LEVEL: Error
PID     : 21348                TID : 140289440212736 PROC : db2sysc 0
INSTANCE: db2prd               NODE : 000            DB   : PRD
APPHDL  : 0-4074               APPID: *LOCAL.db2prd.240729071117
AUTHID  : DB2PRD               HOSTNAME: ggp-firedrill
EDUID   : 1082                 EDUNAME: db2med.487.0 (PRD) 0
FUNCTION: DB2 UDB, database utilities, sqluMCReadFromDevice, probe:1868
DATA #1 : String, 38 bytes /usr/openv/netbackup/bin/nbdb2.so64.30

2024-07-30-15.45.55.337263+420 E75958E577            LEVEL: Error
PID     : 21348                TID : 140287909291776 PROC : db2sysc 0
INSTANCE: db2prd               NODE : 000            DB   : PRD
APPHDL  : 0-4074               APPID: *LOCAL.db2prd.240729071117
AUTHID  : DB2PRD               HOSTNAME: ggp-firedrill
EDUID   : 487                  EDUNAME: db2agent (PRD) 0
FUNCTION: DB2 UDB, database utilities, sqludMRResponse, probe:981
MESSAGE : SQL2079N  An error was reported by the shared library
          "/usr/openv/netbackup/bin/nbdb2.so64".  Return code: "30".

2024-07-30-15.45.55.337278+420 E76536E594            LEVEL: Severe
PID     : 21348                TID : 140288290973440 PROC : db2sysc 0
INSTANCE: db2prd               NODE : 000            DB   : PRD
APPHDL  : 0-4074               APPID: *LOCAL.db2prd.240729071117
AUTHID  : DB2PRD               HOSTNAME: ggp-firedrill
EDUID   : 1080                 EDUNAME: db2bm.487.0 (PRD) 0
FUNCTION: DB2 UDB, database utilities, sqludBMCont, probe:1373
DATA #1 : Sqlcode, PD_TYPE_SQLCODE, 4 bytes -2054
DATA #2 : Hexdump, 8 bytes
0x00007F979DAD0298 : FAF7 FFFF 1600 0000                        ........

2024-07-30-15.45.55.338601+420 E77131E924            LEVEL: Severe
PID     : 21348                TID : 140288290973440 PROC : db2sysc 0
INSTANCE: db2prd               NODE : 000            DB   : PRD
APPHDL  : 0-4074               APPID: *LOCAL.db2prd.240729071117
AUTHID  : DB2PRD               HOSTNAME: ggp-firedrill
EDUID   : 1080                 EDUNAME: db2bm.487.0 (PRD) 0
FUNCTION: DB2 UDB, database utilities, sqludBMCont, probe:1373
MESSAGE : SQL2054N  The backup or copy image is corrupted.
DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes
 sqlcaid : SQLCA     sqlcabc: 136   sqlcode: -2054   sqlerrml: 2
 sqlerrmc: 22
 sqlerrp : sqludBMC
 sqlerrd : (1) 0x00000000      (2) 0x00000000      (3) 0x00000000
           (4) 0x00000000      (5) 0x00000000      (6) 0x00000000
 sqlwarn : (1)      (2)      (3)      (4)        (5)       (6)
           (7)      (8)      (9)      (10)        (11)
 sqlstate:

2024-07-30-15.45.55.387385+420 E78056E467            LEVEL: Severe
PID     : 21348                TID : 140287909291776 PROC : db2sysc 0
INSTANCE: db2prd               NODE : 000            DB   : PRD
APPHDL  : 0-4074               APPID: *LOCAL.db2prd.240729071117
AUTHID  : DB2PRD               HOSTNAME: ggp-firedrill
EDUID   : 487                  EDUNAME: db2agent (PRD) 0
FUNCTION: DB2 UDB, database utilities, sqludrsa, probe:896
MESSAGE : Restore Terminated.

Terima kasih.

  • Hi Jhony_LMB 

    Error from db2diag happens before 2 hours.

    2024-07-30-15.45.55.337263+420 E75958E577            LEVEL: Error
    PID     : 21348                TID : 140287909291776 PROC : db2sysc 0
    INSTANCE: db2prd               NODE : 000            DB   : PRD
    APPHDL  : 0-4074               APPID: *LOCAL.db2prd.240729071117
    AUTHID  : DB2PRD               HOSTNAME: ggp-firedrill
    EDUID   : 487                  EDUNAME: db2agent (PRD) 0
    FUNCTION: DB2 UDB, database utilities, sqludMRResponse, probe:981
    MESSAGE : SQL2079N  An error was reported by the shared library
              "/usr/openv/netbackup/bin/nbdb2.so64".  Return code: "30".

    Return code 30 usually occurs due to permission issues or incorrect library versions being used. Make sure the correct version of the NetBackup DB2 extension library is being used. If the server is running a 32-bit version of NetBackup, it should use the 32-bit library (nbdb2.sl) instead of the 64-bit library (nbdb2.so64).

    If not this, check the permissions of the /usr/openv/netbackup/bin/nbdb2.so64 file. Make sure at least 755

    There is a known issue with db2 11.1 version with same error, but looks like you have db2 version 10.5. Please run db2level to confirm

    Thanks
    Gary

     

  • Jul 29, 2024 4:02:09 PM - Info bptm (pid=12888) waited for empty buffer 4 times, delayed 433192 times

    There are too many delayed times, I think there must be something wrong with the network.