Moving messages to a new, larger page set

Note

This technique involves stopping and restarting the queue manager. This deletes any nonpersistent messages that are not on shared queues at restart time. If you have nonpersistent messages that you do not want to be deleted, use load balancing instead (see How to balance loads on page sets).

In this description, the page set that you want to expand is referred to as the source page set; the new, larger page set is referred to as the destination page set.

Follow these steps:

  1. Stop the queue manager.

  2. Define the destination page set, ensuring that it is larger than the source page set, with a larger secondary extent value.

  3. Use the FORMAT function of CSQUTIL to format the destination page set. See Formatting page sets (FORMAT) for more details.

  4. Use the COPYPAGE function of CSQUTIL to copy all the messages from the source page set to the destination page set. See Expanding a page set (COPYPAGE) for more details.

  5. Restart the queue manager using the destination page set by doing one of the following:

    • Change the queue manager started task procedure to reference the destination page set. See the WebSphere MQ for z/OS System Setup Guide for more details.

    • Use Access Method Services to delete the source page set and then rename the destination page set, giving it the same name as that of the source page set.

Attention:

Before you delete any WebSphere MQ page set, be sure that you have made the required backup copies.