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

Installing and Configuring N1 Grid Service Provisioning System

This section contains the procedures for installing and configuring N1 Grid Service Provisioning System components. The components are the Master Server, the Remote Agent and the Local Distributor.

Determine how N1 Grid Service Provisioning System will be deployed in the Sun Cluster

To deploy N1 Grid Service Provisioning System complete one of the following tasks:

To install and configure N1 Grid Service Provisioning System in a global zone configuration, complete the following tasks:

To install and configure N1 Grid Service Provisioning System in a zone configuration, complete the following tasks:

To install and configure N1 Grid Service Provisioning System in a failover zone configuration, complete the following tasks:

You will find installation examples for each zone type in:

ProcedureHow to enable the N1 Grid Service Provisioning System Components to run in the Global Zone

Perform these steps on one node only.

  1. Become superuser or assume a role that provides solaris.cluster.verb RBAC authorization on one of the nodes in the cluster that will host N1 Grid Service Provisioning System.

  2. Register the SUNW.HAStoragePlus and SUNW.gds resource types.

    It is assumed that the file system of the N1 Grid Service Provisioning System component will be mounted as a failover file system.


    # clresourcetype register  SUNW.gds SUNW.HAStoragePlus
    
  3. Create a failover resource group.


    # clresourcegroup create N1sps-component-resource-group
    
  4. Create a resource for the N1 Grid Service Provisioning System component Disk Storage.


    # clresource create   \
    > -g N1sps-component-resource-group   \
    > -t SUNW.HAStoragePlus  \
    > -p FilesystemMountPoints=N1sps-component-instance-mount-points \
    > N1sps-component-has-resource
    
  5. Create a resource for the N1 Grid Service Provisioning System Master component Logical Host name.


    # clreslogicalhostname   \
    > -g N1sps-component-resource-group  \
    > -h N1 Grid Service Provisioning System-logical-hostname \
    > N1sps-component-logical-hostname
    
  6. Enable the failover resource group, which now includes the N1 Grid Service Provisioning System Disk Storage and Logical Hostname resources.


    # clresourcegroup online -M N1sps-component-resource-group
    

ProcedureHow to Install the N1 Grid Service Provisioning System Components in a Global Zone

  1. Create user and group if required — If theN1 Grid Service Provisioning System is to run under a non root user, you have to create the appropriate user, and the appropriate group. For these tasks use the following commands on every node.


    # groupadd —g 1000 sps
    # useradd —u 1000 —g 1000 —d /global/sps —s /bin/ksh sps
    
  2. Install the N1 Grid Service Provisioning System components — Install the appropriate N1 Grid Service Provisioning System components on one node. Use a shared file system within Sun Cluster for the installation location.

    It is recommended that you install N1 Grid Service Provisioning System onto shared disks. For a discussion of the advantages and disadvantages of installing the software on a local versus a cluster file system, see “Determining the Location of the Application Binaries” in the Sun Cluster Data Services Installation and Configuration Guide.


    Note –

    Refer to the N1 Grid Service Provisioning System product documentation on http://docs.sun.com for instructions about installing N1 Grid Service Provisioning System. For more information about N1 Grid Service Provisioning System, refer to the docs.sun.com web page.


ProcedureHow to enable the N1 Grid Service Provisioning System Components to run in a Zone

  1. Become superuser or assume a role that provides solaris.cluster.verb RBAC authorization on one of the nodes in the cluster that will host N1 Grid Service Provisioning System.

  2. Create and boot your zone N1 Grid Service Provisioning System-zone on all the nodes to host your N1 Grid Service Provisioning System data base.

  3. Register the SUNW.HAStoragePlus and SUNW.gds resource types.

    It is assumed that the file system of the N1 Grid Service Provisioning System component will be mounted as a failover file system.


    # clresourcetype register  SUNW.gds SUNW.HAStoragePlus
    
  4. Create a failover resource group.


    # clresourcegroup create \
    >  -n node1:N1 Grid Service Provisioning System-zone,node2:N1 Grid Service Provisioning System-zone \
    > N1sps-component-resource-group
    
  5. Create a resource for the N1 Grid Service Provisioning System component Disk Storage.


    # clresource create   \
    > -g N1sps-component-resource-group   \
    > -t SUNW.HAStoragePlus  \
    > -p FilesystemMountPoints=N1sps-component-instance-mount-points \
    > N1sps-component-has-resource
    
  6. Create a resource for the N1 Grid Service Provisioning System Master component Logical Host name.


    # clreslogicalhostname   \
    > -g N1sps-component-resource-group  \
    > -h N1 Grid Service Provisioning System-logical-hostname \
    > N1sps-component-logical-hostname
    
  7. Enable the failover resource group, which now includes the N1 Grid Service Provisioning System Disk Storage and Logical Hostname resources.


    # clresourcegroup online -M N1sps-component-resource-group
    

