Sun Cluster Data Service for WebSphere MQ Guide for Solaris OS

ProcedureExample: Verify WebSphere MQ

  1. Create and start the queue manager.

    Perform this step from the global zone.


    Vigor5# zlogin z1
    # su - mqm
    $ crtmqm qmgr1
    $ strmqm qmgr1
    
  2. 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
  3. Stop the queue manager.

    Perform this step in zone z1.


    $ endmqm -i qmgr1
    $ exit
    # exit
    
  4. 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
    
  5. 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
    
  6. Start the queue manager.

    Perform this step from the global zone.


    Vigor5# zlogin z2
    # su - mqm
    $ strmqm qmgr1
    
  7. 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
    
  8. Stop the queue manager.

    Perform this step in zone z2.


    $ endmqm -i qmgr1
    $ exit
    # exit
    
  9. 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