Sun Cluster 3.0 U1 Data Services Installation and Configuration Guide

Chapter 4 Installing and Configuring Sun Cluster HA for Netscape Directory Server

This chapter describes the procedures for installing and configuring the Sun Cluster HA for Netscape Directory Server data service. This data service was formerly known as Sun Cluster HA for Netscape LDAP. Some error messages from the application might still use the name Netscape LDAP, but they refer to Netscape Directory Server (NDS).

This chapter contains the following procedures.

You must configure the Sun Cluster HA for Netscape Directory Server data service as a failover service. See Chapter 1, Planning for Sun Cluster Data Services and the Sun Cluster 3.0 U1 Concepts document for general information about data services, resource groups, resources, and other related topics.


Note -

You can use SunPlex Manager to install and configure this data service. See the SunPlex Manager online help for details.


Planning the Installation and Configuration

Use this section in conjunction with the worksheets in the Sun Cluster 3.0 U1 Release Notes as a checklist before installation and configuration.

Consider the following points prior to starting your installation.

Installing and Configuring Sun Cluster HA for Netscape Directory Server

The following table lists the sections that describe the installation and configuration tasks.

Table 4-1 Task Map: Installing and Configuring Sun Cluster HA for Netscape Directory Server

Task 

For Instructions, Go To 

Configure and activate network resources 

"How to Configure and Activate Network Resources"

Install and configure Netscape Directory Server 

"Installing and Configuring Netscape Directory Server"

Install the Sun Cluster HA for Netscape Directory Server-data service packages 

"Installing Sun Cluster HA for Netscape Directory Server Packages"

Configure application resources and start the Sun Cluster HA for Netscape Directory Server data service 

"Completing the Sun Cluster HA for Netscape Directory Server Configuration"

Configure resource extension properties 

"Configuring Sun Cluster HA for Netscape Directory Server Extension Properties"


Note -

If you are running multiple data services in your Sun Cluster configuration, you can set up the data services in any order, with the following exception. If you use the Sun Cluster HA for DNS data service, you must set up the Sun Cluster HA for DNS data service before you set up Netscape Directory Server. See Chapter 6, Installing and Configuring Sun Cluster HA for Domain Name Service (DNS) for details. DNS software is included in the Solaris operating environment. If the cluster is to obtain the DNS service from another server, configure the cluster to be a DNS client first.



Note -

After installation, use only the cluster administration command scswitch(1M) to manually start and stop Netscape Directory Server. See the man page for details. After Netscape Directory Server is started, the Sun Cluster software controls it.


Configuring and Activating Network Resources

Before you install and configure Netscape Directory Server, set up the network resources that the server will attempt to use after the server has been installed and configured. To configure and activate the network resources, use the following command-line procedure.

How to Configure and Activate Network Resources

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


Note -

Perform this procedure on any cluster member.


  1. Become superuser on a cluster member.

  2. Verify that all network addresses that you use have been added to your name-service database.

    You should have performed this verification during the Sun Cluster installation. See the planning chapter in the Sun Cluster 3.0 U1 Installation Guide for details.


    Note -

    To avoid any failures because of name-service lookup, ensure that all logical hostnames and shared addresses are present in the /etc/hosts file on all cluster nodes. Configure name-service mapping in the /etc/nsswitch.conf file on the servers to first check the local files before trying to access NIS, NIS+, or DNS.


  3. Create a failover resource group to hold the network and application resources.


    # scrgadm -a -g resource-group [-h nodelist]
    -g resource-group

    Specifies the name of the resource group. This name can be your choice.

    -h nodelist

    Specifies an optional comma-separated list of physical node names or IDs that identify potential masters. The order here determines the order in which the nodes are considered as primary during failover.


    Note -

    Use the -h option to specify the order of the node list. If all the nodes in the cluster are potential masters, you need not use the -h option.


  4. Add logical-hostname resources to the resource group.


    # scrgadm -a -L -g resource-group -l hostname, ...[-n netiflist]
    -L

    Specifies that a logical-hostname resource is being added.

    -g resource-group

    Specifies the name of the resource group.

    -l hostname, ...

    Specifies a comma-separated list of logical hostnames.

    -n netiflist

    Specifies an optional comma-separated list that identifies the NAFO groups on each node. All the nodes in nodelist of the resource group must be represented in netiflist. If you do not specify this option, scrgadm(1M) attempts to discover a net adapter on the subnet that the hostname list identifies for each node in nodelist.

  5. Verify that all logical hostnames that you use have been added to your name-service database.

    You should have performed this verification during the Sun Cluster installation. See the planning chapter in the Sun Cluster 3.0 U1 Installation Guide for details.

  6. Run the scswitch command to enable the resource group and bring the resource group online.


    # scswitch -Z -g resource-group
    
    -Z

    Moves the resource group to the managed state, and brings the resource group online.

    -g resource-group

    Specifies the name of the resource group.

