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

Installing and Configuring N1 Grid Service Provisioning System Remote Agent on Shared Storage in the Global Zone

The tasks you must perform to install and configure N1 Grid Service Provisioning System Remote Agent in the global zone are as follows:

ProcedureExample: Preparing the Cluster for N1 Grid Service Provisioning System Remote Agent

  1. Install and configure the cluster as instructed in Sun Cluster Software Installation Guide for Solaris OS.

    Install the following cluster software components on both nodes.

    • Sun Cluster core software

    • Sun Cluster data service for N1 Grid Service Provisioning System

  2. Beginning on the node that owns the file system, add the sps user.


    phys-schost-1# groupadd -g 1000 sps
    phys-schost-2# groupadd -g 1000 sps
    phys-schost-1# useradd -g 1000 -d /global/mnt3/sps -m -s /bin/ksh sps
    phys-schost-2# useradd -g 1000 -d /global/mnt3/sps -m -s /bin/ksh sps
    

ProcedureExample: Configuring Cluster Resources for N1 Grid Service Provisioning System Remote Agent

  1. Register the necessary data types on one node.


    phys-schost-1# clresourcetype register SUNW.gds SUNW.HAStoragePlus
    
  2. Create the N1 Grid Service Provisioning System resource group.


    phys-schost-1# clresourcegroup create RG-SPSRA
    
  3. Create the logical host.


    phys-schost-1# clreslogicalhostname create -g RG-SPSRA ha-host-1
    
  4. Create the HAStoragePlus resource in the RG-SPSRA resource group.


    phys-schost-1# clresource create -g RG-SPSRA -t SUNW.HAStoragePlus -p AffinityOn=TRUE \
    > -p FilesystemMountPoints=/global/mnt3,/global/mnt4 RS-SPSRA-HAS
    
  5. Enable the resource group.


    phys-schost-1# clresourcegroup online -M RG-SPSRA
    

ProcedureExample: Installing the N1 Grid Service Provisioning System Remote Agent Software on Shared Storage

These steps illustrate how to install the N1 Grid Service Provisioning System software. As long as only one node is mentioned it needs to be the node where your resource group is online.

    Install the N1 Grid Service Provisioning System binaries on one node.


    phys-schost-1# cd /installation_directory
    phys-schost-1# ./cr_ra_solaris_sparc_5.2.sh
    

    Answer on the following cluster relevant questions as follows:


    • What base directory ...
      default: /opt/SUNWn1sps) [<directory>] /global/mnt3/sps
      

    • Which user will own the N1 SPS Remote Agent distribution?
      (default: n1sps) [<valid username>] sps
      

    • Which group on this machine will own the
      N1 SPS Remote Agent distribution?
      (default: n1sps) [<valid groupname>] sps
      

    • What is the hostname or IP address of the interface on which the
      Agent will run?
      (default: phys-schost-1) ha-host-1
      

    For all the other values, you can accept the defaults, or chose appropriate values. For the simplicity of this example we assume the default values of all port values.

ProcedureExample: Modifying the N1 Grid Service Provisioning System Remote Agent Configuration File

  1. Copy the N1 Grid Service Provisioning System configuration file from the agent directory to its deployment location.


    phys-schost-1# cp /opt/SUNWscsps/remoteagent/util/spsra_config /global/mnt3
    
  2. Add this cluster's information to the spsra_config configuration file.

    The following listing shows the relevant file entries and the values to assign to each entry.


    .
    .
    .
    RS=RS-SPSRA
    RG=RG-SPSRA
    PORT=8080
    LH=ha-host-1
    USER=sps
    BASE=/global/mnt3/sps/N1_Service_Provisioning_System
    HAS_RS=RS-SPSRA-HAS
    
  3. Save and close the file.

ProcedureExample: Enabling the N1 Grid Service Provisioning System Remote Agent Software to Run in the Cluster

  1. Run the spsra_register script to register the resource.


    phys-schost-1# ksh /opt/SUNWscsps/remoteagent/util/spsra_register \
    > -f /global/mnt3/spsra_config
    
  2. Enable the resource.


    phys-schost-1# clresource enable RS-SPSRA