Настройка репликации между двумя серверами
Настройка репликации между двумя серверами
./dsreplication status -h 188.72.66.139 -p 4444 --adminUID admin --adminPassword demis
Configuring Large Replication Topologies
To configure a dedicated directory server, use the --noReplicationServer1 or --noReplicationServer2 option when you enable replication between two directory servers. This example configures replication between the directory server instances A and B in the previous illustration.
$ dsreplication enable \ --host1 host1 --port1 4444 --bindDN1 "cn=Directory Manager" \ --bindPassword1 password --replicationPort1 8989 \ --host2 host2 --port2 4444 --bindDN2 "cn=Directory Manager" \ --bindPassword2 password --noReplicationServer2 \ --adminUID admin --adminPassword password --baseDN "dc=example,dc=com" -X -n
To configure a dedicated replication server, use the --onlyReplicationServer1 or --onlyReplicationServer2 option when you enable replication between two servers. This example configures replication between Directory Server C and Replication Server 2 in the previous illustration.
$ dsreplication enable \ --host1 host3 --port1 4444 --bindDN1 "cn=Directory Manager" \ --bindPassword1 password --noReplicationServer1 \ --host2 host4 --port2 4444 --bindDN2 "cn=Directory Manager" \ --bindPassword2 password --onlyReplicationServer2 \ --replicationPort2 8989 --adminUID admin --adminPassword password \ --baseDN "dc=example,dc=com" -X -n
Specifying the Schema Source
When you configure replication with the dsreplication enable command, you can specify that the schema of the second directory server be used to initialize the schema of the first server. If you do not specify an option, the schema of the first directory server is used by default.
In the following example, the data of host1 is used to initialize host2 but the schema of host2 is used to initialize the schema on host1:
$ dsreplication enable --host1 host1 --port1 4444 --bindDN1 "cn=Directory Manager" \
--bindPassword1 password --replicationPort1 8989 --host2 host2 --port2 4444 \
--bindDN2 "cn=Directory Manager" --bindPassword2 password --replicationPort2 8990 \
--adminUID admin --adminPassword password --baseDN "dc=example,dc=com" \
--useSecondServerAsSchemaSource -X
When you configure replication with the dsreplication enable command, you can specify that the schema of the second directory server be used to initialize the schema of the first server. If you do not specify an option, the schema of the first directory server is used by default.
In the following example, the data of host1 is used to initialize host2 but the schema of host2 is used to initialize the schema on host1:
$ dsreplication enable --host1 host1 --port1 4444 --bindDN1 "cn=Directory Manager" \ --bindPassword1 password --replicationPort1 8989 --host2 host2 --port2 4444 \ --bindDN2 "cn=Directory Manager" --bindPassword2 password --replicationPort2 8990 \ --adminUID admin --adminPassword password --baseDN "dc=example,dc=com" \ --useSecondServerAsSchemaSource -X
Large replication topologies
he new arguments for the enable subcommand are:
The two new arguments for the disable subcommand are:
There is a new configuration argument:
Configuring Large Replication Topologies