Sun Directory Server Enterprise Edition 6.3三个实例实现主主复制

linux操作系统上已安装了三个 LDAP 实例,分别是 489589689 端口。下面可实现三个示例的主主复制。

初始化方向是:489->589,589->689

 

步骤一:
使用以下命令看是否已经配置了允许LDAP 实例主主复制,
# /ldap/install/ds6/bin/dsconf   list-suffixes -p  4 89 -v   
# /ldap/install/ds6/bin/dsconf  enable-repl -h  localhost  -p  4 89 -d  4 891 master dc=zju,dc=edu,dc=cn
# /ldap/install/ds6/bin/dsconf   list-suffixes -p  4 89 -v
步骤三:
LDAP 实例修改复制管理器的密码:
# echo replmanager > pwd.txt
# cat pwd.txt
# /ldap/install/ds6/bin/dsconf  set-server-prop -h  localhost  -p  4 89 def-repl-manager-pwd-file:pwd.txt
步骤五:
为每个LDAP 实例创建复制协议:
# /ldap/install/ds6/bin/dsconf  list-repl-agmts -h localhost -p  4 89 -v dc=zju,dc=edu,dc=cn
# /ldap/install/ds6/bin/dsconf  create-repl-agmt -h  localhost  -p  4 89 dc=zju,dc=edu,dc=cn  localhost : 5 89
# /ldap/install/ds6/bin/dsconf  list-repl-agmts -h localhost -p 389 -v dc=zju,dc=edu,dc=cn
步骤七:
初始化LDAP 实例的复制协议:
# /ldap/install/ds6/bin/dsconf  show-repl-agmt-status -h  localhost  -p  4 89 dc=zju,dc=edu,dc=cn   localhost : 5 89
# /ldap/install/ds6/bin/dsconf  init-repl-dest -h  localhost  -p  4 89 dc=zju,dc=edu,dc=cn  localhost : 5 89

上面的命令运行后, 机器 localhost 上的 5 89实例将被初始化跟   localhost 4 89实例一样
# /ldap/install/ds6/bin/dsconf  show-repl-agmt-status -h  localhost  -p  4 89 dc=zju,dc=edu,dc=cn  localhost : 5 89

步骤二:

# /ldap/install/ds6/bin/dsconf   list-suffixes -p  5 89 -v  

# /ldap/install/ds6/bin/dsconf  enable-repl -h  localhost  -p  5 89 -d  5891  master dc=zju,dc=edu,dc=cn  
# /ldap/install/ds6/bin/dsconf   list-suffixes -p  5 89 -v  
步骤四:

# echo replmanager > pwd.txt  
# cat pwd.txt  
# /ldap/install/ds6/bin/dsconf  set-server-prop -h  localhost  -p  5 89 def-repl-manager-pwd-file:pwd.txt  
步骤六:

# /ldap/install/ds6/bin/dsconf  list-repl-agmts -h localhost -p  5 89 -v dc=zju,dc=edu,dc=cn  
# /ldap/install/ds6/bin/dsconf  create-repl-agmt -h  localhost  -p  5 89 dc=zju,dc=edu,dc=cn  localhost : 4 89  
# /ldap/install/ds6/bin/dsconf  list-repl-agmts -h localhost -p  5 89 -v dc=zju,dc=edu,dc=cn  
步骤八:

 

# /ldap/install/ds6/bin/dsconf  show-repl-agmt-status -h  localhost  -p  5 89 dc=zju,dc=edu,dc=cn  localhost : 4 89  


 

 

 

# /ldap/install/ds6/bin/dsconf  show-repl-agmt-status -h  localhost  -p  5 89 dc=zju,dc=edu,dc=cn
localhost : 4 89

步骤 十一
为每个LDAP 实例创建复制协议:
# /ldap/install/ds6/bin/dsconf  list-repl-agmts -h localhost -p  589  -v dc=zju,dc=edu,dc=cn
# /ldap/install/ds6/bin/dsconf  create-repl-agmt -h  localhost  -p  589  dc=zju,dc=edu,dc=cn  localhost : 689
# /ldap/install/ds6/bin/dsconf  list-repl-agmts -h localhost -p  5 89 -v dc=zju,dc=edu,dc=cn
步骤 十三
初始化LDAP 实例的复制协议:
# /ldap/install/ds6/bin/dsconf  show-repl-agmt-status -h  localhost  -p  589  dc=zju,dc=edu,dc=cn   localhost : 689
# /ldap/install/ds6/bin/dsconf  init-repl-dest -h  localhost  -p  589  dc=zju,dc=edu,dc=cn  localhost : 689

上面的命令运行后, 机器 localhost 上的 6 89实例将被初始化跟   localhost 5 89实例一样
# /ldap/install/ds6/bin/dsconf  show-repl-agmt-status -h  localhost  -p  589  dc=zju,dc=edu,dc=cn  localhost : 689

步骤

# /ldap/install/ds6/bin/dsconf   list-suffixes -p  689  -v  

# /ldap/install/ds6/bin/dsconf  enable-repl -h  localhost  -p  689  -d  6891  master dc=zju,dc=edu,dc=cn  
# /ldap/install/ds6/bin/dsconf   list-suffixes -p  689  -v  
步骤

# echo replmanager > pwd.txt  
# cat pwd.txt  
# /ldap/install/ds6/bin/dsconf  set-server-prop -h  localhost  -p  689  def-repl-manager-pwd-file:pwd.txt  
步骤 十二

# /ldap/install/ds6/bin/dsconf  list-repl-agmts -h localhost -p  689  -v dc=zju,dc=edu,dc=cn  
# /ldap/install/ds6/bin/dsconf  create-repl-agmt -h  localhost  -p  689  dc=zju,dc=edu,dc=cn  localhost : 589  
# /ldap/install/ds6/bin/dsconf  list-repl-agmts -h localhost -p  689  -v dc=zju,dc=edu,dc=cn  
步骤 十四

 

# /ldap/install/ds6/bin/dsconf  show-repl-agmt-status -h  localhost  -p  689  dc=zju,dc=edu,dc=cn  localhost : 589  

 

 

 

 

# /ldap/install/ds6/bin/dsconf  show-repl-agmt-status -h  localhost  -p  689  dc=zju,dc=edu,dc=cn
localhost : 589

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值