Adding or Deleting an Application Directory Partition Replica
The first replica of an application directory partition is created on the domain controller that was bound to it at creation time. Additional replicas can be created on any domain controller in the forest, not necessarily in the same domain as the initial domain controller. An application directory partition replica can only exist on a domain controller that is running Windows Server 2003 or later. For more information, see this TechNet article on Partition Management.
To add a replica for an application directory partition, perform the following steps
- Search the Partitions container for a crossRef object that has an nCName attribute value that is equal to the distinguished name of the application directory partition.
- Bind to the crossRef object with delegation enabled. This is required because the crossRef object can only be modified on the Domain-Naming FSMO role holder. With delegation enabled, the domain controller can contact the Domain-Naming FSMO role holder using the same credentials.
- Add the distinguished name of the nTDSDSA object for the domain controller that will host the new replica to the msDS-NC-Replica-Locations attribute of the crossRef object.
When the new msDS-NC-Replica-Locations attribute value is replicated to the new domain controller that will host a replica of the application directory partition, the KCC will be triggered to replicate the application directory partition to the target domain controller.
To remove a replica for an application directory partition, perform the same steps above to locate the crossRef object that represents the application directory partition and remove the value that corresponds to the domain controller from the msDS-NC-Replica-Locations attribute of the crossRef object.
When the new msDS-NC-Replica-Locations attribute value is replicated to the domain controller that will no longer host a replica of the application directory partition, the KCC will be triggered to remove the replica of the application directory partition on the target domain controller.
If a domain controller that is hosting an application directory partition replica is removed or demoted, the Active Directory server will automatically remove the value corresponding to the domain controller from the msDS-NC-Replica-Locations attribute of all crossRef objects.