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的域。


你可能感兴趣的:(rh423 - 主辅同步报错:there is no replicated area "dc=server119,dc=example,dc=com" on the consumer server)