![]() |
Configuration,
Command, and File Reference Netscape Directory Server |
| Previous |
Contents |
Index |
DocHome | Next |
This chapter provides an overview of the files that are specific to an instance of Netscape Directory Server (Directory Server) -- the files stored under the serverRoot/slapd-serverID directory. Having an overview of the files and configuration information stored in each instance of Directory Server should help you understand the file changes or absence of file changes which occur in the course of directory activity. It should also help you to detect errors and intrusion by indicating what kind of changes to expect and, as a result, what changes are considered abnormal.
This chapter contains the following sections:
Directory Server files and command-line scripts are stored under this directory:
The only exception is the migrateInstance7 script, which is stored under this directory:
Code
Example 4-1 shows the
contents of the
serverRoot/slapd-serverID directory, where directories are
marked with a
/ and scripts are marked with an
*
. See chapter 8,
"Command-Line Scripts,"
for further information on command-line scripts.
Code
Example 4-1 Contents
of the
serverRoot/slapd-serverID directory
|
|
||
| ./ | db2ldif* | ns-inactivate.pl* |
| ../ | db2ldif.pl* | restart-slapd* |
| bak/ | getpwenc* | restoreconfig* |
| bak2db* | ldif/ | saveconfig* |
| bak2db.pl* | ldif2db* | start-slapd* |
| conf_bk/ | ldif2db.pl* | stop-slapd* |
| confbak/ | ldif2ldap* | suffix2instance* |
| config/ | locks/ | tmp/ |
| db/ | logs/ | vlvindex* |
| db2bak* | monitor* | |
| db2bak.pl* | ns-accountstatus.pl* | |
| db2index.pl* | ns-activate.pl* | |
|
|
||
Each Directory Server instance contains the following three directories for storing backup-related files:
Each Directory Server instance contains the following directory for storing configuration files:
Each Directory Server
instance contains the
db directory for storing all the database
files. Code Example 4-2
shows a sample listing of the
db directory contents.
Code
Example 4-2 Contents
of sample db directory
|
|
|||
| ./ | __db.002 | __db.005 | NetscapeRoot/ |
| ../ | __db.003 | DBVERSION | userRoot/ |
| __db.001 | __db.004 | log.0000000017 | |
|
|
|||
Code
Example 4-3 shows a sample
listing of the
NetscapeRoot directory contents.
Code
Example 4-3 Contents
of a sample NetscapeRoot subdirectory
|
|
||
| ./ | entrydn.db4* | parentid.db4* |
| ../ | givenName.db4* | sn.db4* |
| DBVERSION* | id2entry.db4* | uid.db4* |
| aci.db4* | nsUniqueId.db4* | uniquemember.db4* |
| ancestorid.db4* | numsubordinates.db4* | |
| cn.db4* | objectclass.db4* | |
|
|
||
The NetscapeRoot subdirectories contain an index_name.db4 file for every index currently defined in the database, where index_name is the name of the index. In addition to these index_name.db4 files, the Netscape and userRoot subdirectories contain the following files:
Each Directory Server
instance contains the ldif
directory for storing ldif-related
files. Code Example 4-4
shows a sample listing of the ldif
directory contents.
Code Example 4-4
Contents
of a sample ldif directory
|
|
|||
| ../ | European.ldif | Example.ldif | Example-roles.ldif |
|
|
|||
The following list describes the content of each of the ldif files:
Each Directory Server
instance contains a
locks
directory for storing
lock-related files. Code Example 4-5 shows a
sample listing of the locks
directory contents.
Code
Example 4-5 Contents
of a sample locks directory
|
|
||||
| ./ | ../ | exports/ | imports/ | server/ |
|
|
||||
The lock mechanisms
stored under the locks
subdirectories
exports,
imports, and
server prevent multiple, simultaneous operations conflicting
with
each other. The lock mechanisms allow for one server instance to run at
a time, with possible multiple export jobs. They also permit one
ldif2db import operation at a time (not
ldif2db.pl since you can run multiple ldif2db.pl
operations at any time) to the exclusion of all export
and
slapd server operations.
If you get error messages indicating that the lock table is out of available locks ([26/Oct/2001:17:44:25 0200] - libdb: Lock table is out of available locks), set the value of the nsslapd-db-locks attribute in the cn=config,cn=ldbm database,cn=plugins,cn=config entry to twice its current number. For example, if the current number is 10000, set it to 20000. If the problem persists, double the number again. You can also monitor the current and maximum number of locks by doing a search on cn=database,cn=monitor,cn=ldbm database, cn=plugins,cn=config. An example of the command is given below.
ldapsearch -h hostname -p port -b"cn=database,cn=monitor,cn=ldbm database, cn=plugins,cn=config" -D "cn=directory manager" -w password objectclass=* | grep -- -locks: )
For more information on using LDAP utilities, see the Netscape Directory Server Administrator's Guide.
Each Directory Server
instance contains a logs directory for
storing log-related files. Code
Example 4-6 shows a sample listing of the
logs directory contents.
Code
Example 4-6 Contents
of a sample logs directory
|
|
|||
| ./ | access.20010126-120123 | audit | errors.rotationinfo |
| ../ | access.20010130-140221 | audit.rotationinfo | pid |
| access | access.20010201-100122 | errors
|
slapd.stats |
| access.20010124-180611 | access.rotationinfo | errors.20010124-180607 | |
|
|
|||
The following list describes the content of the log-related files:
| Previous |
Contents |
Index |
DocHome | Next |