Sun Cluster 3.0 Data Services Installation and Configuration Guide

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

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

Run this procedure on any cluster member.

  1. Become superuser on a node in the cluster.

  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 in the failover resource group created previously.

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


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

    Specifies the LDAP application resource name.

    -y Network_resources_used=network-resource

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

    -t resource-type-name

    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. Port_list must have exactly one entry.

    -x Confdir_list=path

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

  4. Enable the resource and its monitor.


    # scswitch -e -j resource-name
    
    -e

    Enables the resource and its monitor.

    -g resource-name

    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 Sun Cluster HA for Netscape Directory Server.


Cluster Information
Node names: phys-schost-1, phys-schost-2
Logical hostname: schost-1
Resource group: lh-schost-1 (for all resources),Resources: schost-1 (logical hostname),	nsldap-1 (LDAP application resource) 
 
(Create a failover resource group.)
# scrgadm -a -g lh-schost-1 -h phys-schost-1,phys-schost-2
 
(Add a logical host name resource to the resource group.)
# scrgadm -a -L -g lh-schost-1 -l schost-1
 
(Bring the resource group online.)
# scswitch -Z -g lh-schost-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 -g lh-schost-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