Sun Cluster Data Service for SWIFTAlliance Gateway Guide for Solaris OS

Registering and Configuring the Sun Cluster HA for SWIFTAlliance Gateway

This section contains the procedures that you need to configure Sun Cluster HA for SWIFTAlliance Gateway.

To enable Sun Cluster HA for SWIFTAlliance Gateway to make SWIFTAlliance Gateway highly available, configure the Sun Cluster HA for SWIFTAlliance Gateway data service as a failover data service.

Before you perform this procedure, ensure that the Sun Cluster HA for SWIFTAlliance Gateway data service packages are installed.

How to Register and Configure Sun Cluster HA for SWIFTAlliance Gateway as a Failover Service

Use this procedure to configure the Sun Cluster HA for SWIFTAlliance Gateway data service as a failover service.

  1. Become superuser on one of the nodes in the cluster that is the host for SWIFTAlliance Gateway.

  2. Register the SUNW.gds resource type.


    # scrgadm -a -t SUNW.gds
    
    -a

    Specifies that a new configuration is to be added.

    -t SUNW.HAStoragePlus

    Specifies that the resource is an instance of the SUNW.HAStoragePlus resource type.

  3. Register the SUNW.HAStoragePlus resource type.


    # scrgadm -a -t SUNW.HAStoragePlus
    
  4. Create the failover resource group.


    # scrgadm -a -g sag-rg
    
  5. Create a resource for the Sun Cluster Disk Storage.


    # scrgadm -a -j sag-ds-rs \
    -g sag-rg \
    -t SUNW.HAStoragePlus \
    -x FilesystemMountPoints=/swift
    
    -a

    Specifies that a new configuration is to be added.

    -j hsp-resource

    Specifies that the resource that you are creating is named hsp-resource.

    -g sag-rg

    Specifies that the resource is to be added to the SWIFTAlliance Gateway resource group.

    -t SUNW.HAStoragePlus

    Specifies that the resource is an instance of the SUNW.HAStoragePlus resource type.

    -x filesystemmountpoints=mountpoint-list

    Specifies a list of valid mount points for the file system. For more information, see the SUNW.HAStoragePlus(5) man page.

  6. Create a resource for the Sun Cluster logical hostname.


    # scrgadm -a -L -j sag-lh-rs \
    -g sag-rg \
    -l gatewayhostname
    
  7. Enable the failover resource that contains the Sun Cluster Disk Storage and the Logical hostname resources.


    # scswitch -Z -g sag-rg
    
  8. Create a resource for SWIFTAlliance Gateway.

    1. Change the user name, password, and path variable in the /opt/SUNWscsag/etc/settings.sh file.

      For information about this file, see Configuration Files and Registration Script.

    2. Change the group name, resource name and, if necessary, the port number in the /opt/SUNWscsag/util/sag_config file.

      For information about this file, see Configuration Files and Registration Script.

    3. Run the registration script to register the data service and application.

      For information about this script, see Configuration Files and Registration Script.


    # /opt/SUNWscsag/util/sag_register
    
  9. Enable the SWIFTAlliance Gateway resource.


    # scswitch -e -j sag-resource-rs
    
    -ej hsp-resource

    Specifies that the HAStoragePlus resource that you created.

Where to Go From Here

Go to Verifying the Sun Cluster HA for SWIFTAlliance Gateway Installation and Configuration.