Installare IBM WebSphere MQ Server 5.1 su SUN Solaris 8
7 December, 2007 – 1:18Prima di installare MQ bisogna creare l’utenza e il gruppo mqm:
#groupadd -g 10005 mqm
#useradd -d /home/ap/mqm -G 10005 -u 10018 -s /usr/bin/csh mqm
Ho provato a creare la directory /home/ap/mqm ma il sistema operativo non me lo lascia fare, cosi` ho commentato le righe non commentate nel file /etc/auto_home e nel file /etc/auto_master e dopo il reboot della macchina mi ha lasciato creare la home dell’utente mqm.
Per installare MQ 5.1 sulla macchina bisogna copiare la directory “mqm”, che si trova nel CD di WebSphere MQ 5.1 Server, in /var/spool/pkg.
Lanciare: cd /var/spool/pkg; pkgadd -M . mqm
Per vedere se MQ e` installato basta dare:
root@solaris8 # pkginfo -l mqm
PKGINST: mqm
NAME: MQSeries for Sun Solaris 2
CATEGORY: application
ARCH: sparc
VERSION: 5.1.0
VENDOR: IBM
PSTAMP: p510b-IVT4 (packaged: May 13, 1999 - 11:33:44 AM)
INSTDATE: Nov 27 2007 17:23
STATUS: completely installed
FILES: 1898 installed pathnames
74 executables
42 setuid/setgid executables
50148 blocks used (approx)
La prima volta che ho installato MQ nella riga STATUS c’era scritto partially installed perche` non avevo ancora creato l’utente mqm e il relativo gruppo. Cosi` ho rimosso MQ con pkgrm mqm e svolto le attivita` che prima avevo trascurato.
Dopo l’installazione di MQ bisogna installare anche l’mqm-upd07 che e’ una fix per risolvere questo problema:
The MQSeries trigger monitor (runmqtrm) places trigger
messages to the dead letter queue with a feedback code of 265
(MQFB_APPL_CANNOT_BE_STARTED) if it cannot start the triggered
application, which is correct behaviour. However, runmqtrm will
currently do the same if the triggered program terminates with
anything other than a zero exit status. This APAR will prevent
runmqtrm from DLQ’ing trigger messages once it successfully
starts the triggered program, just as the manuals describe.
Copiare il file U473194.tar.Z in /var/spool/pkg e dare: zcat U473194.tar.Z | tar xvf - ; pkgadd -d mqm-U473194.image
Per vedere se tutte i packages sono stati installati bisogna avere questo output:
root@solaris8# pkginfo | grep mqm
application mqm MQSeries for Sun Solaris 2
application mqm-upd07 MQSeries for Sun Solaris 2 - U473194