WebSphere MQ for iSeries, complete queue manager, restoring, restoring complete, queue manager, complete queue manager (data and journals), Restoring a, data, journals" /> Restoring a complete queue manager (data and journals)

 

Restoring a complete queue manager (data and journals)

If we need to recover one or more WebSphere MQ queue managers from a backup, perform the following steps.

  1. Quiesce the WebSphere MQ queue managers.

  2. Locate your latest backup set, consisting of your most recent full backup and subsequently backed up journal receivers.

  3. Perform a RSTLIB operation, from the full backup, to restore the WebSphere 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 WebSphere 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 WebSphere MQ objects to the consistent state at the time of the journal backup.

If you want to restore a complete queue manager on a different machine, use the procedure below 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/queues/SYSTEM.AUTH.DATA.QUEUE'

  5. STRMQM TEST

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