If only one system is active at a time (master, slave), you can use "power ha" licensed product that runs natively in a IBMi partition. This copies data at "block level/disk level" without particular dependencies. If you for some reason want to strictly protect "just one library", just put such library in the protected ASP.
It does support strict synchronous copy, this of course put pressure also on the source system (because of course ack to the write is given when data is on the copy system first). So plan accordingly (network latency and bandwidth, with stress on latency).
And nowadays, PowerHA does supports also multi-targets, without involving external SAN/arrays.
It is not clear to me exactly the buffering limit of the Asynchronous mode, it could and does have a backpressure on the primary in saturation cases, I just cannot find any reference about how big/tunable the internal queues are (say, to put the target on cloud, unreliable connections, downtimes...).
The only doc I find on powerha are scarce in details, the only doc I've been able to find is https://www.ibm.com/support/pages/powerha-geographic-mirroring-asyncasync-explained
Maybe the powerha team can chime in and explain the details...
------------------------------
--ft
------------------------------
Original Message:
Sent: Thu November 30, 2023 03:23 AM
From: Solomon John Downy Nallathambi
Subject: DB2 Mirroring
Planning for mirroring of one library created by DB2 (not a native IBMi library) - DB2LIB001.
Requirements
1a) Synchronous replication of DB2LIB001 in IBMi Server A (LPAR 2) to IBMi Server B (LPAR2) in the same data center [OR]
1b) Synchronous replication of DB2LIB001 in IBMi Server A (LPAR 2) to a Linux Server DB2 in the same data center
2) End of Day mirroring of DB2LIB001 in IBMi Server A (LPAR2) to a Linux/ Windows Server DB2 in a different location, thousands of miles away.
Does IBMi DB2 mirroring support 1b and 2 requirements?
------------------------------
Solomon John Downy Nallathambi
Regional Head of Digital, Technology and Cyber Risk
HSBC
Dubai
+971501307373
------------------------------