MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

MQ config, data, and log synchronization over the main and DR site

  • 1.  MQ config, data, and log synchronization over the main and DR site

    Posted Mon October 23, 2023 10:59 AM

    if I want to sync between the main DC MQ env and DR MQ env over the configuration and data and log files on power AIX env.

    1: regarding configuration, I think there are two options:

    •  first is dumping qmgrs configuration and restoring it in the DR site after any configuration changes.
    • second using rsync to sync between qmgr files.

    2: regarding data and log files:

    • because they are binary files I think rsync won't be useful, so what are the options in this case?


    ------------------------------
    Ahmed Abdelsalam
    ------------------------------


  • 2.  RE: MQ config, data, and log synchronization over the main and DR site

    Posted Wed October 25, 2023 04:34 AM

    There is a whole spectrum of options available for MQ DR. At the top end are the options that provide synchronous replication of MQ persistent state, this might be through some sort of platform/storage-subsystem supported disk replication, or through MQ native HA support. At the other end of the spectrum it's a periodic backup of queue manager configuation data. Somewhere inbetween lies taking periodic copies of MQ config, recovery logs and queue manager data. One of the big issues of a periodic copy of the logs and data is that a consistent copy at a point in time of ALL of this data needs to be taken, you cannot simply copy the logs and data while the queue manager is still running.

    MQ Native HA  works by synchronously replicating only the data written to the MQ recovery log, and then replaying those log writes on the secondary sites to keep the queue manage data at those sites up to date. Unfortunately native HA is currently only available in very limited environments. Prior to native HA MQ supported a little used feature where by individual log extents could be copied as they became complete, and replayed on the DR server (see the strmqm -r and strmqm -a options). This avoids the issue of needing to stop the QMgr to take periodic backups and also allows the data loss (this isn't synchronous replication!) in the event of a disaster to be limited to around one log extents worth of updates.



    ------------------------------
    Andrew Hickson
    ------------------------------