March 30, 2018 at 12:04 pm #21359miky7Participant
I’m trying to create a simple replication with 2 opendj
I followed the guide and I executed these commands:
./dsreplication \ enable \ --adminUID admin \ --adminPassword pass \ --baseDN dc=persons,dc=example,dc=com \ --host1 opendj.first.com \ --port1 4444 \ --bindDN1 "cn=Directory Manager" \ --bindPassword1 pass \ --noReplicationServer1 \ --host2 opendj.second.com \ --port2 4444 \ --bindDN2 "cn=Directory Manager" \ --bindPassword2 pass \ --replicationPort2 8989 \ --onlyReplicationServer2 \ --trustAll \ --no-prompt
./dsreplication \ initialize-all \ --adminUID admin \ --adminPassword ciao \ --baseDN dc=persons,dc=example,dc=com \ --hostname opendj.first.com \ --port 4444 \ --trustAll \ --no-prompt
But It doesn’t work.
The port for replication is only on one of the opendjs.
Does anyone have any suggestions to give me?
Thanks a lot!!March 30, 2018 at 12:54 pm #21360JnRouvignacParticipant
It is unclear to me what you are trying to setup.
You wrote you want “1 master” and “1 slave”.
But do you want both of these to be a combined Directory Server (a.k.a DS, i.e. a data server, i.e. a replica) and Replication Server (a.k.a RS)?
The following command is creating the first node as a DS only (
--noReplicationServer1) and the second one as a RS only (
–adminUID admin \
–adminPassword pass \
–baseDN dc=persons,dc=example,dc=com \
–host1 opendj.first.com \
–port1 4444 \
–bindDN1 “cn=Directory Manager” \
–bindPassword1 pass \
–host2 opendj.second.com \
–port2 4444 \
–bindDN2 “cn=Directory Manager” \
–bindPassword2 pass \
–replicationPort2 8989 \
The next command (
dsreplication initialize-all) only works between nodes which are acting as Directory Servers.
Side-note: there is no such thing as master/slave with ForgeRock Directory Services. There is only one supported mode: multi-master. See https://en.wikipedia.org/wiki/Multi-master_replicationMarch 30, 2018 at 3:07 pm #21361LudoModerator
Jean-Noel is right, you enable replication as multi-master, but you can set a backend in read-only mode (so it receives the replication updates but reject any client direct update).
https://backstage.forgerock.com/docs/ds/5.5/admin-guide/#read-only-replApril 4, 2018 at 11:59 am #21380miky7Participant
thank you everyone for the answers!!
You must be logged in to reply to this topic.