|
home /
infca /
wbi
(navigation links)
|
El pecho de los hombres libres es la tumba de sus secretos
|
Migracions de MB
2.1 -> 6.0
- problemes amb els nodes de "AddText" o "InsertText" i "DeleteText".
5.1 -> 6.0
- problemes només amb el MAP node
- save MAP node text
- save BAR files
- erase old
- install new
- deploy
Atenció si s'està en versió 5.0 !
Emir
Creo que lo mejor para el sistema de pre-produccion
es crear el broker con su base de datos DB2, y no migrar nada.
Una vez testeados los flujos,
exporta todo (flujos y mensajes),
se importan en pre-produccion y se hace deploy.
En V5 y V6 basta con pasar el bar file de un entorno a otro.
Hace mucho escribí esto; creo que todavia se aplica a V2.1: IC04v21.pdf
All the Message Broker V5.0 or 5.1 broker development resources
can be used "as is" in the Message Broker V6.0 Toolkit
with the exception of user-defined extensions and mapping files,
which require further migration.
Migrating to MB v6, SG24-7198-00.
How to migrate
- pre-requisites
- migrating the Toolkit :
- install v6 toolkit
- backup workspace
- migrate any v5 mappings (mqsimigratemfmaps)
- create a new workspace and import v5 data or
connect directly to v5 workspace
- v5 message flows are automatically converted to a v6 format
when you first save them. This format cannot be read by the v5 toolkit.
- migrating the Configuration Manager in situ
- install v6
- stop v5 CM
- mqsimigratecomponents
- start v6 CM
- migrating the Configuration Manager to another machine
that has DB2 installed
- install v6 on new machine
- create v6 CM, pointing it at existing CM's (DB2) data source
- start v6 CM - DB2 on v6 machine is used to migrate DB2 data automatically
- start deploy to all brokers so that the v6 CM can subscribe
to broker status messages
- migrating a Broker
Each part of the broker's configuration can be migrated separately.
Upgraded database drivers : odbc.ini changes required on UNIX.
- message flows
- user defined nodes
- message sets
- Broker Archive Files
- New Era Rules and Formats
MB v6 Migration.ppt
Single domain migration checklist
ch 19, pg 339
backup the current domain
ch 20, pg 353
migrate the Toolkit and resources (msg flows, msg sets, user-defined nodes)
ch 21, pg 387
migrate the Configuration Manager
ch 22, pg 427
migrate the Name Server (if present)
take a backup of the brokers
ch 24 (AIX), pg 447
migrate the brokers
check for successful migration
Migrating to MB v6, SG24-7198-00,
27.1, page 330 [356/620]
Tip
You can use the script /tmp/output.txt command
to make a typescript of everything displayed on your terminal
to the specified file (in this case, to /tmp/output.txt) on UNIX systems.
The script ends when the forked shell exits.
Backup
Toolkit migration
- preparing workspace resources for migration :
- migrate user-defined nodes
- download required SupportPacs
- get third party resources for v6
- migrate tooling resources
Populate the Message Broker V6.0 Toolkit workspace
with the contents of the workspace backup zip file,
rather than directly using the old workspace directory.
Using Toolkit, select File, Import,
Existing Project into Workspace.
url
Migrating CM in situ
Configuration Manager maintains the broker domain configuration,
interfacing between the Toolkit and a set of executing brokers.
The Configuration Manager acts as the central repository
for broker domain components,
communicating with other components in the domain using MQ.
It also deploys to the broker domain
as a result of actions initiated through the Toolkit,
and reports the resultant status messages back to the Event Log.
- mqsilist -a
This lists all components that have been created on the system.
- mqsimigratecomponents ConfigMgr -c
Premigration check to determine whether the component can be safely migrated
- mqsimigratecomponents ConfigMgr
Causes the Configuration Manager's queues, registry, and file system information
to migrate from Message Broker V5.0 to Message Broker V6.0.
- mqsimigratecomponents ConfigMgr -v
post-migration check to ensure that the migration completed successfully
and to confirm that correct queues exist
and the registry is in the correct format.
- mqsistart ConfigMgr
When you start the Configuration Manager for the first time
after completing the migration process,
it detects the domain information held in the DB2
of the Business Integration Message Broker V5.0 Configuration Manager
and migrates it
to the internal repository of the Message Broker V6.0 Configuration Manager.
In this way, Message Broker V6.0 Configuration Manager
thus controls the same broker domain configuration
that Business Integration Message Broker V5.0 Configuration Manager
used to control.
Migrating to MB v6, SG24-7198-00,
21.1.1, page 392 [418/620]
In order to associate all brokers in the domain
with the new Configuration Manager,
so that the brokers publish their status messages
to the correct queue manager,
a complete topology deploy is required on the second computer.
Deploy the topology using either
the Message Brokers Toolkit or the command-line interface.
When the topology deploy
has completed re-subscribing to the brokers in the domain,
the brokers are managed by the new Configuration Manager on the new system.
url
Migrating CM (v6) to a computer without DB2
url
Migrating CM (v5) and moving to a computer without DB2 in one step
url
Migrating AIX broker(s)
- migration preparation
- review existing installation
- dspmq - dislay MQ components
- mqsilist - dislay MB components
- mqsilist broker_name - display broker(s) details (execution groups)
- verify DB is available
- review logs
- MQ : AMQERR01.
url,
url.
- MB : see /etc/syslog.conf file
for a line like user.info /var/log/user.log
- DB2 : see .odbc.ini -
url,
url.
- backup broker configuration
- update .profile
- update ODBC settings
- migrate broker :
- logon with user including mqsiprofile
- mqsimigratecomponents -c broker_name -
run a pre-migration check on the broker
- mqsimigratecomponents broker_name -
migrate the broker
- mqsimigratecomponents -v broker_name -
run a post-migration check on the broker
- validate the broker migration
- mqsistart broker_name
- mqsilist -a
- mqsilist broker_name -
the command should display the same list of the execution groups
as before migration.
- validate the migration : verify log files.
Migrating to MB v6, SG24-7198-00,
24.1, page 448 [474/620]
Post-migration tasks
After completing the migration to Message Broker V6.0,
perform verification tasks such as:
- Verify the components - list, start and stop the following:
- Configuration Manager
- User Name Server
- Brokers
- Verify the development environment by:
- Starting the Message Brokers Toolkit
- Assigning and deploying the resources to brokers
- Check if the migrated message flows and message sets
are working as expected
- Review the logs for problems
Migrating to MB v6, SG24-7198-00,
27.1, page 496 [522/620]
MQ v5 -> v6 mig checklist
saveqmgr QMDESA01 > /home/mqm/dades/QMDESA01.TST
separar cluster ( QMDESA01c.TST ) del resto ( QMDESA01r.TST )
(mqm) endmqm QMDESA01
(mqm) amqiclen -x -m QMDESA01 -v
(mqm) /MQHA/bin/mc91_v6/hacmp/hadltmqm QMDESA01
(mqm) rmdir /MQHA/QMDESA01/data/qmgrs/QMDESA01
(root) /MQHA/bin/mc91_v6/hacmp/crea_qm
export MQHAFSDATA="/MQHA/QMDESA01/data"
export MQHAFSLOG="/MQHA/QMDESA01/log"
./hacrtmqm -lc -lp 20 -ls 10 -lf 4096 QMDESA01 (5/3/4096 para el resto)
How to set, in ALL channels and queues :
MAXMSGL(104857600)
A tots els
QM.INI, posar :
Channels:
MaxChannels=400
(mqm) strmqm QMDESA01
runmqlsr -t TCP -p 1414 -m QMDESA01
(mqm) runmqsc QMDESA01 < /home/mqm/dades/QMDESA01c.TST
Wait for the cluster to be updated on MQ Explorer ...
(mqm) runmqsc QMDESA01 < /home/mqm/dades/QMDESA01r.TST
MB v5 -> v6 mig checklist
Get all Execution Groups
Get all BAR files
(root) [/home/wbrkadm/Scripts/] /MQHA/bin/ic91/hacmp/hamqsideletebroker BKDESA01 aixuser BDNAME bduser
rm -r /var/mqsi60/components/BKDESA0n
rm -r /var/mqsi60/registry/BKDESA0n
rm -r /var/mqsi/brokers/BKDESA0n
rm -r /var/mqsi/registry/BKDESA0n
rm -r /MQHA/<qmname>/data/brokers/
rm -r /MQHA/<qmname>/data/registry/
(root) [/MQHA/bin/] /MQHA/bin/hamqsicreatecfgmgr CMname -i aixuser -a aixpwd -q QMname
(root) [/MQHA/bin/] /MQHA/bin/hamqsicreatebroker BKname01 -i aixuser -a aixpwd -q QMname -n BDNAME -u bduser -p bdclau
(wbrkadm) mqsisetdbparms BKname01 -n MQbdTWO -u usuari -p clau
(mqm) setmqaut <lista>
Set deploy timeout to 5 min :
mqsichangebroker BKDESA01 -g 300 ConfigurationDelayTimeout
mqsichangebroker BKDESA01 -k 300 ConfigurationTimeout
See AIX - /var/mqsi60/registry/BKDESA01/CurrentVersion
(wbrkadm6) mqsistart BKDESA01
(wbrkadm6) mqsicreateexecutiongroup -n cmdesa.config -b BK_NAME -e EXEC_GRP_NAME
donde
cmdesa.config contiene :
<?xml version="1.0" encoding="UTF-8"?>
<configmgr crlNameList="" domainName="" host="1.2.3.4" listenerPort="1435"
queueManager="QMDESACM" securityExit="" securityExitJar="" sslCipherSuite="NONE"
sslDistinguishedNames="" sslKeyStore="" sslTrustStore="" svrconn="SYSTEM.BKR.CONFIG"/>
(wbrkadm6) mqsideploy -n cmdesa.config -b BK_NAME -e EXEC_GRP_NAME -a BAR_NAME.bar
A /etc/syslog.conf veure una línia com user.debug /var/path/user.log
Veure el contingut de user.log a cada deploy !
.profile de wbrkadm (v6) has to have
LDR_CNTRL=USERREGS
required by MQSIDEPLOY.
url
MB V6.1 sys reqs
url
MB V6.1 migration
url
Resolving problems that occur when migrating or importing resources
|
Known/solved problems
|
Top
|
BIP1506E
Problem
You delete the physical broker component
before removing it from the broker domain in the toolkit.
Now when you attempt to delete and add it back within the toolkit
you are getting BIP1506E.
This message indicates that the qmgr is already associated
with another broker (the one previously deleted).
Cause
The broker was physically deleted
before it was removed from the toolkit broker domain,
this was the reason for the incorrect data in the configmgr database.
Solution
Launch the Config Manager Proxy API Exerciser:
- Connect to the configmgr
by specifying the host, listener port, and config manager's qmgr
- Right click PubSubTopology
- Select Remove References to a Previously Deleted Broker
- Specify the broker name.
- Add the broker to the domain.
url
To start the Configuration Manager Proxy API Exerciser (on Windows), click
Start >
IBM WebSphere Message Brokers 6.0 >
Java Programming APIs >
Configuration Manager Proxy API Exerciser
url
url
createbroker -1
(1)
Make sure Oracle is running :
dx0649:/home/wbrkadm # ps -ef | grep pmon
ora9 372940 1 0 17:33:42 - 0:00 ora_pmon_mqbkdesa
altogether with its listener :
dx0649:/home/wbrkadm # ps -ef | grep lsn
wbrkadm 155664 405648 0 15:16:36 pts/0 0:00 grep lsn
(2)
Make sure in .odbc.ini (usualy at /var/mqsi/odbc/) you have
the appropiate driver for Oracle :
Driver=/usr/mqsi/merant/lib/UKor820.so
BIP1100E
Install CSD 03, and verify JVM 1.4 is used
. /usr/mqsi60/bin/mqsiprofile
env
LIBPATH=/usr/mqsi60/jre/bin:/usr/mqsi60/jre/bin/classic:/usr/mqm/java/lib:/usr/mqsi60/lib:
BIP1510E: Deployment failed; a deployment is already in progress to broker BKDESA02
To cancel the deploy operation, either :
- (a) right-click the broker in the Message Brokers Toolkit and select the Cancel Deployment option,
- (b) use mqsideploy with the -c option,
- (c) use the BrokerProxy.cancelDeployment() method in a Configuration Manager Proxy application.
BIP8087E: BKDESA02 already exists and cannot be created.
Qué s'ha de borrar ?
Unix :
/var/mqsi60/components/BKNAME
/var/mqsi/registry/BKNAME
Win :
HKLM\software\ibm\WebSphereMQIntegrator\2\TKT01BK\
c:\Documents and Settings\All Users\Application Data\IBM\MQSI\components\TKT01BK\
<restart>
MB v5 un-install
java -jar uninstall.jar
Pending :
BIP1037S: Broker not found.
Si hacemos un mqsicreateexecutiongroup y recibimos este mensaje,
Broker 'BKDESA01' was not found in the Configuration Manager repository.
Pregunta : cómo ver lo que hay en el repositorio ?
(desde una command line / shell de AIX )
- como saber la version de un BAR desplegado en un grupo de ejecucion ?
- como activar / parar un flujo ? (start/stop a message flow)