Repadmin /Add Command Fails with Error 8445 on Global Catalog Server (315562)



The information in this article applies to:

  • Microsoft Windows 2000 Server

This article was previously published under Q315562

SYMPTOMS

When you use the Repadmin tool to manually add a replication link for a read-only naming context on a domain controller, and that domain controller is a global catalog server, the repadmin /add command fails with error 8445 (ERROR_DS_DRA_BAD_INSTANCE_TYPE).

Note: Repadmin is available under Support Tools on the Windows 2000 Server CD-ROM.

CAUSE

This issue occurs if you do not use the /readonly option when you run the repadmin /add command.

RESOLUTION

To resolve this issue, make sure that you specify the /readonly option when you run the repadmin /add command.

MORE INFORMATION

Note: Microsoft recommends that you manually add replication links only under certain conditions -- for example, when a connection object cannot be created by the Knowledge Consistency Checker (KCC).

Each domain controller has only one read/write domain naming context (a naming context [NC] is equivalent to a directory partition). A global catalog server also has read-only domain naming contexts for all other domains in the forest. Although the repadmin /add command defaults to a read/write connection, the connection type must match the type of the destination partition. Therefore, when you add a replication link to a read-only partition on a global catalog server, you must specify the /readonly option.

The following example shows repadmin /add results under different conditions:

repadmin /add dc=root,dc=com vm-child2-dc1.child2.root.com 8771e5e7-10c7-4278-b8e3-2f697784d23f._msdcs.root.com
DsReplicaAdd failed with status 8440 (0x20f8) = ERROR_DS_DRA_BAD_NC

The vm-child2-dc1.child2.root.com domain controller is in the child2.root.com child domain. When the domain controller is not a global catalog server and you add a replication link for another domain partition (in this case, the forest-root domain naming context dc=root,dc=com), this returns ERROR_DS_DRA_BAD_NC.

If the server is also a global catalog server, and /readonly is not specified, ERROR_DS_DRA_BAD_INSTANCE_TYPE is returned when you add the replication link, as follows:

repadmin /add dc=root,dc=com vm-child2-dc1.child2.root.com 8771e5e7-10c7-4278-b8e3-2f697784d23f._msdcs.root.com
DsReplicaAdd failed with status 8445 (0x20fd) = ERROR_DS_DRA_BAD_INSTANCE_TYPE

The operation succeeds if /readonly is specified:

repadmin /add dc=root,dc=com vm-child2-dc1.child2.root.com 8771e5e7-10c7-4278-b8e3-2f697784d23f._msdcs.root.com /readonly One-way replication from source:8771e5e7-10c7-4278-b8e3-2f697784d23f._msdcs.root .com to dest:vm-child2-dc1.child2.root.com established.


Modification Type:MinorLast Reviewed:5/23/2003
Keywords:kbprb KB315562 kbAudITPRO