Using the command line
You can issue the provided commands to promote a replica server at the command line.
About this task
To promote a replica server to a master you must first
create an ldif record as shown below. In the ldif record, you must
ensure that the value of the attribute ibm-replicaServerId is
the same as the server ID of the replica or consumer server. This
value can be obtained from the ibmslapd.conf file of the replica
or by issuing a rootDSE search against the replica. Then, issue an
ldapadd command as shown below to add this to the replica/consumer.
ldapadd -h <ldaphost> -p <port> -D cn=root -w root -f promote.ldif -k
where promote.ldif file contains :
dn: cn=<any_name>,ibm-replicaGroup=default,o=sample
objectclass: top
objectclass: ibm-replicaSubentry
ibm-replicaServerId: <server ID of replica or consumer server>
ibm-replicationServerIsMaster: true
cn: master
description: master serverAfter promoting
a replica to master if you want to demote it again, you must remove
the previously added entry.