HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

5. Confirm that the database should be deleted in the Delete Database dialog box.
2.3.2.3 Configuring transaction logs for frequent database updates
When the server is going to be asked to perform frequent database updates (LDAP adds, modifies,
replication), the database transaction log files should be configured to be on a different disk than
the primary database files.
Storing the transaction log files on a separate physical disk improves performance because the
disk heads do not thrash moving between the log files and the data files.
1. Stop the Directory Server instance.
/opt/dirsrv/slapd-instance_name/stop-slapd
2. Create the new directory, if necessary, where the transaction logs will be located.
mkdir /home/exampledb-txnlogs
3. Set the appropriate file permissions on the directory so that the Directory Server user can
access it; the default Directory Server user and group are www:other.
chown www:other /home/exampledb-txnlogs
4. Edit the /etc/opt/dirsrv/slapd-instance_name/dse.ldif file, and change the
nsslapd-db-logdirectory directive for the new log file path:
nsslapd-db-logdirectory: /home/exampledb-txnlogs
This attribute goes on the same entry that has the nsslapd-dbcachesize attributesize.
5. Remove all the __db.* files from the /var/opt/dirsrv/slapd-instance_name/db directory.
6. Move the log.* files from the /var/opt/dirsrv/slapd-instance_name/db directory to the
new location.
7. Start the Directory Server instance again.
/opt/dirsrv/slapd-instance_name/start-slapd
46 Configuring Directory Databases