[OpenShift Container Platform][Amazon EKS][IBM Cloud Pak for Integration]

Backing up and restoring queue manager configuration

Backing up queue manager configuration can help you to rebuild a queue manager from its definitions if the queue manager configuration is lost. This procedure does not back up queue manager log data. Because of the transient nature of messages, historical log data is likely to be irrelevant at the time of restore.

Before you begin

Log into your cluster from the command line.

Procedure

  • Back up queue manager configuration.

    You can use the dmpmqcfg command to dump the configuration of an IBM® MQ queue manager.

    1. Get the name of the pod for your queue manager.
      For example, run the following command, where <QUEUEMANAGER_NAME> is the name of your QueueManager resource:
      • On Red Hat® OpenShift®:
        oc get pods --selector app.kubernetes.io/name=ibm-mq,app.kubernetes.io/instance=<QUEUEMANAGER_NAME>
      • On Amazon EKS:
        kubectl get pods --selector app.kubernetes.io/name=ibm-mq,app.kubernetes.io/instance=<QUEUEMANAGER_NAME>
    2. Run the dmpmqcfg command on the pod, directing the output into a file on your local machine.
      dmpmqcfg outputs the queue manager's MQSC configuration.
      Run the following command, where <POD_NAME> is the name of your pod, which you obtained in the previous step:
      • On Red Hat OpenShift:
        oc exec -it <POD_NAME> -- dmpmqcfg > backup.mqsc
      • On Amazon EKS:
        kubectl exec -it <POD_NAME> -- dmpmqcfg > backup.mqsc
  • Restore queue manager configuration.

    Having followed the backup procedure outlined in the previous step, you should have a backup.mqsc file that contains the queue manager configuration. You can restore the configuration by applying this file to a new queue manager.

    1. Get the name of the pod for your queue manager.
      For example, run the following command, where <QUEUEMANAGER_NAME> is the name of your QueueManager resource:
      • On Red Hat OpenShift:
        oc get pods --selector app.kubernetes.io/name=ibm-mq,app.kubernetes.io/instance=<QUEUEMANAGER_NAME>
      • On Amazon EKS:
        kubectl get pods --selector app.kubernetes.io/name=ibm-mq,app.kubernetes.io/instance=<QUEUEMANAGER_NAME>
    2. Run the runmqsc command on the pod, directing in the content of the backup.mqsc file.
      Run the following command, where <POD_NAME> is the name of your pod, which you obtained in the previous step:
      • On Red Hat OpenShift:
        oc exec -i <POD_NAME> -- runmqsc < backup.mqsc
      • On Amazon EKS:
        kubectl exec -i <POD_NAME> -- runmqsc < backup.mqsc