Create and start the queue manager.
Perform this step from the global zone.
Vigor5# zlogin z1 # su - mqm $ crtmqm qmgr1 $ strmqm qmgr1 |
Create a persistent queue in each queue manager and put a message to the queue .
Perform this step in zone z1.
$ runmqsc qmgr1 def ql(sc3test) defpsist(yes) end $ /opt/mqm/samp/bin/amqsput SC3TEST qmgr1 test test test test test ^C |
Stop the queue manager.
Perform this step in zone z1.
$ endmqm -i qmgr1 $ exit # exit |
Copy the mqs.ini file between the two zones.
Perform this step in the global zone.
Vigor5# cp /zones/z1/root/var/mqm/mqs.ini /zones/z2/root/var/mqm/mqs.ini |
Unmount and mount the ZFS file systems in the other zone.
Perform this step in the global zone.
Vigor5# zpool export -f HAZpool1 Vigor5# zpool export -f HAZpool2 Vigor5# zpool import -R /zones/z2/root HAZpool1 Vigor5# zpool import -R /zones/z2/root HAZpool2 |
Start the queue manager.
Perform this step from the global zone.
Vigor5# zlogin z2 # su - mqm $ strmqm qmgr1 |
Get the messages from the persistent queue and delete the queue.
Perform this step in zone z2.
$ /opt/mqm/samp/bin/amqsget SC3TEST qmgr1 ^C $ runmqsc qmgr1 delete ql(sc3test) end |
Stop the queue manager.
Perform this step in zone z2.
$ endmqm -i qmgr1 $ exit # exit |
Unmount the ZFS file systems from the zone.
Perform this step in the global zone.
Vigor5# zpool export -f HAZpool1 Vigor5# zpool export -f HAZpool2 |