Este contenido no está disponible en el idioma seleccionado.
Chapter 9. Changing the role of a replica
In a replication topology, you can change the role of replicas. If a supplier is unavailable due to a hardware outage, you can promote a consumer to a supplier. Or you can demote a supplier with low hardware resources to a consumer and later add another supplier with new hardware.
9.1. Promoting a replica using the command line Copiar enlaceEnlace copiado en el portapapeles!
Change the role of a Directory Server instance in your replication topology if required.
You can promote the following instances:
- A consumer to a hub or supplier
- A hub to a supplier
Promote a replica of the dc=example,dc=com suffix to a higher role in the replication topology.
Prerequisites
- The Directory Server instance is a member of a replication topology.
- The replica to promote is a consumer or hub.
Procedure
If the replica to promote is a hub with replication agreements, and the hub should no longer send data to other hosts after the promotion, remove the replication agreements:
List the replication agreements on the hub:
# dsconf <instance_name> repl-agmt list --suffix "dc=example,dc=com"dn: cn=example-agreement,cn=replica,cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config cn: example-agreement ...The
cnattribute contains the replication agreement name that you need in the next step.Remove the replication agreement from the hub:
# dsconf <instance_name> repl-agmt delete --suffix "dc=example,dc=com" example-agreement
Promote the instance:
If you promote a consumer or hub to a supplier, enter:
# dsconf <instance_name> replication promote --suffix "dc=example,dc=com" --newrole "supplier" --replica-id 2ImportantThe replica ID must be a unique integer value between
1and65534for a suffix across all suppliers in the topology.If you promote a consumer to a hub, enter:
# dsconf <instance_name> replication promote --suffix "dc=example,dc=com" --newrole "hub"
- If the replica in its new role should send updates to other hosts in the topology, create replication agreements.
9.2. Promoting a replica using the web console Copiar enlaceEnlace copiado en el portapapeles!
Change the role of a Directory Server instance in your replication topology if required.
You can promote the following instances:
- A consumer to a hub or supplier
- A hub to a supplier
Promote a replica of the dc=example,dc=com suffix to a higher role in the replication topology.
Prerequisites
- The Directory Server instance is a member of a replication topology.
- The replica to promote is a consumer or hub.
- You are logged in to the instance in the web console.
Procedure
If the replica to promote is a hub with replication agreements, and the hub should no longer send data to other hosts after the promotion, remove the replication agreements:
-
Navigate to
. -
Click next to the agreement you want to delete, and select
Delete Agreement.
-
Navigate to
Navigate to
, and click the button. If you promote a consumer or hub to a supplier, select
Supplier, and enter a unique replica ID.ImportantThe replica ID must be a unique integer value between
1and65534for a suffix across all suppliers in the topology.-
If you promote a consumer to a hub, select
Hub.
-
Select
Yes, I am sure. - Click .
- If the replica in its new role should send updates to other hosts in the topology, create replication agreements.
9.3. Demoting a replica using the command line Copiar enlaceEnlace copiado en el portapapeles!
Demote a supplier or hub to a consumer to reduce the role of a replica in your replication topology, for example, when decommissioning a server.
You can demote:
- A supplier or hub to a consumer
- A hub to a consumer
Demote a replica of the dc=example,dc=com suffix by following the steps below.
Prerequisites
- The Directory Server instance is a member of a replication topology.
- The replica to demote is a supplier or hub.
Procedure
If the replica to demote has replication agreements that are no longer needed, for example, because you demote the replica to a consumer, remove the replication agreements:
List the replication agreements on the replica:
# dsconf <instance_name> repl-agmt list --suffix "dc=example,dc=com"dn: cn=example-agreement,cn=replica,cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config cn: example-agreement ...The
cnattribute contains the replication agreement name that you need in the next step.Remove the replication agreement from the replica:
# dsconf <instance_name> repl-agmt delete --suffix "dc=example,dc=com" example-agreement
Demote the instance:
# dsconf <instance_name> replication demote --suffix "dc=example,dc=com" --newrole "hub_or_consumer"Depending on the role you want to configure, set the
--newroleparameter tohuborconsumer.- If you configured the replica as a hub and it should send updates to other hosts in the topology, create replication agreements.
9.4. Demoting a replica using the web console Copiar enlaceEnlace copiado en el portapapeles!
Demote a supplier or hub to a consumer to reduce the role of a replica in your replication topology, for example, when decommissioning a server.
You can demote the following servers:
- A supplier or hub to a consumer
- A hub to a consumer
Demote a replica of the dc=example,dc=com suffix by following the steps below.
Prerequisites
- The Directory Server instance is a member of a replication topology.
- The replica to demote is a supplier or hub.
- You are logged in to the instance in the web console.
Procedure
If the replica to demote has replication agreements that are no longer needed, for example, because you demote the replica to a consumer, remove the replication agreements:
-
Navigate to
. -
Click next to the agreement you want to delete, and select
Delete Agreement.
-
Navigate to
-
Navigate to
, and click button. - Select the new replica role.
-
Select
Yes, I am sure. - Click .
- If the replica in its new role should send updates to other hosts in the topology, create replication agreements.