rh423 - 主辅同步报错:there is no replicated area "dc=server119,dc=example,dc=com" on the consumer server

版本:
[root@server119 slapd-server119]# uname -a
Linux server119.example.com 2.6.18-308.el5xen #1 SMP Fri Jan 27 17:59:00 EST 2012 i686 i686 i386 GNU/Linux
[root@server119 slapd-server119]#

RHDS Version: Red Hat Directory Server 8.2.0


做rhds主辅同步时出错,在主ds(server119)的错误日志里发现如下信息:

[root@server119 slapd-server119]# pwd
/var/log/dirsrv/slapd-server119
[root@server119 slapd-server119]# tail errors
[20/Jul/2013:14:52:41 +0800] NSMMReplicationPlugin - agmt="cn=s199agree" (server219:636): Incremental update failed and requires administrator action
[20/Jul/2013:14:54:04 +0800] NSMMReplicationPlugin - agmt="cn=s199agree" (server219:636): Unable to acquire replica: there is no replicated area "dc=server119,dc=example,dc=com" on the consumer server. Replication is aborting.
[20/Jul/2013:14:54:04 +0800] NSMMReplicationPlugin - agmt="cn=s199agree" (server219:636): Unable to acquire replica: there is no replicated area "dc=server119,dc=example,dc=com" on the consumer server. Replication is aborting.
[20/Jul/2013:14:54:04 +0800] NSMMReplicationPlugin - agmt="cn=s199agree" (server219:636): Incremental update failed and requires administrator action
[20/Jul/2013:15:00:20 +0800] NSMMReplicationPlugin - agmt_delete: begin
[20/Jul/2013:15:01:33 +0800] NSMMReplicationPlugin - agmt="cn=s119rep" (server219:636): Unable to acquire replica: there is no replicated area "dc=server119,dc=example,dc=com" on the consumer server. Replication is aborting.
[20/Jul/2013:15:01:33 +0800] NSMMReplicationPlugin - agmt="cn=s119rep" (server219:636): Incremental update failed and requires administrator action
[20/Jul/2013:15:01:34 +0800] NSMMReplicationPlugin - agmt="cn=s119rep" (server219:636): Unable to acquire replica: there is no replicated area "dc=server119,dc=example,dc=com" on the consumer server. Replication is aborting.
[20/Jul/2013:15:01:34 +0800] NSMMReplicationPlugin - agmt="cn=s119rep" (server219:636): Unable to acquire replica: there is no replicated area "dc=server119,dc=example,dc=com" on the consumer server. Replication is aborting.
[20/Jul/2013:15:01:34 +0800] NSMMReplicationPlugin - agmt="cn=s119rep" (server219:636): Incremental update failed and requires administrator action
[root@server119 slapd-server119]#


后面发现原因是辅助ds的suffix/directory subtree没有和主ds一样:

出错的情况:
主ds(server119)suffix/subtree: dc=server119,dc=example,dc=com
辅ds(server219)suffix/subtree: dc=server219,dc=example,dc=com

改为以下后即可成功同步:
主ds(server119)suffix/subtree: dc=server119,dc=example,dc=com
辅ds(server219)suffix/subtree: dc=server119,dc=example,dc=com


原理其实和主辅dns的域必须相同一样,ldap server的suffix就类似与dns的域。


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值