You are on page 1of 21

IBM Software Group

Replication and clustering for high availability


for IBM Lotus Domino on i5/OS

2008 IBM Corporation

This education series consists of three modules that cover backup and recovery strategies
for a Lotus Domino implementation on i5/OS. This second module focuses on using
replication and clustering for high availability.

1294623b.PPT Page 1 of 21
IBM Software Group

Illustration of Domino replication

Automatic replication
of changed data only.
Databases contain
the same information.

2
2008 IBM Corporation

In this illustration, there are two Domino servers (Domino01 and Domino02) with the
admin mail file on both servers. Domino replication sends the changes between the
servers so that both databases contain the same information. This example is used in
more detail throughout this presentation.

1294623b.PPT Page 2 of 21
IBM Software Group

Comparison of replication and clustering


Domino replication
Maintains identical copies of databases on two Domino server
instances
May be on same or different server or platform
Scheduled
Provides warm standby
Domino clustering
Maintains identical copies of databases on two Domino server
instances
May be on same or different server or platform
Automatic, real-time replication
Provides hot standby (load balancing and automatic failover for Notes
clients)

3
2008 IBM Corporation

Domino replication maintains identical copies of a database on two Domino servers.


These servers may or may not be on the same physical hardware. Replication can be
scheduled to occur automatically. It can provide a warm standby for the server.
Clustering provides real-time replication or a hot standby. It is typically used for load
balancing and automatic failover for Lotus Notes clients.

1294623b.PPT Page 3 of 21
IBM Software Group

What is Domino clustering?


A Domino cluster is a collection of two to six Domino servers which
provides high availability and workload balancing.

How does it work?


Two or more servers are selected to be in a cluster (up to six servers)
Each servers contain replica databases of the applications which are
to be clustered
If user accesses a clustered server and it is not available, Notes
opens a replica of the database on a different cluster server.
Domino continuously synchronizes databases

Clustered
Servers

4
2008 IBM Corporation

A Domino cluster is a collection of two to six Domino servers, which can provide high
availability or load balancing for your users. When dealing with a cluster, each server will
contain its own replica copy of the clustered database or application. The Domino servers
will continuously synchronize the databases.

1294623b.PPT Page 4 of 21
IBM Software Group

Requirements to deploy clustering


Domino version 6, 7 or 8 with Enterprise Service License
Connection to a high speed network using TCP/IP
Adequate disk space for replica databases
Adequate processor resources to handle additional replication
requirements (20% increase)
Domino clustering is not hardware clustering, it is application clustering
All servers in a cluster must be in the same Domino domain and share a
common Domino Directory.
A server can be a member of only one cluster at a time.

5
2008 IBM Corporation

You must purchase a Domino Enterprise Service License to configure clustering in your
environment. You will also need a high-speed network connection using TCPIP between
the clustered servers. You must ensure that you have adequate disk and processor
resources to handle the extra workload that clustering requires. Note that Domino
clustering is application clustering and not hardware clustering. Also, note that the
clustered servers must share the same Domino directory. Finally, a Domino server can
only be a member of one cluster.

1294623b.PPT Page 5 of 21
IBM Software Group

Setting up Domino clustering


Specify which servers you want add or remove from a cluster
 Configuration -> Cluster

 Create replica database on other server (if they do not already exist)
 Add Cluster Replicator and Cluster Database Directory server tasks to notes.ini of
both clustered servers
ServerTasks=Replica,Router,...,Event,CLDBDIR,CLREPL
 Restart Domino servers
 Manually replicate cldbdir.nsf between cluster servers
 Restart Domino servers again
6
2008 IBM Corporation

You can configure a new cluster from the Configuration tab of the Domino Administrator
client. From there, you can select to add a server to a cluster. This process adds the
cluster database directory (cldbdir) task and the cluster replicator (clrepl) tasks to the
server. The process will also create a cldbdir.nsf database, which you must replicate to
the other servers in the cluster. Note that only databases where replica copies exist on
both servers will have failover capabilities in the new cluster. To ease the cluster setup, it
is a good idea to create replica databases on the other server before creating the cluster.

