1 Reply Latest reply: Jun 26, 2012 8:38 PM by handat RSS

    DSCC multi-master replication issue

    891907
      Hello All,
      I am trying to setup 2 DSCC consoles with multi-master replication enabled(cn=dscc), facing issue when I see directory server list in both dscc consoles, I see below 2 dscc instances also which should not be there(since they are ADS, should be hidden). Also the changes does not reflect immediately, takes around 30 minutes or so.
      Please note I am running 2 ADS instances on one box with port no 3998 and 4000 both are master. Seek your guidance on how to fix this issue.

           localhost:3998 (server not registered)      -      Started                -
           localhost:4000 (server not registered)      -      Started                -

      Below are the steps I carried out to setup multi-master replication-

      On instance 1

      Check the DSCC port no of instance 1
      D:\ldap_server\ds6\bin>dsadm info d:\ldap_server\var\dscc6\dcc\ads
      Instance Path: d:/ldap_server/var/dscc6/dcc/ads
      Owner: AT0094060
      Non-secure port: 3998
      Secure port: 3999
      Bit format: 32-bit
      State: Running
      Server PID: 2820
      DSCC url: -
      Windows service registration: Disabled
      Instance version: D-A00

      Enable replication-
      D:\ldap_server\ds6\bin>dsconf enable-repl -h localhost -p 3998 -e -d 10 master cn=dscc
      Enter "cn=Directory Manager" password:
      Use "dsconf create-repl-agmt" to create replication agreements on "cn=dscc".

      Setup repl agmt
      D:\ldap_server\ds6\bin>dsconf create-repl-agmt -h localhost -p 3998 -e cn=dscc localhost:4000
      Enter "cn=Directory Manager" password:
      Use "dsconf init-repl-dest cn=dscc localhost:3998" to start replication of "cn=dscc" data.

      Setup rep password
      D:\ldap_server\ds6\bin>dsconf set-server-prop -h localhost -p 3998 -D "cn=directory manager" -e def-repl-manager-pwd-file:d:\rmpassword.txt
      Enter "cn=Directory Manager" password:

      Check the password
      D:\ldap2_server\ds6\bin>dsconf get-server-prop -h localhost -p 3998 -e def-repl-manager-pwd
      Enter "cn=Directory Manager" password:
      def-repl-manager-pwd : {SSHA}g9OpeO2H57MH2Eq4xV5gbxVqHGzEG2VpdBSuIA==

      Restart ADS to read new changes
      D:\ldap_server\ds6\bin>dsadm restart d:\ldap-server\var\dscc\dcc\ads

      Check suffix prop-
      D:\ldap_server\ds6\bin>dsconf get-suffix-prop -h localhost -p 3998 -e cn=dscc
      Enter "cn=Directory Manager" password:
      all-ids-threshold : inherited (4000)
      db-name : bellatonus
      db-path : D:/ldap_server/var/dscc6/dcc/ads/db/bellatonus
      enabled : on
      entry-cache-count : unlimited
      entry-cache-size : 10M
      entry-count : 12
      moddn-enabled : inherited (off)
      parent-suffix-dn : undefined
      referral-mode : disabled
      referral-url : ldap://machine1:4000/cn%3Ddscc
      repl-accept-client-update-enabled : on
      repl-cl-max-age : 1w
      repl-cl-max-entry-count : 0
      repl-id : 10
      repl-manager-bind-dn : cn=replication manager,cn=replication,cn=config
      repl-purge-delay : 1w
      repl-rewrite-referrals-enabled : off
      repl-role : master
      require-index-enabled : off

      Run accord-
      D:\ldap_server\ds6\bin>dsconf accord-repl-agmt -h localhost -p 3998 -e cn=dscc localhost:4000

      To test replication manager password use-
      ldapsearch -h localhost -p 3998 -D "cn=replication manager,cn=replication,cn=config" -q -b "" -s base objectclass=*namingContexts
      Please enter bind password:

      check the replication status
      D:\ldap2_server\ds6\bin>dsconf show-repl-agmt-status -h localhost -p 3998 -e cn=dscc localhost:4000
      Enter "cn=Directory Manager" password:
      Configuration Status : OK
      Authentication Status : OK
      Initialization Status : OK
      Status : Enabled
      Last Update Date : Jun 13, 2012 4:04:22 PM


      On instance 2

      Check the DSCC port no-
      D:\ldap_server\ds6\bin>dsadm info d:\ldap2_server\var\dscc6\dcc\ads
      Instance Path: d:/ldap2_server/var/dscc6/dcc/ads
      Owner: AT0094060
      Non-secure port: 4000
      Secure port: 4001
      Bit format: 32-bit
      State: Running
      Server PID: 4264
      DSCC url: -
      Windows service registration: Disabled
      Instance version: D-A00

      Enable replication
      D:\ldap_server\ds6\bin>dsconf enable-repl -h localhost -p 4000 -e -d 10 master cn=dscc
      Enter "cn=Directory Manager" password:
      Use "dsconf create-repl-agmt" to create replication agreements
      on "cn=dscc".

      Setup repl agmt
      D:\ldap_server\ds6\bin>dsconf create-repl-agmt -h localhost -p 4000 -e cn=dscc localhost:3998
      Enter "cn=Directory Manager" password:
      Use "dsconf init-repl-dest cn=dscc localhost:3998" to start replication of "cn=dscc" data.

      Setup repl password
      D:\ldap_server\ds6\bin>dsconf set-server-prop -h localhost -p 4000 -D "cn=directory manager" -e def-repl-manager-pwd-file:d:\rmpassword.txt
      Enter "cn=Directory Manager" password:

      Check the password
      D:\ldap2_server\ds6\bin>dsconf get-server-prop -h localhost -p 4000 -e def-repl-manager-pwd
      Enter "cn=Directory Manager" password:
      def-repl-manager-pwd : {SSHA}g9OpeO2H57MH2Eq4xV5gbxVqHGzEG2VpdBSuIA==

      Restart ADS
      D:\ldap_server\ds6\bin>dsadm restart d:\ldap2-server\var\dscc\dcc\ads

      test replication manager password with
      ldapsearch -h localhost -p 4000 -D "cn=replication manager,cn=replication,cn=config" -q -b "" -s base objectclass=*namingContexts
      Please enter bind password:

      D:\ldap2_server\ds6\bin>dsconf get-suffix-prop -h localhost -p 4000 -e cn=dscc
      Enter "cn=Directory Manager" password:
      all-ids-threshold : inherited (4000)
      db-name : bellatonus
      db-path : D:/ldap2_server/var/dscc6/dcc/ads/db/bellatonus
      enabled : on
      entry-cache-count : unlimited
      entry-cache-size : 10M
      entry-count : 12
      moddn-enabled : inherited (off)
      parent-suffix-dn : undefined
      referral-mode : disabled
      referral-url : ldap://machine1:3998/cn%3Ddscc
      repl-accept-client-update-enabled : on
      repl-cl-max-age : 1w
      repl-cl-max-entry-count : 0
      repl-id : 20
      repl-manager-bind-dn : cn=replication manager,cn=replication,cn=config
      repl-purge-delay : 1w
      repl-rewrite-referrals-enabled : off
      repl-role : master
      require-index-enabled : off

      Initialize ADS2 from ADS1 using the replication agreement:
      dsconf init-repl-dest -e -i -h localhost -p 3998 cn=dscc localhost:4000

      Delete
      Check the replication status
      D:\ldap2_server\ds6\bin>dsconf show-repl-agmt-status -h localhost -p 4000 -e cn=dscc localhost:3998
      Enter "cn=Directory Manager" password:
      Configuration Status : OK
      Authentication Status : OK
      Initialization Status : OK
      Status : Enabled
      Last Update Date : Jun 13, 2012 4:07:36 PM

      Run insync
      D:\ldap2_server\ds6\bin>insync -D "cn=directory manager" -j d:\dmpw.txt -s localhost:3998 -c localhost:4000 20
      ReplicaDn Consumer Supplier Delay
      cn=dscc localhost:4000 localhost:3998 0
      cn=dscc localhost:4000 localhost:3998 0
      cn=dscc localhost:4000 localhost:3998 0
      ^C
      D:\ldap_server\ds6\bin>insync -D "cn=directory manager" -j d:\dmpw.txt -s localhost:4000 -c localhost:3998 20
      ReplicaDn Consumer Supplier Delay
      cn=dscc localhost:3998 localhost:4000 0
      cn=dscc localhost:3998 localhost:4000 0
      cn=dscc localhost:3998 localhost:4000 0