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/
:
- Display the current path to the changelog and set the new path:
- Using the command line:
- Display the current directory:
ldapsearch -D "cn=Directory Manager" -W -p 389 -h server.example.com -x \ -b "cn=changelog5,cn=config" nsslapd-changelogdir
# 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 Copied! Toggle word wrap Toggle overflow You need the displayed path in a later step to move the directory. - Set the new path:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Using the web console:
- Open the Directory Server user interface in the web console. See Section 1.4, “Logging Into Directory Server Using the Web Console”.
- Select the instance.
- Open themenu, and select the entry.
- Click Show Advanced Settings.
- Identify the current path in the Changelog Location field. You need the displayed path in a later step to move the directory.
- Set the new path in the Changelog Location field.
- Click.
- Stop the Directory Server instance:
dsctl instance_name stop
# dsctl instance_name stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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/
# mv /var/lib/dirsrv/slapd-instance_name/changelogdb/ \ /var/lib/dirsrv/slapd-instance_name/new_changelogdb/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Delete the previous directory:
rm /var/lib/dirsrv/slapd-instance_name/changelogdb/
# rm /var/lib/dirsrv/slapd-instance_name/changelogdb/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Start the Directory Server instance:
dsctl instance_name start
# dsctl instance_name start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow