Chapter 4. Populating Directory Databases
108
For more information on using this Perl script, see the
Directory Server Configuration, Command,
and File Reference
.
Option
Description
-a
Defines the full path and name of the input file.
-D
Specifies the DN of the administrative user.
-w
Specifies the password of the administrative
user.
4.3.4. Restoring a Single Database
It is possible to restore a single database through the command-line, but not in the Directory Server
Console. To restore a single database, do the following:
1. Stop the Directory Server if it is running.
2
service dirsrv stop
instance
2. Restore the backend from the
/var/lib/dirsrv/slapd-
instance_name
/bak
archives with
the
bak2db
script, using the
-n
parameter to specify the database name. For example:
bak2db /var/lib/dirsrv/slapd-
instance_name
/bak/
backup_file
-n userRoot
3. Restart the Directory Server.
service dirsrv start
instance
NOTE
If the Directory Server fails to start, remove the database transaction log files in
/
var/lib/dirsrv/slapd-
instance_name
/db/log.###
, then retry starting the
server.
4.3.5. Restoring Databases That Include Replicated Entries
If a database that supplies entries to other servers is restored, then you must reinitialize all of the
servers that receive updates from the restored database (for example, consumer servers, hub servers,
and, in multi-master replication environments, other supplier servers). The changelog associated
with the restored database will be erased during the restore operation. A message will be logged to
the supplier servers' log files indicating that reinitialization is required. If a database containing data
received from a supplier server is restored, then one of two situations can occur:
• Changelog entries have not yet expired on the supplier server.
If the supplier's changelog has not expired since the database backup was taken, then restore
the local consumer and continue with normal operations. This situation occurs only if the backup
was taken within a period of time that is shorter than the value set for the maximum changelog
age attribute,
nsslapd-changelogmaxage
, in the
cn=changelog5,cn=config
entry. For
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...