2
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
4
<!--See the file LICENSE for redistribution information.-->
7
<title>Berkeley DB Reference Guide: Initializing a new site</title>
8
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
12
<table width="100%"><tr valign=top>
13
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Berkeley DB Replication</dl></h3></td>
14
<td align=right><a href="../../ref/rep/newsite.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/rep/elect.html"><img src="../../images/next.gif" alt="Next"></a>
17
<h1 align=center>Initializing a new site</h1>
18
<p>Perform the following steps to add a new site to the replication
21
<p><li>Do an archival backup of the master's environment, as described in
22
<a href="../../ref/transapp/archival.html">Database and log file
23
archival</a>. The backup can either be a conventional backup or a hot
25
<p><li>Copy the archival backup into a clean environment directory on the
27
<p><li>Run catastrophic recovery on the client's new environment, as described
28
in <a href="../../ref/transapp/recovery.html">Recovery procedures</a>.
29
<p><li>Reconfigure and reopen the environment as a client member of the
32
<p>If copying the backup to the client takes a long time relative to the
33
frequency with which log files are reclaimed using the
34
<a href="../../utility/db_archive.html">db_archive</a> utility or the <a href="../../api_c/log_archive.html">DB_ENV->log_archive</a> method, it may be
35
necessary to suppress log reclamation until the newly restarted client
36
has "caught up" and applied all log records generated during its
38
<p>As with any Berkeley DB application, the database environment must be in a
39
consistent state at application startup. This is most easily assured
40
by running recovery at startup time in one thread or process; it is
41
harmless to do this on both clients and masters even when not strictly
43
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/rep/newsite.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/rep/elect.html"><img src="../../images/next.gif" alt="Next"></a>
45
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>