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

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