Sun Cluster Data Service for N1 Grid Service Provisioning System for Solaris OS

How to Register and Configure Sun Cluster HA for N1 Service Provisioning System Remote Agent as a failover data service

This procedure assumes that you installed the data service packages.

If you did not install the Sun Cluster HA for N1 Service Provisioning System packages, go to Installing the Sun Cluster HA for N1 Grid Service Provisioning System Packages.

  1. Become superuser on one of the nodes in the cluster that will host N1 Grid Service Provisioning System Remote Agent.

  2. Register the SUNW.gds resource type.


    # scrgadm -a -t SUNW.gds
    
  3. Configure the registration scripts for each required N1 Grid Service Provisioning System Remote Agents instance.


    # cd /opt/SUNWscsps/remoteagent/util
    # cp spsra_config desired place
    # cp spsra_register desired place
    

    Edit the spsra_config file and follow the comments within that file. For example:


    #
    # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
    # Use is subject to license terms.
    #
    # This file will be sourced in by spsra_register and the parameters
    # listed below will be used.
    #
    # These parameters can be customized in (key=value) form
    #
    #        RS - name of the resource for the application
    #        RG - name of the resource group containing RS
    #      PORT - name of the port number to satisfy GDS registration
    #        LH - name of the LogicalHostname SC resource
    #      USER - name of the owner of the remote agent
    #      BASE - name of the direcotry where the N1 Service Provisioning Server
    #             is installed
    #    HAS_RS - name of the HAStoragePlus SC resource
    #
    
    RS=
    RG=
    PORT=
    LH=
    USER=
    BASE=
    HAS_RS=

    The following is an example for the N1 Grid Service Provisioning System 4.1 Remote Agent.


    RS=N1spsra-res
    RG=N1spsra-rg
    PORT=22
    LH=N1spsra-lh
    USER=sps
    BASE=/global/sps/N1_Service_Provisioning_System
    HAS_RS=N1spsra-hastplus-res
    

    The PORT variable is needed to satisfy the requirements of the generic data service.

  4. After editing spsra_config register the resource.


    # ./spsra_register
    Registration of resource N1spsra-rs succeeded
    Validate resource N1spsra-rs in resourcegroup N1spsra-rg
    Validation of resource N1spsra-rs succeeded
  5. Enable each N1 Grid Service Provisioning System Remote Agent resource.


    # scstat -g
    

    # scswitch -e -j N1spsra-resource
    

Repeat Step 3 to Step 6 for each N1 Grid Service Provisioning System Remote Agent instance you need.