Prior to 9.0.4 version of MQ Appliance, it was required to do very careful planning of queue managers’ file system size before creating them. When new queue manager was created, it was required to specify its file system size, which could not be changed after. Making it too small could cause issues in the future, when queue manager needs to handle higher workloads and so require more storage. On the other hand, making it too big could lead to wasting the storage, which could be used otherwise by other queue managers.

To address the above issue, the 9.0.4 version of MQ Appliance introduces the new setmqsize command, which allows growing queue manager’s file system size. So, if queue manager was configured with smaller file system initially, it can be increased in the future when needed.

Resizing queue manager

Below is a quick example of resizing queue manager:

mqa(mqcli)# crtmqm -fs 2 QM
Please wait while 2048 MB file system is initialized for queue manager 'QM'.
IBM MQ Appliance queue manager created.

mqa(mqcli)# setmqsize -m QM -s 5
The setmqsize command succeeded.

Here the original size of queue manager was set to 2 Gb, which then was resized to 5 Gb.

The setmqsize command allows only increasing size of queue manager’s file system; it cannot make it smaller. Growing queue manager’s file system requires the queue manager to be stopped.

The command cannot be applied to queue managers configured for High Availability or Disaster Recovery. If such queue manager requires resize, then its HA/DR configuration must be removed first. Later it can be recreated again, when queue manager resize completes.

More information

More information for the setmqsize command is available in the MQ Knowledge Center.

Leave a Reply