Instructions to upgrade WebSphere MQ
- Update the resource settings Run the following commands to set project resources:
projadd -c "WebSphere MQ default settings" -K "process.max-file-descriptor=(basic,10000,deny)" -K "process.max-sem-nsems=(priv,32767,deny)" -K "process.max-sem-ops=(priv,1024,deny)" -K "project.max-msg-ids=(priv,4096,deny)" -K "project.max-sem-ids=(priv,524288,deny)" -K "project.max-shm-ids=(priv,4096,deny)" -K "project.max-shm-memory=(priv,4294967296,deny)" group.mqmMake sure the
projmod -s -K "process.max-file-descriptor=(basic,10000,deny)" -K "process.max-sem-nsems=(priv,32767,deny)" -K "process.max-sem-ops=(priv,1024,deny)" -K "project.max-msg-ids=(priv,4096,deny)" -K "project.max-sem-ids=(priv,524288,deny)" -K "project.max-shm-ids=(priv,4096,deny)" -K "project.max-shm-memory=(priv,4G,deny)" user.root
projmod -s -K "process.max-sem-nsems=(priv,32767,deny)" -K "project.max-msg-ids=(priv,4096,deny)" -K "project.max-sem-ids=(priv,524288,deny)" -K "project.max-shm-ids=(priv,4096,deny)" -K "project.max-shm-memory=(priv,4294967296,deny)" default
projects -l returns the same as:
bash-3.00# projects -l
system
projid : 0
comment: ""
users : (none)
groups : (none)
attribs:
user.root
projid : 1
comment: ""
users : (none)
groups : (none)
attribs: process.max-file-descriptor=(basic,10000,deny)
process.max-sem-nsems=(priv,32767,deny)
process.max-sem-ops=(priv,1024,deny)
project.max-msg-ids=(priv,4096,deny)
project.max-sem-ids=(priv,524288,deny)
project.max-shm-ids=(priv,4096,deny)
project.max-shm-memory=(priv,4294967296,deny)
noproject
projid : 2
comment: ""
users : (none)
groups : (none)
attribs:
default
projid : 3
comment: ""
users : (none)
groups : (none)
attribs: process.max-sem-nsems=(priv,32767,deny)
project.max-msg-ids=(priv,4096,deny)
project.max-sem-ids=(priv,524288,deny)
project.max-shm-ids=(priv,4096,deny)
project.max-shm-memory=(priv,4294967296,deny)
group.staff
projid : 10
comment: ""
users : (none)
groups : (none)
attribs:
group.mqm
projid : 100
comment: "WebSphere MQ default settings"
users : (none)
groups : (none)
attribs: process.max-file-descriptor=(basic,10000,deny)
process.max-sem-nsems=(priv,32767,deny)
process.max-sem-ops=(priv,1024,deny)
project.max-msg-ids=(priv,4096,deny)
project.max-sem-ids=(priv,524288,deny)
project.max-shm-ids=(priv,4096,deny)
project.max-shm-memory=(priv,4294967296,deny)
- Stop GEO publishing script GEO publishing script is ran by a cron job througth user
- Stop other publishing script Consult Igor or Greg.
grid. Edit the cronjob to stop the publishing.
- At Hanford use
asnqccmd CAPTURE_SCHEMA=ASN CAPTURE_SERVER=SEG_LHO LOGSTDOUT=Y STOP
asnqccmd CAPTURE_SCHEMA=ASN CAPTURE_SERVER=SEG_LLO LOGSTDOUT=Y STOP
asnqccmd CAPTURE_SCHEMA=ASN CAPTURE_SERVER=SEG_CIT LOGSTDOUT=Y STOP
runmqsc queue_manager_name dis ql(queue name) curdepth
asnqacmd APPLY_SCHEMA=ASN APPLY_SERVER=SEG_LHO LOGSTDOUT=Y STOP runmqsc QM1 << EOF stop channel (QM1_TO_QM2) stop channel (QM1_TO_QM3) end EOF endmqm -i QM1 endmqlsr -m QM1Change queue manager name and channel names accordingly. For more details, please consult How to Stop and Start the LSC segment database
- Clean up IPC:
ipclean
ipcs | grep mqm | awk '{print " ipcrm -"$1" "$2}'
pkginfo | grep mqmand you will see a list of mqm packages like this:
[ldbd@ldas.ldas-wa ~]$ pkginfo | grep mqm application mqm WebSphere MQ for Sun Solaris application mqm-upd11Remove the packages in reverse order:
pkgrm mqm-upd11 pkgrm mqm
pkginfo | grep gsk application gsk6bas Certificate and SSL Base Runtime (gsk6bas) pkgrm gsk6bas
pkgadd -d .Type in the number responding to the GSKit that you want to install. Follow the instructions.
./mqlicense.sh
pkgadd -d corresponding_img_file
pkgadd -d .When prompted, enter the corresponding number of the MQM package, follow the instructions. Say no if prompted for DCE and yes to all the other questions.
If the channels are all running, restart db2 and WebSphere MQ listeners, then restart capture program then apply program.
$Id: upgradewebsphere.html,v 1.4 2008/07/16 18:29:27 piwei Exp $