Backing up a multi-instance queue manager on IBM i

The procedure shows you how to back up queue manager objects on the local server and the queue manager data on the network file server. Adapt the example to back up data for other queue managers.


Before starting

In this example, the queue manager data associated with the queue manager QM1 is stored on the IBM i server called GAMMA, using NetServer. See Create a multi-instance queue manager using journal mirroring and NetServer on IBM i. IBM MQ is installed on the servers, ALPHA and BETA. The queue manager, QM1, is configured on ALPHA and BETA.


IBM i does not support saving data from a remote directory. Save the queue manager data on a remote file system using the backup procedures local to the file system server. In this task, the network file system is on an IBM i server, GAMMA. The queue manager data is backed up in a save file on GAMMA.

If the network file system was on Windows or Linux, you might store the queue manager data in a compressed file, and then save it. If we have a back-up system, such as Tivoli Storage Manager, use it to back up the queue manager data.


Procedure

  1. Create a save file on ALPHA for the queue manager library associated with QM1.

    Use the queue manager library name to name the save file.

    CRTSAVF FILE(QGPL/QMQM1)
    
  2. Save the queue manager library in the save file on ALPHA.
    SAVLIB LIB(QMQM1) DEV(*SAVF) SAVF(QGPL/QMQM1)
    
  3. Create a save file for the queue manager data directory on GAMMA.

    Use the queue manager name to name the save file.

    CRTSAVF FILE(QGPL/QMDQM1)
    
  4. Save the copy of the queue manager data from the local directory on GAMMA.
    SAV DEV('/QSYS.LIB/QGPL.LIB/QMDQM1.FILE') OBJ('/QIBM/Userdata/mqm/qmgrs/QM1')
    

Parent topic: Multi-instance queue managers on IBM i