Replacing the data for a replicating domain
About this task
In case the data for the entire replication domain, such as the backend, needs to be replaced, perform the following steps:
Steps
-
With all servers online, run
dsreplication pre-external-initializationagainst any server in the topology.Example:
$ bin/dsreplication pre-external-initialization --hostname austin01.example.com \ --port 1389 --baseDN dc=example,dc=com --adminUID admin \ --adminPassword password --no-promptResult:
Replication is stopped for the domain. No writes are made by clients to any of the servers.
-
To replace the data for
dc=example,dc=com, useimport-ldif.-
(Optional) To overwrite the existing data for the domain, use the
--overwriteExistingEntriesoption. -
(Optional) To ensure that the input LDIF is free of any replication attributes, use the
--excludeReplicationoption.Example:
In this example, you perform the
import-ldifwith the server offline using the--excludeReplicationand--overwriteExistingEntriesoptions.$ bin/import-ldif --ldifFile new-data.ldif --backendID userRoot --excludeReplication --overwriteExistingEntries
-
-
To initialize the other servers in the topology, run
dsreplication initializeusing the server that has the new data as the source host.Example:
$ bin/dsreplication initialize --hostSource austin01.example.com --portSource 1389 \ --hostDestination budapest01.example.com --portDestination 1389 \ --adminUID admin --adminPassword password --baseDN dc=example,dc=com \ --no-prompt -
From any server in the topology, run
dsreplication post-external-initializationonce.All servers in the topology must be online.
Example:
$ bin/dsreplication post-external-initialization --hostname austin01.example.com \ --port 1389 --baseDN dc=example,dc=com --adminUID admin \ --adminPassword password --no-prompt