ProcedureHow to Install the N1 Grid Service Provisioning System Components in a Zone

  1. Become superuser or assume a role that provides solaris.cluster.modify and solaris.cluster.admin RBAC authorizations.

  2. Enter the target zone


    # zlogin sps-zone
    
  3. Create user and group if required — If theN1 Grid Service Provisioning System is to run under a non root user, you have to create the appropriate user, and the appropriate group. For these tasks use the following commands on every node.


    # groupadd —g 1000 sps
    # useradd —u 1000 —g 1000 —d /global/sps —s /bin/ksh sps
    
  4. Install the N1 Grid Service Provisioning System components — Install the appropriate N1 Grid Service Provisioning System components on one node. Use a shared file system within Sun Cluster for the installation location.

    It is recommended that you install N1 Grid Service Provisioning System onto shared disks. For a discussion of the advantages and disadvantages of installing the software on a local versus a cluster file system, see “Determining the Location of the Application Binaries” in the Sun Cluster Data Services Installation and Configuration Guide.


    Note –

    Refer to the N1 Grid Service Provisioning System product documentation on http://docs.sun.com for instructions about installing N1 Grid Service Provisioning System. For more information about N1 Grid Service Provisioning System, refer to the docs.sun.com web page.

    You installed the N1 Grid Service Provisioning System onto shared storage, so installing the software on one node is sufficient.


ProcedureHow to enable the N1 Grid Service Provisioning System Components to run in a Failover Zone

  1. Become superuser or assume a role that provides solaris.cluster.verb RBAC authorization on one of the nodes in the cluster that will host N1 Grid Service Provisioning System.

  2. As superuser register the SUNW.HAStoragePlus and the SUNW.gds resource types.


    # clresourcetype register SUNW.HAStoragePlus SUNW.gds
    
  3. Create a failover resource group.


    # clresourcegroup create N1 Grid Service Provisioning System-resource-group
    
  4. Create a resource for the N1 Grid Service Provisioning System zone`s disk storage.


    # clresource create -t SUNW.HAStoragePlus \
    -p FileSystemMountPoints=N1 Grid Service Provisioning System-instance-mount-points \
    N1 Grid Service Provisioning System-has-resource
    
  5. (Optional) If you want the protection against a total adapter failure for your public network, create a resource for the N1 Grid Service Provisioning System`s logical hostname.


    # clreslogicalhostname create -g N1 Grid Service Provisioning System-resource-group \
    -h logical-hostname \
    N1 Grid Service Provisioning System-logical-hostname-resource-name
    
  6. Place the resource group in the managed state.


    # clresourcegroup online -M  N1 Grid Service Provisioning System-resource-group
    
  7. Install the zone.

    Install the zone according to the Sun Cluster HA for Solaris Containers agent documentation, assuming that the resource name is N1 Grid Service Provisioning System-zone-rs and that the zone name is N1 Grid Service Provisioning System-zone.

  8. Verify the zone's installation.


    # zoneadm -z N1 Grid Service Provisioning System-zone boot
    # zoneadm -z N1 Grid Service Provisioning System-zone halt
    
  9. Register the zone's boot component.

    1. Copy the container resource boot component configuration file.


      # cp /opt/SUNWsczone/sczbt/util/sczbt_config zones-target-configuration-file
      
    2. Use a plain text editor to set the following variables:

      RS=N1 Grid Service Provisioning System-zone-rs
      RG=N1 Grid Service Provisioning System-resource-group
      PARAMETERDIR=N1 Grid Service Provisioning System-zone-parameter-directory
      SC_NETWORK=true|false
      SC_LH=N1 Grid Service Provisioning System-logical-hostname-resource-name
      FAILOVER=true|false
      HAS_RS=N1 Grid Service Provisioning System-has-resource
      Zonename=N1 Grid Service Provisioning System-zone
      Zonebootopt=zone-boot-options
      Milestone=zone-boot-milestone
      Mounts=
    3. Create the parameter directory for your zone's resource.


      # mkdir N1 Grid Service Provisioning System-zone-parameter-directory
      
    4. Execute the Sun Cluster HA for Solaris Container's registration script.


      # /opt/SUNWsczone/sczbt/util/sczbt_register -f zones-target-configuration-file
      
    5. Enable the Solaris Container resource


      # clresource enable N1 Grid Service Provisioning System-zone-rs
      
  10. Enable the resource group.


    # clresourcegroup online  N1 Grid Service Provisioning System-resource-group
    

ProcedureHow to Install the N1 Grid Service Provisioning System Components in a Failover Zone

  1. Insure that you are on the node where your enabled your resource group.

  2. Enter the target zone


    # zlogin sps-zone
    
  3. Become superuser or assume a role that provides solaris.cluster.modify and solaris.cluster.admin RBAC authorizations.

  4. Create user and group if required — If theN1 Grid Service Provisioning System is to run under a non root user, you have to create the appropriate user, and the appropriate group. For these tasks use the following commands on every node.


    # groupadd —g 1000 sps
    # useradd —u 1000 —g 1000 —d /global/sps —s /bin/ksh sps
    
  5. Install the N1 Grid Service Provisioning System components — Install the appropriate N1 Grid Service Provisioning System components on one node. Use a shared file system within Sun Cluster for the installation location.

    It is recommended that you install N1 Grid Service Provisioning System onto shared disks. For a discussion of the advantages and disadvantages of installing the software on a local versus a cluster file system, see “Determining the Location of the Application Binaries” in the Sun Cluster Data Services Installation and Configuration Guide. In respect to the fact that the root file system of a failover zone is installed on shared storage, any directory of the root file system is sufficient.


    Note –

    Refer to the N1 Grid Service Provisioning System product documentation on http://docs.sun.com for instructions about installing N1 Grid Service Provisioning System. For more information about N1 Grid Service Provisioning System, refer to the docs.sun.com web page.

    You installed the N1 Grid Service Provisioning System in a failover zone zone on shared storage, so installing the software on one node is sufficient.