Sun Cluster Data Service for Sun Grid Engine Guide for Solaris OS

Registering and Configuring Sun Cluster HA for Sun Grid Engine

Before you perform this procedure, ensure that the Sun Cluster HA for Sun Grid Engine data service packages are installed.

Use the configuration and registration files in the /opt/SUNWscsge/util directory to register the Sun Cluster HA for Sun Grid Engine resources. The files define the dependencies that are required between Sun Grid Engine components. For information about these dependencies, see Dependencies Between Sun Grid Engine Components. For a listing of these files, see Appendix A, Files for Configuring and Removing Sun Cluster HA for Sun Grid Engine Resources.

Registering and configuring Sun Cluster HA for Sun Grid Engine involves the tasks that are explained in the following sections:

  1. Specifying Configuration Parameters for Sun Cluster HA for Sun Grid Engine Resources

  2. How to Create and Enable Sun Cluster HA for Sun Grid Engine Resources

Specifying Configuration Parameters for Sun Cluster HA for Sun Grid Engine Resources

Sun Cluster HA for Sun Grid Engine provides scripts that automate the process of configuring and removing Sun Cluster HA for Sun Grid Engine resources. These scripts obtain configuration parameters from the sge_config file in the /opt/SUNWscsge/util/ directory. To specify configuration parameters for Sun Cluster HA for Sun Grid Engine resources, edit the sge_config file.

Each configuration parameter in the sge_config file is defined as a keyword-value pair. The sge_config file already contains the required keywords and equals signs. For more information, see Listing of sge_config. When you edit the sge_config file, add the required value to each keyword. Use the values that you identified in Configuration Planning Questions.

The keyword-value pairs in the sge_config file are as follows:

COMMDRS=sge-commd-rs
QMASTERRS=sge-qmaster-rs
SCHEDDRS=sge-schedd-rs
RG=sge-rg
LH=sge-lh-rs
SGE_ROOT=sge-root-dir
SGE_CELL=cell-name
PORT=portno
USE_INTERNAL_DEP=FALSE|TRUE

The meaning and permitted values of the keywords in the sge_config file are as follows:

COMMDRSS=sge-commd-rs

Specifies the name that you are assigning to the resource for the Sun Grid Engine communications daemon sge_commd.

QMASTERRS=sge-qmaster-rs

Specifies the name that you are assigning to the resource for the Sun Grid Engine queue master daemon sge_qmaster.

SCHEDDRS=sge-schedd-rs

Specifies the name that you are assigning to the resource for the Sun Grid Engine scheduling daemon sge_schedd.

RG=sge-rg

Specifies the name of the resource group that contains the Sun Cluster HA for Sun Grid Engine resources. This name must be the name that you assigned when you created the resource group as explained in How to Enable Sun Grid Engine to Run in a Cluster.

LH=sge-lh-rs

Specifies the name of the logical host name resource for Sun Grid Engine. This name must be the name that you assigned when you created the resource in How to Enable Sun Grid Engine to Run in a Cluster.

SGE_ROOT=sge-root-dir

Specifies the root directory of the Sun Grid Engine file system. This directory must be the directory that you created for root of the Sun Grid Engine file system in Preparing the Nodes and Disks.

SGE_CELL=cell-name

Specifies the cell that Sun Grid Engine references.

PORT=portno

The port number is ignored. You can specify any integer for PORT. In the sge_config file, PORT is preset to 1234.

USE_INTERNAL_DEP=FALSE|TRUE

Specifies whether dependencies are to be set between resource groups. The possible values for this keyword are as follows:

FALSE

Specifies that dependencies are not to be set between resource groups.

TRUE

Specifies that dependencies are to be set between resource groups.

In the sge_config file, USE_INTERNAL_DEP is preset to FALSE.


Example 1–3 Sample sge_config File

This example shows an sge_config file in which configuration parameters are set as follows:

COMMDRS=sge_commd-rs
QMASTERRS=sge_qmaster-rs
SCHEDDRS=sge_schedd-rs
RG=sge-rg
LH=sge-lh-rs 
SGE_ROOT=/global/gridmaster
SGE_CELL=default
PORT=1234
USE_INTERNAL_DEP=FALSE

How to Create and Enable Sun Cluster HA for Sun Grid Engine Resources

Before you begin, ensure that you have edited the sge_config file to specify configuration parameters for Sun Cluster HA for Sun Grid Engine resources. For more information, see Specifying Configuration Parameters for Sun Cluster HA for Sun Grid Engine Resources.

  1. Register the SUNW.gds resource type.


    # scrgadm -a -t SUNW.gds
    
  2. Go to the directory that contains the script for creating the Sun Grid Engine resources.


    # cd /opt/SUNWscsge/util/
    
  3. Run the script that creates the Sun Grid Engine resources.


    # ./sge_register
    
  4. Bring online the failover resource group that you created in How to Enable Sun Grid Engine to Run in a Cluster.

    This resource group contains the following resources:

    • Logical host name resource

    • HAStoragePlus resource

    • NFS resource

    • Sun Grid Engine application resources


    # scswitch -Z -g sge-rg
    
    -g sge-rg

    Specifies the resource group that you created in How to Enable Sun Grid Engine to Run in a Cluster is to be brought online

Setting Sun Cluster HA for Sun Grid Engine Extension Properties

Extension properties for Sun Cluster HA for Sun Grid Engine resources are set when you run the script that creates these resources. You need to set these properties only if you require values other than the values that are set by the script. For information about Sun Cluster HA for Sun Grid Engine extension properties, see the SUNW.gds(5) man page. You can update some extension properties dynamically. You can update other properties, however, only when you create or disable a resource. The Tunable entry indicates when you can update a property.

To update an extension property of a resource, run the scrgadm(1M) command with the following option to modify the resource:


-x property=value 
-x property

Identifies the extension property that you are setting

value

Specifies the value to which you are setting the extension property

You can also use the procedures in “Administering Data Service Resources” in Sun Cluster Data Services Planning and Administration Guide for Solaris OS to configure resources after the resources are created.