To perform this procedure, you need the following information about your configuration.
The names of the cluster nodes that can master the data service.
The network resource that clients use to access Sun Cluster HA for iPlanet Directory Server. Normally, you set up this hostname when you install the cluster. See the Sun Cluster 3.0 12/01 Concepts document for details on network resources.
Perform this procedure on any cluster member.
Become superuser on a cluster member.
Verify that all of the 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 12/01 Software Installation Guide for details.
To avoid any failures because of name service lookup, ensure that all of the logical hostnames and shared addresses are present in the /etc/hosts file on all of the 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.
Create a failover resource group to hold the network and application resources.
# scrgadm -a -g resource-group [-h nodelist] |
Specifies the name of the resource group. This name can be your choice.
Specifies an optional comma-separated list of physical node names or iPlanet Directory Server that identify potential masters. The order here determines the order in which the nodes are considered as primary during failover.
Use the -h option to specify the order of the node list. If all of the nodes in the cluster are potential masters, you do not need to use the -h option.
Add network resources to the resource group.
For example, run the following command to add a logical hostname to a resource group.
# scrgadm -a -L -g resource-group -l hostname, ...[-n netiflist] |
Specifies that a network resource is being added.
Specifies the name of the resource group.
Specifies a comma-separated list of network resources.
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 the netiflist. If you do not specify this option, the scrgadm(1M) command attempts to discover a net adapter on the subnet that the hostname list identifies for each node in nodelist. For example, -n nafo0@nodename, nafo0@nodename2.
Verify that all of the network resources 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 12/01 Software Installation Guide for details.
Run the scswitch command to enable the resource group and bring the resource group online.
# scswitch -Z -g resource-group |
Moves the resource group to the managed state, and brings the resource group online.
Specifies the name of the resource group.
After you configure and activate the network resources, go to "Installing and Configuring iPlanet Directory Server".