The only difference between the steps in the article and the steps I did was the following.
So the issue was, that I stored the backup in the root of the bucket which looks like it is not expected, but I did not find any note about that.
But now. I can backup and restore to Minio.
Thank you for your help.
Original Message:
Sent: Thu December 12, 2024 07:31 AM
From: Mike O'Reilly
Subject: DB2 12.1 not able to restore DB2REMOTE backup from Minio
Seems it is very fussy about exact paths.
Did you study this item which shows Db2-LUW recovery from S3 working https://www.triton.co.uk/aws-s3-recovery-for-db2-luw/
Please temporarily enable DIAGLEVEL 4 and repeat, to show the LEVEL:Info db2diag and Warning entries in addition to Errors.
------------------------------
Mike O'Reilly
Original Message:
Sent: Tue December 10, 2024 12:46 PM
From: Ondřej Žižka
Subject: DB2 12.1 not able to restore DB2REMOTE backup from Minio
The same situation happened with the following version of Db2.
[db2inst1@db2121 ~]$ db2levelDB21085I This instance or install (instance name, where applicable: "db2inst1") uses "64" bits and DB2 code release "SQL12010" with level identifier "02010110".Informational tokens are "DB2 v12.1.0.0", "s2410070955", "DYN2410070955AMD64", and Fix Pack "0".Product is installed at "/opt/ibm/db2/V12.1".
MinIO version is RELEASE.2024-11-07T00-52-20Z.
------------------------------
Ondřej
Original Message:
Sent: Tue December 10, 2024 02:53 AM
From: Ondřej Žižka
Subject: DB2 12.1 not able to restore DB2REMOTE backup from Minio
I was able to configure MinIO to be able to backup Db2 database to that location.
[db2inst1@db2121 ~]$ db2 backup database test to DB2REMOTE://minio//Backup successful. The timestamp for this backup image is : 20241210070932[db2inst1@db2121 ~]$ db2 archive log for database testDB20000I The ARCHIVE LOG command completed successfully.
Info about the location
[db2inst1@db2121 ~]$ db2 list storage access Node DirectoryNode 1 entry:ALIAS=minioVENDOR=S3SERVER=https://minio.example.comUSERID=****CONTAINER=informix-backupOBJECT=DBUSER=DBGROUP=SYSADM Number of entries in the directory = 1DB20000I The LIST STORAGE ACCESS command completed successfully.
Unfortunately, it is not possible to restore using a remote location. I dropped the database TEST before.
[db2inst1@db2121 ~]$ db2 restore database test from DB2REMOTE://minio// taken at 20241210070932SQL2542N No match for a database image file was found based on the source database alias "TEST" and timestamp "20241210070932" provided.
In the db2diag file, there can be seen the following errors:
2024-12-10-08.30.14.396667+060 I320926E485 LEVEL: InfoPID : 72992 TID : 140518092695104 PROC : db2sysc 0INSTANCE: db2inst1 NODE : 000 DB : TESTAPPHDL : 0-269 APPID: *LOCAL.db2inst1.241210073014AUTHID : DB2INST1 HOSTNAME: db2121EDUID : 1783 EDUNAME: db2med.187.0 (TEST) 0FUNCTION: DB2 UDB, oper system services, SqloCosClient::Initialize, probe:9DATA #1 : String, 5 bytesminio2024-12-10-08.30.14.435593+060 E321412E573 LEVEL: ErrorPID : 72992 TID : 140518092695104 PROC : db2sysc 0INSTANCE: db2inst1 NODE : 000 DB : TESTAPPHDL : 0-269 APPID: *LOCAL.db2inst1.241210073014AUTHID : DB2INST1 HOSTNAME: db2121EDUID : 1783 EDUNAME: db2med.187.0 (TEST) 0FUNCTION: DB2 UDB, database utilities, sqluMCInitRestoreMC, probe:1289MESSAGE : Media controller -- Unable to initialize device DB2REMOTE://minio/informix-backup// (zrc = 0x00000000)2024-12-10-08.30.14.435746+060 E321986E590 LEVEL: ErrorPID : 72992 TID : 140518092695104 PROC : db2sysc 0INSTANCE: db2inst1 NODE : 000 DB : TESTAPPHDL : 0-269 APPID: *LOCAL.db2inst1.241210073014AUTHID : DB2INST1 HOSTNAME: db2121EDUID : 1783 EDUNAME: db2med.187.0 (TEST) 0FUNCTION: DB2 UDB, database utilities, sqluMCInitRestoreMC, probe:1289MESSAGE : SQL2542N No match for a database image file was found based on the source database alias "" and timestamp "" provided.2024-12-10-08.30.14.435851+060 E322577E496 LEVEL: ErrorPID : 72992 TID : 140518092695104 PROC : db2sysc 0INSTANCE: db2inst1 NODE : 000 DB : TESTAPPHDL : 0-269 APPID: *LOCAL.db2inst1.241210073014AUTHID : DB2INST1 HOSTNAME: db2121EDUID : 1783 EDUNAME: db2med.187.0 (TEST) 0FUNCTION: DB2 UDB, database utilities, sqluMCInitRestoreMC, probe:1289DATA #1 : String, 19 bytesTEST.202412100709322024-12-10-08.30.14.435989+060 E323074E600 LEVEL: ErrorPID : 72992 TID : 140517992031808 PROC : db2sysc 0INSTANCE: db2inst1 NODE : 000 DB : TESTAPPHDL : 0-269 APPID: *LOCAL.db2inst1.241210073014AUTHID : DB2INST1 HOSTNAME: db2121EDUID : 187 EDUNAME: db2agent (TEST) 0FUNCTION: DB2 UDB, database utilities, sqludMRResponse, probe:1171MESSAGE : SQL2542N No match for a database image file was found based on the source database alias "TEST" and timestamp "20241210070932" provided.
Database is the following version:
[db2inst1@db2121 ~]$ db2levelDB21085I This instance or install (instance name, where applicable: "db2inst1") uses "64" bits and DB2 code release "SQL12010" with level identifier "02010110".Informational tokens are "DB2 v12.1.0.0", "special_50594", "DYN2411071022AMD64_50594", and Fix Pack "0".Product is installed at "/opt/ibm/db2/V12.1".
Have you ever met this issue before?
Thank you for any advice.
------------------------------
Ondřej
------------------------------