4.4. Database Files
Each Directory Server instance contains the /var/lib/dirsrv/slapd- directory for storing all of the database files. The following is a sample listing of the instance_name/db/var/lib/dirsrv/slapd- directory contents.
instance_name/db
__db.001 __db.003 __db.005 NetscapeRoot/ __db.002 __db.004 DBVERSION log.0000000007 userRoot/
db.00x files — Used internally by the database and should not be moved, deleted, or modified in any way.
log.xxxxxxxxxx files — Used to store the transaction logs per database.
DBVERSION — Used for storing the version of the database.
NetscapeRoot — Stores the o=NetscapeRoot database created by default when the setup-ds-admin.pl script is run.
userRoot — Stores the user-defined suffix (user-defined databases) created at setup; for example, dc=example,dc=com.
If a new database is created (for example, testRoot) to store the directory tree under a new suffix, the directory named testRoot also appears in the /var/lib/dirsrv/slapd- directory.
instance_name/db
The following is a sample listing of the NetscapeRoot directory contents.
./ 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_namedb4 file for every index currently defined in the database. In addition to these files, the NetscapeRoot and userRoot subdirectories contain the following files:
ancestorid.db4 — Contains a list of IDs to find the ID of the entry's ancestor.
entrydn.db4 — Contains a list of full DNs to find any ID.
id2entry.db4 — Contains the actual directory database entries. All other database files can be recreated from this one, if necessary.
nsuniqueid.db4 — Contains a list of unique IDs to find any ID.
numsubordinates.db4 — Contains IDs that have child entries.
objectclass.db4 — Contains a list of IDs which have a particular object class.
parentid.db4 — Contains a list of IDs to find the ID of the parent.