Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

15.17. 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/:
  1. Display the current path to the changelog and set the new path:
    • Using the command line:
      1. 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/
        Copy to Clipboard Toggle word wrap
        You need the displayed path in a later step to move the directory.
      2. 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/
        Copy to Clipboard Toggle word wrap
    • Using the web console:
      1. Open the Directory Server user interface in the web console. See Section 1.4, “Logging Into Directory Server Using the Web Console”.
      2. Select the instance.
      3. Open the Replication menu, and select the Replication Changelog entry.
      4. Click Show Advanced Settings.
      5. Identify the current path in the Changelog Location field. You need the displayed path in a later step to move the directory.
      6. Set the new path in the Changelog Location field.
      7. Click Save.
  2. Stop the Directory Server instance:
    # dsctl instance_name stop
    Copy to Clipboard Toggle word wrap
  3. 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/
    Copy to Clipboard Toggle word wrap
  4. Delete the previous directory:
    # rm /var/lib/dirsrv/slapd-instance_name/changelogdb/
    Copy to Clipboard Toggle word wrap
  5. Start the Directory Server instance:
    # dsctl instance_name start
    Copy to Clipboard Toggle word wrap
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat