To perform this procedure, you need the following information about your configuration:
The name of the resource type for Sun Cluster HA for Netscape Directory Server. This name is SUNW.nsldap.
The names of the cluster nodes that can master the data service.
The logical host name to be used by clients to access Sun Cluster HA for Netscape Directory Server. Normally, you set up this logical host name when you install the cluster. For details, see the section on setting up logical host names in the Sun Cluster 3.0 Installation Guide.
The path to the Netscape Directory Server application binaries that are the resources for Sun Cluster HA for Netscape Directory Server. You can install the binaries on the local disks or the cluster file system. For a discussion of the advantages and disadvantages of each location, see Chapter 1, Planning for Sun Cluster Data Services.
The port where Netscape Directory Server listens. For non-secure instances, the Port_list standard resource property for the Netscape Directory Server resource defaults to 389/tcp; the value for the secure port is 636/tcp. If you set the port to a number other than 389, you must specify that value when you configure Port_list. For instructions on setting resource properties, see Chapter 9, Administering Data Service Resources.
Run this procedure on any cluster member.
Become superuser on a node in the cluster.
Register the resource type for the data service.
# scrgadm -a -t SUNW.nsldap |
Adds the data service resource type.
Specifies the predefined resource type name.
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 |
Specifies the LDAP application resource name.
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.
Specifies the resource type to which the resource belongs, for example, SUNW.iws.
Specifies a port number and the protocol to be used, for example, 389/tcp. Port_list must have exactly one entry.
Specifies a path for your LDAP configuration directory. The Confdir_list extension property is required. Confdir_list must have exactly one entry.
Enable the resource and its monitor.
# scswitch -e -j resource-name |
Enables the resource and its monitor.
Specifies the name of the application resource being enabled.
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 |