1294623b.PPT Page 6 of 21
IBM Software Group

Setting up Domino clustering (continued)


Open the Cluster Database Directory (cldbdir.nsf) on the clustered servers
 Configuration > Cluster > Cluster Directory(6)
 Manage your replica copies and choose which databases to cluster

7
2008 IBM Corporation

After you configure your cluster, you will then specify which databases to cluster. Perform
this step by opening and editing the cldbdir.nsf database. Automatically clustered are
databases that have a replica on the other server - meaning they contain the same replica
ID on both servers.

1294623b.PPT Page 7 of 21
IBM Software Group

What really happens with clustering


Replication on steroids
When new mail is received it replicates it real-time to the replica copy in the
Domino cluster
Replication synchronizes database replica copies within the cluster
Server > Status > Server Console > Live

8
2008 IBM Corporation

In a cluster, the server sends database changes to the other server.

1294623b.PPT Page 8 of 21

IBM Software Group

Replication and clustering as a backup strategy


Advantages
Free with Domino (if you purchase an Enterprise license)
Does not require iSeries skills
Provides fault tolerance
No media to manage
No downtime

Disadvantages
Requires additional disk space
less than double if indexes are not maintained
Accidental deletions are propagated (No recovery for deleted documents)
No history or point-in-time recovery

9
2008 IBM Corporation

You should consider the advantages and disadvantages of using replication or clustering
as a backup strategy. If you already purchased an enterprise service license for Domino,
you do not need to purchase any additional software. You will also always have a hot
backup available. The disadvantage is that you need double the disk space if you want to
cluster all files. Also, deletions propagate. Thus, you should not use replication and
clustering as the exclusive backup for your environment.

1294623b.PPT Page 9 of 21
IBM Software Group

Replicating using the SAVE command

Primary server Backup or clustered server

10
2008 IBM Corporation

Using replication or clustering with the i5/OS Command Language (CL) SAVE commands
is an attractive option for some. In this way, because there is always a warm backup
available, you will not need to take the primary server down for backups.
.

1294623b.PPT Page 10 of 21
IBM Software Group

Replication and SAVE commands

Primary server

Issue
SAVE
Command

Backup Media

11
2008 IBM Corporation

When using replication with the SAVE commands, you will first replicate all of the
databases, and then end the secondary server to perform the backup.

1294623b.PPT Page 11 of 21
IBM Software Group

Replication and clustering with CL SAVEs


Advantages
No additional software
No downtime
Faster backups
Fault tolerance
Deleted documents are recoverable

Disadvantages
Requires additional disk space
Less than double if indexes are not maintained
No point-in-time recovery
Incremental and differential backups of little use
All backups are essentially "full" backups
Lots of storage

12
2008 IBM Corporation

Here are some immediate benefits of using replication and clustering with i5/OS CL SAVE
commands. It requires no additional software, no downtime of the primary server and
deleted documents are recoverable. The disadvantages include the fact that it requires
additional disk space and there is no option for incremental saves or point in time
recovery.

1294623b.PPT Page 12 of 21
IBM Software Group

Scenario: Documents accidentally deleted


Server Domino01

Documents are
Notes client accidentally
deleted on
server
Domino01s
replica
Server Domino02

13
2008 IBM Corporation

When you have replica databases in your environment, you must take special care when
recovering a database. Here is an example to help you understand what can happen.
Assume that the admin database has replica copies Domino01, Domino02 and their Lotus
Notes client. The user accidentally deletes some documents from the copy on Domino01.

1294623b.PPT Page 13 of 21
IBM Software Group

Replication occurs and deletions propagate


Server Domino01
Database on server
Domino01 replicates to
server Domino02 and
Notes client
Notes client

Server Domino02

Documents (deletions) are


