Restoring a complete queue manager (data and journals)
If you need to recover one or more WebSphere MQ queue managers from a backup,
perform the following steps.
- Quiesce the WebSphere MQ queue managers.
- Locate your latest backup set, consisting of your most recent full backup
and subsequently backed up journal receivers.
- 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.
- 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')) ...
- 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.)
- CRTMQM TEST
- DLTLIB LIB(QMTEST)
- RSTLIB SAVLIB(QMTEST) DEV(*SAVF) SAVF(QMGRLIBSAV)
- 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'
- STRMQM TEST
- RCRMQMOBJ OBJ(*ALL) OBJTYPE(*ALL) MQMNAME(TEST)