Installing RDQM alongside other IBM MQ installations
We can install RDQM alongside other installations of IBM MQ although there can only be one RDQM installation.
About this task
When installing multiple instances of IBM MQ on Linux with RPM, we must ensure that each installation is made from packages with unique names. To create unique packages, you run the crtmqpkg command:crtmqpkg PACKAGE_SUFFIXWhere PACKAGE_SUFFIX is a string added to package files to make them unique.
To install RDQM alongside existing IBM MQ installations, we must run crtmqpkg twice, once for the main IBM MQ package and once for the RDQM component that has a separate rpm file under the Advanced/RDQM subdirectory. For both commands, we should specify the same PACKAGE_SUFFIX. When you run crtmqpkg for the RDQM package, you supply RPMDIR and SPECDIR arguments to specify where the RDQM package files reside.
Note:
- By default, the crtmqpkg command writes to the /var/tmp directory. To use a different location, we can set the TMPDIR environment variable before you run the crtmqpkg command.
- To run the crtmqpkg command used in this task, we must have the pax command or rpmbuild installed.
Procedure
To create unique installation packages for RDQM:
- Decompress the downloaded software to your installation directory, see Installing IBM MQ server on Linux using rpm.
- From your installation directory, create unique packages for the IBM MQ components:
./crtmqpkg RDQM- From your installation directory, create unique packages for the RDQM components:
RPMDIR=install_directory_path/MQServer/Advanced/RDQM SPECDIR=install_directory_path/MQServer/Advanced/RDQM/repackage ./crtmqpkg RDQMWhere install_directory_path is the full path to your installation directory.- Install IBM MQ with RDQM using the packages you created in this task. Note that, as we are installing an additional instance of IBM MQ, we will need to use the --prefix option with rpm to specify a non-default installation location.
- Change to the directory containing the unique packages that were created, for example:
cd /var/tmp/mq_rpms/RDQM/x86_64- Install IBM MQ and RDQM:
rpm -ivh --prefix /opt/customLocation MQSeriesGSKit* MQSeriesServer* MQSeriesRuntime* MQSeriesRDQM*
Parent topic: Installing RDQM (replicated data queue managers)