propagated to replicas and
have current timestamp and
sequence number
14
2008 IBM Corporation

Since the administrator configured replication to occur automatically, the deletions


replicate to the other database copies. Now the documents have been deleted from all
three copies of the database.

1294623b.PPT Page 14 of 21
IBM Software Group

Database is recovered from backup


Server Domino01

Notes client

Server Domino02

15
2008 IBM Corporation

The administrator has been notified that the documents have been deleted and the
database has been restored from backup to server Domino01.

1294623b.PPT Page 15 of 21
IBM Software Group

Deletions replicate to recovered database


Server Domino01
Timestamp and sequence number on replicas
are newer than those on the recovered
database. The deletions are replicated" back to
recovered database.

Notes client
Server Domino01

16
2008 IBM Corporation

Because the timestamp and sequence number of the deletion is newer than the
documents in the recovered database, the documents are again deleted from the
database on Domino01.

1294623b.PPT Page 16 of 21
IBM Software Group

Solution #1: Change replica ID


If you cannot be certain that a replica exists which can overwrite the
recovered database, change the replica ID
File > Database > New Copy
ANTRID utility
Go to http://www.ibm.com/software/lotus/support and search on
"ANTRID
Download from http://www.rprsystems.com/index.php
You must distribute new replicas
Beware if a system database is involved (such as names.nsf)
Note: Purging deletion stubs may be an option if you discover the
problem before the database replicates. See technote 1095683 for
details at http://www.ibm.com/software/lotus/support/

17
2008 IBM Corporation

One option to resolve this problem is to change the replica ID of the recovered database.
You can download a utility to update the replica ID. However, this will break replication
because you must create new replicas on Domino02 and the Lotus Notes client. Thus, be
aware if a system database like names.nsf is involved. Names.nsf must replicate between
all servers in the Domino domain. If you change the replica ID of names.nsf or another
system database, you must place a new replica copy of names.nsf on all other Domino
servers in the domain. One thing to note is that if you discover the deletions before
replication occurs, it is possible to purge the deletion stubs from the affected database. In
this situation, you can follow the instructions in technote 1095683.

1294623b.PPT Page 17 of 21
IBM Software Group

Solution #2: Create database restore server

Put the database on a


different server that does
not replicate with any of the
production mail servers

A different restore server for


every Domino iSeries system
(or LPAR)
Directories for each server on the
system

18
2008 IBM Corporation

Another option to resolve this problem is to have a database restore server. The purpose
of a restore server is to have a place to restore Domino databases where replication is not
scheduled to occur. When you use a database restore server, you must open the
database on the restore server and then paste the missing documents into replica copies
of the database. You can then let the regularly scheduled replication put the documents
back on the other server and Lotus Notes client. In this example, a backup Domino server
called Backup exists. On this server, a subdirectory for each server is used as a
temporary holding place for restored databases.

1294623b.PPT Page 18 of 21
IBM Software Group

Considerations
If a replica of a database to be recovered exists on another
server:
If replicas are OK, restore database and allow replication to bring
recovered database up to date
If corruption or deletion has been propagated to replicas, they must be
recovered also or "bad" data will ruin the recovered database.
If a database is replicated to Notes or iNotes client, replicas on
clients must be deleted or replica ID must be changed if client has
delete authority.

Restoring a clustered database to an alternate server allows


database to be manipulated without risk of replication (works
for only full backups)

19
2008 IBM Corporation

In summary, care must be made when a replicated database is recovered from backup. If
you have removed the database from the server where the documents were incorrectly
modified or deleted, but the change had not replicated to the remote server you can
restore the database to the server where the problem existed and allow Notes replication
to run with no further action. However, if the deletions or problem with the database has
already replicated to other servers you need to restore the database on both the original
server and the cluster or replica server. If you do not do this, the recovered database will
be damaged. This same thought process exists for clients that have a replica databases.
If the client replica does not contain the problem, no action is needed when the server
copy is restored to the server. If the client replica is also damaged or missing documents,
a new client replica must be created to protect the server copy from getting the newest
changes back into the database. Finally, if you are going to restore the database to a
database restore server or another server that does not replicate, you can open the
restored database, copy and paste documents from it without having to consider how it
will affect your other replica databases.

