Sun Cluster Data Service for WebSphere MQ Guide for Solaris OS

ProcedureExample: Verify WebSphere MQ

  1. Create and start a queue manager.

    Perform this step from the global zone.


    Vigor5# zlogin z3
    # su - mqm
    $ crtmqm qmgr3
    $ strmqm qmgr3
    
  2. Create a persistent queue in the queue manager and put a message to the queue.

    Perform this step in zone z3.


    $ runmqsc qmgr3
    def ql(sc3test) defpsist(yes)
    end
    $ /opt/mqm/samp/bin/amqsput SC3TEST qmgr3
    test test test test test
    ^C
  3. Stop the queue manager.

    Perform this step in zone z3.


    $ endmqm -i qmgr3
    $ exit
    # exit
    
  4. Unmount and mount the ZFS file systems in the zone.

    Perform this step in the global zone.


    Vigor5# zpool export -f HAZpool1
    Vigor5# zpool export -f HAZpool2
    Vigor5# zpool import -R /FOZones/z3/root HAZpool1
    Vigor5# zpool import -R /FOZones/z3/root HAZpool2
    
  5. Start the queue manager.

    Perform this step from the global zone.


    Vigor5# zlogin z3
    # su - mqm
    $ strmqm qmgr3
    
  6. Get the messages from the persistent queues in the queue manager and delete the queue.

    Perform this step in zone z3.


    $ /opt/mqm/samp/bin/amqsget SC3TEST qmgr3
    ^C
    $ runmqsc qmgr3
    delete ql(sc3test)
    end
    
  7. Stop the queue manager.

    Perform this step in zone z3.


    $ endmqm -i qmgr3
    $ exit
    # exit
    
  8. Unmount the ZFS file systems from the other zone.

    Perform this step in the global zone.


    Vigor5# zpool export -f HAZpool1
    Vigor5# zpool export -f HAZpool2
    
  9. Halt the failover zone.

    Perform this step in the global zone.


    Vigor5# zoneadm -z z3 halt
    
  10. Unmount the SVM zonepath.

    Perform this step in the global zone.


    Vigor5# umount -f /FOZones