Show Table of Contents
15.15. Moving the Replication Changelog Directory
In certain situations, you might want to change the Directory Server replication changelog directory. For example, to change the directory to
/var/lib/dirsrv/slapd-instance_name/new_changelogdb/
:
- Display the current directory:
# ldapsearch -D "cn=Directory Manager" -W -p 389 -h server.example.com -x \ -b "cn=changelog5,cn=config" nsslapd-changelogdir ... nsslapd-changelogdir: /var/lib/dirsrv/slapd-instance_name/changelogdb/
You need the displayed path in a later step to move the directory. - Set the new path:
# ldapmodify -D "cn=Directory Manager" -W -p 389 -h server.example.com -x dn: cn=changelog5,cn=config changetype: modify replace: nsslapd-changelogdir nsslapd-changelogdir: /var/lib/dirsrv/slapd-instance_name/new_changelogdb/
- Stop the Directory Server instance:
# systemctl stop dirsrv@instance_name
- Move the content of the previous directory to
/var/lib/dirsrv/slapd-instance_name/new_changelogdb/
:# mv /var/lib/dirsrv/slapd-instance_name/changelogdb/ \ /var/lib/dirsrv/slapd-instance_name/new_changelogdb/
- Delete the previous directory:
# rm /var/lib/dirsrv/slapd-instance_name/changelogdb/
- Start the Directory Server instance:
# systemctl start dirsrv@instance_name
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.