Skip Headers

Oracle Internet Directory Administrator's Guide
Release 9.0.2

Part Number A95192-01
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

25
Failover in Cluster Configurations

This chapter contains these topics:

Introduction

Oracle Internet Directory Release 9.0.2 enables you to increase high availability by using logical hosts--as opposed to physical hosts--in clustered environments.

A logical host consists of one or more disk groups, and pairs of host names and IP addresses. It is mapped to a physical host in the cluster. This physical host impersonates the host name and IP address of the logical host.

In this paradigm, the directory server binds to the logical host, rather than the physical host. It maintains this connection even if the logical host fails over to a new physical host.

A client connects to the directory server by using the logical host name and address of the server. If the logical host fails over to a new physical host, then that failover is transparent to the client.

A logical host can reside on two or more cluster nodes that have physical access to its disk storage. A cluster can typically support any number of logical hosts, and a physical server or cluster node can impersonate more than one logical host.

This failover mechanism also supports replicated environments.

Figure 25-1 shows a sample Oracle Internet Directory configuration on a hardware cluster.

Figure 25-1 Oracle Internet Directory Configuration in a Two-Node Cluster

Text description of oidag043.gif follows
Text description of the illustration oidag043.gif

In this configuration:

Clients connect to Directory Server Instance 1 by using the host name and address of Logical Host 1. Similarly, clients connect to Directory Server Instance 2 by using the host name and address of Logical Host 2.

Configuring Failover in a Clustered Environment

This section tells you how to configure failover in a clustered environment.


Note:

At the end of Oracle Internet Directory installation, a directory server instance and the OID Monitor are started by default. To run Oracle Internet Directory on a logical host, you must stop the directory server instance and the OID Monitor, then restart them by using either of the optional flags -host or -h. Do this before any updates are made to the directory. This way, you ensure that the directory server uses the logical host name in change log generation.


It contains these topics:

Step 1: Start OID Monitor

When you start OID Monitor, use the optional host argument, and set it to the logical host name. In the following example, OID Monitor connects to the directory store, my_net_service and monitors the directory server instances on the logical host, my_host.:

oidmon [connect=my_net_service] host=my_host

Step 2: Start a Directory Server or Directory Replication Server by Using the OID Control Utility

When you start the directory server by using the OID Control utility, use either of the optional flags -host or -h, and set it to the logical host name. In the following example, the OID Control utility directs the OID Monitor to start the directory server instance on the logical host, my_host.

oidctl connect=my_net_service server=oidldapd instance=1 flags="-h my_host" 
start

Similarly, when you start a directory replication server by using the OID Control utility, use either of the optional flags -host or -h, and set it to the logical host name. In the following example, the OID Control utility directs the OID Monitor to start the directory replication server on the logical host, my_host.

oidctl connect=my_net_service server==oidrepld instance=1 flags="-h my_host" 
start


Note:

The replication agreement should use logical host names rather than physical host names.

Using logical hosts in a replicated environment requires a fresh Oracle Internet Directory installation. If you are upgrading from a replication environment earlier than release 3.0.1--in which host names in the replication agreement are different from the logical host names--then replication will not work.


Step 3: Stop, then Restart, the Directory Server and OID Monitor

To run Oracle Internet Directory on a logical host, stop the directory server instance and the OID Monitor, then restart them by using either of the optional flags -host or -h. Do this before any updates are made to the directory. This way, you ensure that the directory server uses the logical host name in change log generation.

See Also:

How Failover Works in a Clustered Environment

Figure 25-2 shows a scenario in which a failover has occurred and the directory server has been restarted.

Figure 25-2 Oracle Internet Directory Nodes After Failover

Text description of oidag044.gif follows
Text description of the illustration oidag044.gif

In Figure 25-2, Physical Node 1 fails. At that point, Logical Host 1 fails over to be mastered by Physical Node 2. After this has finished, Directory Server Instance 1 needs to be restarted--that is, OID Monitor needs to be restarted with Logical Host 1 specified as the host name.

This failover of Directory Server Instance 1 is transparent to the LDAP clients connecting to Directory Server Instance 1. These clients continue to connect to Directory Server Instance 1 by using the host name and address of Logical Host 1.

After the failover, Directory Server Instance 1 continues to use the host name of Logical Host 1 in the change log generation. The replication agreement between Directory Server Instance 1 and Directory Server Instance 2 continues as before the failover.


Go to previous page Go to next page
Oracle
Copyright © 1999, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index