Show Table of Contents
5.3. Disabling Durable Transactions
Durable transaction logging means that each LDAP update operation, comprised of a sequence of database operations in a transaction, is physically written to disk. Even though each LDAP operation can be comprised of multiple database operations, each LDAP operation is treated as a single database transation. Each LDAP operation is both atomic and durable.
Warning
Turning off durable transactions can improve Directory Server write performance at the risk of data loss.
When durable transaction logging is disabled, every directory database operation is written to the database transaction log file but may not be physically written to disk immediately. If a directory change was written to the logical database transaction log file but not physically written to disk at the time of a system crash, the change cannot be recovered. When durable transactions are disabled, the recovered database is consistent but does not reflect the results of any LDAP write operations that completed just before the system crash.
By default, durable database transaction logging is enabled. To disable durable transaction logging:
- Use the
ldapmodifycommand-line utility to add thensslapd-db-durable-transactionsattribute to thecn=config,cn=ldbm database,cn=plugins,cn=configentry, and set the value of this attribute tooff.# ldapmodify -D "cn=Directory Manager" -W -p 389 -h server.example.com -x dn: cn=config,cn=ldbm database,cn=plugins,cn=config changetype: modify add: nsslapd-db-durable-transactions nsslapd-db-durable-transactions: off
For information on the syntax of thensslapd-db-durable-transactionsattribute, see the Red Hat Directory Server Configuration, Command, and File Reference. - Restart the Directory Server.
# systemctl restart dirsrv.target

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.