Manually Replicating Directory Partitions: Difference between revisions
From SambaWiki
Mmuehlfeld (talk | contribs) (Add an initial page for 'samba-tool drs replicate') |
Mmuehlfeld (talk | contribs) (Rewrote documentation) |
||
Line 1: | Line 1: | ||
In some situations, it is necessary to manually force a replication between two domain controllers (DC). You need to run the replication for every Active Directory (AD) partition separately. |
|||
= Introduction = |
|||
To replicate the AD partitions from the domain controller "DC1" to "DC2", run: |
|||
For various reason it would be necessary to force the Directory to replicate. |
|||
= How to use = |
|||
Examples, that start the replication of the different AD partitions from DC1 to DC2: |
|||
# samba-tool drs replicate DC2 DC1 dc=samdom,dc=example,dc=com |
# samba-tool drs replicate DC2 DC1 dc=samdom,dc=example,dc=com |
||
Line 25: | Line 17: | ||
# samba-tool drs replicate DC2 DC1 CN=Schema,CN=Configuration,DC=samdom,DC=example,DC=com |
# samba-tool drs replicate DC2 DC1 CN=Schema,CN=Configuration,DC=samdom,DC=example,DC=com |
||
Replicate from DC1 to DC2 was successful. |
Replicate from DC1 to DC2 was successful. |
||
To resyncronise all objects between two domain controllers, pass the "--full-sync" option to the command. |
Revision as of 12:33, 4 September 2016
In some situations, it is necessary to manually force a replication between two domain controllers (DC). You need to run the replication for every Active Directory (AD) partition separately.
To replicate the AD partitions from the domain controller "DC1" to "DC2", run:
# samba-tool drs replicate DC2 DC1 dc=samdom,dc=example,dc=com Replicate from DC1 to DC2 was successful. # samba-tool drs replicate DC2 DC1 DC=ForestDnsZones,DC=samdom,DC=example,DC=com Replicate from DC1 to DC2 was successful. # samba-tool drs replicate DC2 DC1 CN=Configuration,DC=samdom,DC=example,DC=com Replicate from DC1 to DC2 was successful. # samba-tool drs replicate DC2 DC1 DC=DomainDnsZones,DC=samdom,DC=example,DC=com Replicate from DC1 to DC2 was successful. # samba-tool drs replicate DC2 DC1 CN=Schema,CN=Configuration,DC=samdom,DC=example,DC=com Replicate from DC1 to DC2 was successful.
To resyncronise all objects between two domain controllers, pass the "--full-sync" option to the command.