Where to Go From Here

After you configure and activate the network resources, go to "Installing and Configuring Netscape Directory Server".

Installing and Configuring Netscape Directory Server

The Sun Cluster HA for Netscape Directory Server data service is the Netscape Directory Server that uses Netscape Lightweight Directory Access Protocol (LDAP) and runs under the control of the Sun Cluster software. This section describes the steps to install Netscape Directory Server (using the setup command) and enable Netscape Directory Server to run as the Sun Cluster HA for Netscape Directory Server data service.

Netscape Directory Server requires some variation from the default installation parameters. When you install and configure Netscape Directory Server, consider the following points.


Note -

Do not remove or relocate any of the installed files or directories that the Netscape Directory Server installation places on the cluster file system. For example, do not relocate any of the client binaries, such as ldapsearch, that are installed along with the rest of the Netscape Directory Server software.


How to Install Netscape Directory Server

This procedure describes the interaction with the Netscape setup command. Only the sections that are specific to the Sun Cluster HA for Netscape Directory Server data service are included here. For the other sections, choose or change the default values as appropriate. This procedure includes only basic steps. See the Netscape LDAP documentation for details.

  1. Become superuser on a cluster member.

  2. Run the setup command from the install directory on the Netscape CD.

  3. From setup, choose the menu items to install a Netscape Server with a Custom Installation.

    Supply the logical hostname when the setup command prompts you for the full server name.

  4. For the install location, select a location on the global file system, for example, /global/nsldap.

    Supply the logical hostname when the setup command prompts you for the full server name. This step is required for failover to work correctly.


    Note -

    The logical host that you specify must be online on the node from which you run the Netscape Directory Server installation. This state is necessary because at the end of the Netscape Directory Server installation, Netscape Directory Server automatically starts and will fail if the logical host is offline on that node.


  5. Select the logical hostname along with your domain for the computer name, for example, schost-1.eng.sun.com.

  6. When prompted for the IP address to be used as the LDAP Administrative Server, specify an IP address for one of the cluster nodes.

As part of the installation, you set up an LDAP Administrative Server. The IP address that you specify for this server must be that of a physical cluster node, not the name of the logical host that will fail over.

How to Configure Netscape Directory Server

Where to Go From Here

If you have not installed the data-service packages for Netscape Directory Server from the Sun Cluster Agents CD, go to "Installing Sun Cluster HA for Netscape Directory Server Packages". If you have installed the packages, go to "Completing the Sun Cluster HA for Netscape Directory Server Configuration".

Installing Sun Cluster HA for Netscape Directory Server Packages

You can use the scinstall(1M) utility to install SUNWscnsl, the Sun Cluster HA for Netscape Directory Server data-service package, on a cluster. Do not use the -s option to non-interactive scinstall to install all data service packages on the CD.

If you installed the data-service packages during your initial Sun Cluster installation, proceed to "Completing the Sun Cluster HA for Netscape Directory Server Configuration". Otherwise, use the following procedure to install the SUNWscnsl package now.

How to Install Sun Cluster HA for Netscape Directory Server Packages

