Applying service
Service is delivered in the form of RPM update images, which are applied using the RPM installation tool. Additional disk space is required for the update images, as the updated files are kept in /opt/mqm/maintenance directory, to allow service to be removed and the previous level restored. Do not delete or move this directory or the files it contains.
Updates are cumulative. We can install your chosen update directly, without installing any previous updates first. The maintenance might contain updates for one or more package. You must install those parts of an update that correspond to the packages that are installed on your machine.
- Before installing maintenance end all WebSphere MQ activity:
- Log in as root.
- Use the dspmq command to display the state of all the queue managers on the system.
- Use the endmqm command to stop all running queue managers.
- Stop any listeners associated with the queue managers, using the command:
endmqlsr -m QMgrName- To check that you have stopped all necessary WebSphere MQ activity, type:
ps -ef | grep mqCheck that there are no processes listed that are running command lines beginning amq or runmq. Ignore any that start with amqi.
- Change into the directory containing the maintenance packages.
- Use the ls command to list the available updates. For example, if there are level 1 service updates for the Runtime, SDK and Server packages, you will see the following:
MQSeriesRuntime-Uxxxx-6.0.0-1.i386.rpm MQSeriesSDK-Uxxxx-6.0.0-1.i386.rpm MQSeriesServer-Uxxxx-6.0.0-1.i386.rpm- To find out which packages are installed on your machine, enter the following:
rpm -q -a | grep MQSeriesFor example, if you have a minimum WebSphere MQ installation and SDK component, at level 0, this will return:MQSeriesRuntime-6.0.0-0 MQSeriesSDK-6.0.0-0 MQSeriesServer-6.0.0-0- Now install all available updates for the packages you have on your system:
rpm -ivh MQSeriesRuntime-Uxxxx-6.0.0-1.i386.rpm MQSeriesSDK-Uxxxx-6.0.0-1.i386.rpm MQSeriesServer-Uxxxx-6.0.0-1.i386.rpmYou must install all packages in a service update that apply to those packages that are currently installed on your system.
- Repeat step 4, and you will see that the Runtime, SDK and Server packages are now at level 1:
MQSeriesRuntime-6.0.0-0 MQSeriesSDK-6.0.0-0 MQSeriesServer-6.0.0-0 MQSeriesRuntime-Uxxxx-6.0.0-1 MQSeriesSDK-Uxxxx-6.0.0-1 MQSeriesServer-Uxxxx-6.0.0-1
For further information on using RPM to install software packages, see your Linux documentation.
Parent topic:
Applying maintenance
lq10860_