Sun Cluster 3.1 Data Services Developer's Guide

Using the SunPlex Agent Builder to Create a Service Using GDS

You can use the SunPlex Agent Builder to create the service that uses the GDS. The SunPlex Agent Builder is described in more detail in Chapter 9, SunPlex Agent Builder.

Create a Service Using GDS in the SunPlex Agent Builder

Creating a Service Using GDS in the Agent Builder
  1. Start the SunPlex Agent Builder.

    # /usr/cluster/bin/scdsbuilder
  2. The SunPlex Agent Builder panel appears.

    Dialog box titled SunPlex Agent Builder that shows the main Agent Builder screen
  3. Enter the Vendor Name.

  4. Enter the Application Name.

    Note –

    The combination of Vendor and Application Name may not contain more than nine characters. It is used as the name of the package for the driving scripts.

  5. Go to the working directory.

    You can use the Browse pulldown to select the directory rather than typing the path.

  6. Select whether the data service is scalable or failover.

    You do not need to select Network Aware since that is the default when creating the GDS.

  7. Select GDS.

  8. Click the Create button to create the driving scripts.

  9. The SunPlex Agent Builder panel displays the results of the creation of the service. The Create button is grayed out and you can now use the Next button.

    Dialog box that shows the create screen after information has been entered
Configuring the Driving Scripts

After creating the driving scripts, you need to use the SunPlex Agent Builder to configure the new service.

  1. Click the Next button and the configuration panel appears.

  2. Either enter the location of the Start command or use the browse button to locate the Start command.

  3. (Optional) Enter the Stop command or use the browse button to locate the Stop command.

  4. (Optional) Enter the Probe command or use the browse button to locate the Probe command.

  5. (Optional) Specify the timeout values for the Start, Stop, and Probe commands.

  6. Click Configure to start the configuration of the driving scripts.

    Note –

    The package name will consist of a concatenation of the Vendor Name and Application Name.

    A package for driving scripts will be created and placed in:

    For example, /export/wdir/NETapp/pkg

  7. Install the completed package on all nodes of the cluster.

    # cd /export/wdir/NETapp/pkg 
    # pkgadd -d . NETapp

  8. The following files will be installed during the pkgadd:


    Note –

    The man pages and script names will correspond to the Application Name you entered above preceded by the script name; for example, startapp.

    To view the man pages, you need to specify the path to the man page. For example, to view the startapp man pages, use:

    # man -M /opt/NETapp/man startapp
  9. On one node of the cluster, configure the resources and start the application.

    # /opt/NETapp/util/startapp -h <logichostname> -p <port and protocol list>

    The arguments to the start script will vary according to the type of resource: failover or scalable. Check the customized man page or run the start script without any argument to get a usage statement.

    # /opt/NETapp/util/startapp 
     The resource name of LogicalHostname or SharedAddress must be specified. 
     For failover services: 
     Usage: startapp -h <logical host name> 
              -p <port and protocol list> 
              [-n <ipmpgroup/adapter list>] 
     For scalable services: 
     Usage: startapp  
              -h <shared address name> 
              -p <port and protocol list> 
              [-l <load balancing policy>]  
              [-n <ipmpgroup/adapter list>] 
              [-w <load balancing weights>]

Output from SunPlex Agent Builder

The SunPlex Agent Builder generates three driving scripts and a configuration file based on input you provide during package creation. The configuration file specify the names of the resource group and resource type.

The driving scripts are:

These driving scripts have the same interface and behavior as the utility scripts generated by the SunPlex Agent Builder for non-GDS-based agents. The scripts are packaged in a Solaris-installable package that can be reused across multiple clusters.

You can customize the configuration file to provide your own names for resource groups or other parameters that are normally given as inputs to the scrgadm command. If you do not customize the scripts, the SunPlex Agent Builder provides reasonable defaults for the scrgadm parameters.