4.5 LDIF files

The LDIF files exported by db2ldif or db2ldif.pl scripts in the instance directory are stored in /var/opt/dirsrv/slapd-instance_name/ldif.

4.6 Lock files

Each Directory Server instance contains a /var/opt/dirsrv/slapd-instance_name/lockdirectory for storing lock-related files. The following is a sample listing of the locks directory contents.

Example 4-3 Lock directory contents

exports/ imports/ server/

The lock mechanisms stored in the exports, imports, and server subdirectories prevent multiple, simultaneous operations from 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, because multiple ldif2db.pl operations can be run at any time) to the exclusion of all export and slapd server operations.

If there are error messages indicating that the lock table is out of available locks (for example, libdb: Lock table is out of available locks), double the value of the nsslapd-db-locks attribute in the cn=config,cn=ldbm database,cn=plugins,cn=config entry.

For example, if the current value is 10000, set it to 20000. If the problem persists, double the number again. To monitor the current and maximum number of locks, do a search on

cn=database, cn=monitor, cn=ldbm database, cn=plugins, cn=config. For example:

#ldapsearch -h localhost -p 389 \

-D "cn=directory manager" -w password

-b "cn=database,cn=monitor,cn=ldbm database, cn=plugins,cn=config" objectclass=* grep -- -locks: )

For more information on using LDAP utilities, see the HP-UX Directory Server administrator guide.

4.7 Log files

Each Directory Server instance contains a /var/opt/dirsrv/slapd-instance_name/logdirectory for storing log files. The following is a sample listing of the log directory contents.

Example 4-4 Log directory contents

access

access.20090228-171925

errors

access.20090221-162824

access.rotationinfo

errors.20090221-162824

access.20090223-171949

audit

errors.rotationinfo

access.20090227-171818

audit.rotationinfo

slapd.stats

 

 

 

The contents of the access, audit, and error log files depend on the log configuration.

The slapd.stats file is a memory-mapped file which cannot be read by an editor. It contains data collected by the Directory Server SNMP data collection component. This data is read by the SNMP subagent in response to SNMP attribute queries and is communicated to the SNMP master agent responsible for handling Directory Server SNMP requests.

4.8PID files

slapd-server_instance.pidand slapd-server_instance.startpidfiles are created in the /var/opt/dirsrv/slapd-instance_name/rundirectory when the server is up and running. Both files store the server's process ID.

4.5 LDIF files 171