You need the Sun Cluster Agents CD to complete this procedure. Run this procedure on all cluster members that can master the Sun Cluster HA for Netscape Directory Server data service.

  1. Load the Agents CD into the CD-ROM drive.

  2. Run the scinstall utility with no options.

    This step starts the scinstall utility in interactive mode.

  3. Select the Add Support for New Data Service to This Cluster Node menu option.

    This option enables you to load software for any data services that exist on the CD.

  4. Exit the scinstall utility.

  5. Unload the CD from the drive.

Where to Go From Here

See "Completing the Sun Cluster HA for Netscape Directory Server Configuration" to register the Sun Cluster HA for Netscape Directory Server data service and to configure the cluster for the data service.

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.

Configuring Sun Cluster HA for Netscape Directory Server Extension Properties

This section describes how to configure the Sun Cluster HA for Netscape Directory Server extension properties. Typically, you use the command line scrgadm -x parameter=value to configure extension properties when you create the Netscape Directory Server resource. You can also use the procedures that Chapter 11, Administering Data-Service Resources describes to configure them later.

See Appendix A, Standard Properties for details on all Sun Cluster properties.

Table 4-2 describes the extension properties that you can configure for Netscape Directory Server. The only required extension property for creating a Netscape Directory Server resource is the Confdir_list property, which specifies a directory in which the Netscape Directory Server configuration files reside. You can update some extension properties dynamically. You can update others, however, only when you create the resource. The Tunable column of the following table indicates when you can update each property.

Table 4-2 Sun Cluster HA for Netscape Directory Server Extension Properties

Name/Data Type 

Default 

Range 

Tunable 

Description 

Confdir_list (string array)

None 

None 

At creation 

A path name that points to the server root, including the slapd-hostname subdirectory where the start-slapd and stop-slapd scripts reside. The Sun Cluster HA for Netscape Directory Server data service requires this extension property, and the property must have one entry only. If Netscape Directory Server is in secure mode, then the path name must also contain a file named keypass, which contains the secure key password needed to start this instance.

Monitor_retry_count (integer)

4

0 - 2,147,483,641

 

-1 indicates an infinite number of retry attempts.

Any time 

The number of times the process monitor facility (PMF) restarts the fault monitor during the time window that the Monitor_retry_interval property specifies. Note that this property refers to restarts of the fault monitor itself rather than to the resource. The system-defined properties Retry_interval and Retry_count control restarts of the resource.

Monitor_retry_interval (integer)

2

0 - 2,147,483,641

 

-1 indicates an infinite retry interval.

Any time 

The time (in minutes) over which failures of the fault monitor are counted. If the number of times the fault monitor fails exceeds the value specified in the extension property Monitor_retry_count within this period, the PMF cannot restart the fault monitor.

Probe_timeout (integer)

30

0 - 2,147,483,641

Any time 

The time-out value (in seconds) that the fault monitor uses to probe a Netscape Directory Server instance. 

Sun Cluster HA for Netscape Directory Server Fault Monitor

The probe for the Sun Cluster HA for Netscape Directory Server data service accesses particular IP addresses and port numbers. The IP addresses are from network resources that the Network_resources_used property lists. The Port_list resource property lists the port. See Appendix A, Standard Properties for descriptions of these properties.

The fault monitor determines whether the Sun Cluster HA for Netscape Directory Server instance is secure or non-secure. The monitor probes secure and non-secure directory servers differently. If the keyword "security" is not found in the configuration file (slapd.conf), or the setting security off is found, then the instance is determined to be non-secure. Otherwise, the instance is determined to be secure.

The probe for a secure instance consists of a simple TCP connect. If the connect succeeds, the probe is successful. Secure connect failure or timeout is interpreted as complete failure.

The probe for an insecure instance depends on running the ldapsearch executable provided with the Sun Cluster HA for Netscape Directory Server data service. The search filter that is used is intended to always find something. The probe detects partial and complete failures. The following conditions are considered partial failures. All other conditions are interpreted as complete failures.