1294623b.PPT Page 19 of 21
IBM Software Group

Feedback
Your feedback is valuable
You can help improve the quality of IBM Education Assistant content to better
meet your needs by providing feedback.
Did you find this module useful?

Did it help you solve a problem or answer a question?

Do you have suggestions for improvements?

Click to send e-mail feedback:


mailto:iea@us.ibm.com?subject=Feedback_about_1294623b.ppt

This module is also available in PDF format at: ../1294623b.pdf

20
2008 IBM Corporation

You can help improve the quality of IBM Education Assistant content by providing
feedback.

1294623b.PPT Page 20 of 21
IBM Software Group
Template Revision: 7/18/2005 4:30 PM

Trademarks, Copyrights, and Disclaimers


The following terms are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both:
IBM CICS IMS MQSeries Tivoli
IBM(logo) Cloudscape Informix OS/390 WebSphere
e(logo)business DB2 iSeries OS/400 xSeries
AIX DB2 Universal Database Lotus pSeries zSeries
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.
Microsoft, Windows, Windows NT, and the Windows logo are registered trademarks of Microsoft Corporation in the United States, other countries, or both.
Intel, ActionMedia, LANDesk, MMX, Pentium and ProShare are trademarks of Intel Corporation in the United States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other countries.
Linux is a registered trademark of Linus Torvalds.
Other company, product and service names may be trademarks or service marks of others.
Product data has been reviewed for accuracy as of the date of initial publication. Product data is subject to change without notice. This document could include technical inaccuracies or
typographical errors. IBM may make improvements and/or changes in the product(s) and/or program(s) described herein at any time without notice. Any statements regarding IBM's
future direction and intent are subject to change or withdrawal without notice, and represent goals and objectives only. References in this document to IBM products, programs, or
services does not imply that IBM intends to make such products, programs or services available in all countries in which IBM operates or does business. Any reference to an IBM Program
Product in this document is not intended to state or imply that only that program product may be used. Any functionally equivalent program, that does not infringe IBM's intellectual
property rights, may be used instead.
Information is provided "AS IS" without warranty of any kind. THE INFORMATION PROVIDED IN THIS DOCUMENT IS DISTRIBUTED "AS IS" WITHOUT ANY WARRANTY, EITHER
EXPRESS OR IMPLIED. IBM EXPRESSLY DISCLAIMS ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. IBM shall
have no responsibility to update this information. IBM products are warranted, if at all, according to the terms and conditions of the agreements (e.g., IBM Customer Agreement,
Statement of Limited Warranty, International Program License Agreement, etc.) under which they are provided. Information concerning non-IBM products was obtained from the suppliers
of those products, their published announcements or other publicly available sources. IBM has not tested those products in connection with this publication and cannot confirm the
accuracy of performance, compatibility or any other claims related to non-IBM products. IBM makes no representations or warranties, express or implied, regarding non-IBM products and
services.
The provision of the information contained herein is not intended to, and does not, grant any right or license under any IBM patents or copyrights. Inquiries regarding patent or copyright
licenses should be made, in writing, to:
IBM Director of Licensing
IBM Corporation
North Castle Drive
Armonk, NY 10504-1785
U.S.A.
Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. All customer examples described are presented as illustrations of
how those customers have used IBM products and the results they may have achieved. The actual throughput or performance that any user will experience will vary depending upon
considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance
can be given that an individual user will achieve throughput or performance improvements equivalent to the ratios stated here.
Copyright International Business Machines Corporation 2004,2005. All rights reserved.
Note to U.S. Government Users - Documentation related to restricted rights-Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract and IBM Corp.

21
2008 IBM Corporation

1294623b.PPT Page 21 of 21

You might also like