Sun Cluster 3.0 U1 Data Services Installation and Configuration Guide

Completing the Sun Cluster HA for Netscape Directory Server Configuration

This procedure describes how to use the scrgadm command to register and configure the Sun Cluster HA for Netscape Directory Server data service.


Note -

Other options also enable you to register and configure the data service. See "Tools for Data-Service Resource Administration" for details about these options.


To perform this procedure, you need the following information about your configuration.


Note -

Perform this procedure on any cluster member.


How to Complete the Sun Cluster HA for Netscape Directory Server Configuration

Perform the following steps to complete your configuration.

  1. Become superuser on a cluster member.

  2. Register the resource type for the data service.


    # scrgadm -a -t SUNW.nsldap
    
    -a

    Adds the data-service resource type.

    -t SUNW.nsldap

    Specifies the predefined resource-type name.

  3. Add the Netscape Directory Server application resource t the failover resource group that you created for your network resources.

    The resource group that contains the application resources is the same resource group that you created for your network resources in "How to Configure and Activate Network Resources".


    # scrgadm -a -j resource -g resource-group \
    -t resource-type [-y Network_resources_used=network-resource, ...] \
    -y Port_list=port-number/protocol -x Confdir_list=pathname
    
    -j resource

    Specifies the LDAP application resource name.

    -y Network_resources_ used=network-resource

    Specifies a comma-separated list of network resources (logical hostnames or shared addresses) in resource-group, which the LDAP application resource must use.

    -t resource-type

    Specifies the resource type to which the resource belongs, for example, SUNW.iws.

    -y Port_list=port-number/protocol

    Specifies a port number and the protocol to be used, for example, 389/tcp. The Port_list property must have exactly one entry.

    -x Confdir_list=pathname

    Specifies a path for your LDAP configuration directory. The Confdir_list extension property is required. The Confdir_list property must have exactly one entry.

  4. Enable the resource and its monitor.


    # scswitch -e -j resource
    
    -e

    Enables the resource and its monitor.

    -g resource

    Specifies the name of the application resource being enabled.

Example-Registering and Configuring Sun Cluster HA for Netscape Directory Server

This example shows how to register the Sun Cluster HA for Netscape Directory Server data service.


Cluster Information
Node names: phys-schost-1, phys-schost-2
Logical hostname: schost-1
Resource group: resource-group-1 (for all resources)
Resources: schost-1 (logical hostname),
	nsldap-1 (LDAP application resource) 
 
(Create a failover resource group.)
# scrgadm -a -g resource-group-1 -h phys-schost-1,phys-schost-2
 
(Add a logical hostname resource to the resource group.)
# scrgadm -a -L -g resource-group-1 -l schost-1
 
(Bring the resource group online.)
# scswitch -Z -g resource-group-1
 
(Install and configure Netscape Directory Server.)
 
(Stop the LDAP server.)
 
(Register the SUNW.nsldap resource type.)
# scrgadm -a -t SUNW.nsldap
 
(Create an LDAP resource and add it to the resource group.)
# scrgadm -a -j nsldap-1 -g resource-group-1 \
-t SUNW.nsldap -y Network_resources_used=schost-1 \
-y Port_list=389/tcp \
-x Confdir_list=/global/nsldap/slapd-schost-1
 
(Enable the application resources.)
# scswitch -e -j nsldap-1

How to Configure SUNW.HAStorage Resource Type

The SUNW.HAStorage resource type synchronizes actions between HA storage and the data service. The Sun Cluster HA for Netscape Directory Server data service is not disk-intensive and not scalable, and therefore configuring the SUNW.HAStorage resource type is optional.

See the SUNW.HAStorage(5) man page and "Relationship Between Resource Groups and Disk Device Groups" for background details. See "How to Set Up SUNW.HAStorage Resource Type for New Resources" for information about the procedure.