+

Search Tips | Advanced Search

Restoring a complete queue manager (data and journals) on IBM i

Use this information to restore one or more queue managers from a backup or from a remote machine.

For to recover one or more IBM MQ queue managers from a backup, perform the following steps.
  1. Quiesce the IBM MQ queue managers.
  2. Locate your latest backup set, consisting of our most recent full backup and subsequently backed up journal receivers.
  3. Perform a RSTLIB operation, from the full backup, to restore the IBM MQ data libraries to their state at the time of the full backup, by issuing the following commands:
    RSTLIB LIB(QMQRLIB1) .........
    RSTLIB LIB(QMQRLIB2) .........
    

    If a journal receiver was partially saved in one journal backup, and fully saved in a subsequent backup, restore only the fully saved one. Restore journals individually, in chronological order.

  4. Perform an RST operation to restore the IBM MQ IFS directories to the IFS file system, using the following command:
    RST DEV(...) OBJ(('/QIBM/UserData/mqm/qmgrs/testqm')) ...
    
  5. Start the message queue manager. This replays all journal records written since the full backup and restores all the IBM MQ objects to the consistent state at the time of the journal backup.

To restore a complete queue manager on a different machine, use the following procedure to restore everything from the queue manager library. (We use TEST as the sample queue manager name.)

  1. CRTMQM TEST
  2. DLTLIB LIB(QMTEST)
  3. RSTLIB SAVLIB(QMTEST) DEV(*SAVF) SAVF(QMGRLIBSAV)
  4. Delete the following IFS files:

    • /QIBM/UserData/mqm/qmgrs/TEST/QMQMCHKPT
    • /QIBM/UserData/mqm/qmgrs/TEST/qmanager/QMQMOBJCAT
    • /QIBM/UserData/mqm/qmgrs/TEST/qmanager/QMANAGER
    • /QIBM/UserData/mqm/qmgrs/TEST/queues/SYSTEM.AUTH.DATA.QUEUE/q
    • /QIBM/UserData/mqm/qmgrs/TEST/queues/SYSTEM.CHANNEL.INITQ/q
    • /QIBM/UserData/mqm/qmgrs/TEST/queues/SYSTEM.CLUSTER.COMMAND.QUEUE/q
    • /QIBM/UserData/mqm/qmgrs/TEST/queues/SYSTEM.CLUSTER.REPOSITORY.QUEUE/q
    • /QIBM/UserData/mqm/qmgrs/TEST/queues/SYSTEM.CLUSTER.TRANSMIT.QUEUE/q
    • /QIBM/UserData/mqm/qmgrs/TEST/queues/SYSTEM.PENDING.DATA.QUEUE/q
    • /QIBM/UserData/mqm/qmgrs/TEST/queues/SYSTEM.ADMIN.COMMAND.QUEUE/q

  5. STRMQM TEST
  6. RCRMQMOBJ OBJ(*ALL) OBJTYPE(*ALL) MQMNAME(TEST)

Parent topic: Backups of IBM MQ for IBM i data

Last updated: 2020-10-04