SUN ONE LDAP的replication备份配置

一、Master Replica配置

安装配置完SUN ONE LDAP 5.2之后,正常启动,在configuration界面下,有先前配置好的LDAP地址:

例如:zzcatv191.zzcatv.com.cn:389

下拉选项中有DATA项

下拉后有你已经设置好的Directory Server的名字

例如:dc=zzcatv dc=com dc=cn或者o=zzcatv等

下拉之后有Replication(Disable)

点击选择再点击右边菜单中的Enable replication

三个选项可选:

Consumer Replica(Data below this suffix cannot be modified by LDAP clients

Data changes are not logged and cannot be replicated to other servers这个后缀下的数据不能被LDAP客户端修改,更改过的数据不会留下日志,也不能复制到其它服务器)

Master Replica(Data below this suffix can be modified by LDAP clients

Data changes are logged and may be replicated to other servers这个后缀下的数据可以被LDAP客户端修改,更改过的数据可以留下日志,并能复制到其它服务器)

Hub Replica(Data below this suffix cannot be modified by LDAP clients

Data changes are logged and may be replicated to other servers这个后缀下的数据不能被LDAP客户端修改,更改过的数据可以留下日志,并能复制到其它服务器)

这里设置成Master Replica

创建密码:

Assign an ID to this Master replica ( )    ----这里随便设置一个数字就可以,作为它的标识

完成之后见提示:

Replication is now enabled on “o=zzcatv”

This suffix is a master replica

Data changes in this suffix are now logged

You now have to specify the list of servers to which you want to replicate the changes

使得Replication(Enable)

 

在右侧菜单中选择Defined replication agreement中的NEW,添加Consumer Replica

Send updates to点选other

填写HOST与PORT

设置Authentication,

Connect using simple authentication

自动形成一个DN:cn=replication manager ,cn=replication ,cn=config

设置authentication密码

 

Master Replica配置完成

由于Consumer Replica没有配置,所以提示如下:

Could not connect to remote server

The provided host and port could be invalid or the server may be down

Do you want to continue?

不用管它,continue便是。

 

Replication Tab of Data Configuration

Windows 版的log在这个路径下:

C:\Program\Sun\MPS\slapd-zzcatv191/changelogdb

 

 

二、Consumer Replica配置

Consumer Replica的配置也是基本如此:

安装配置完SUN ONE LDAP 5.2之后,正常启动,在configuration界面下,有先前配置好的LDAP地址:

例如:zzcatv191.zzcatv.com.cn:389

下拉选项中有DATA项

下拉后有你已经设置好的Directory Server的名字

例如:dc=zzcatv dc=com dc=cn或者o=zzcatv等

下拉之后有Replication(Disable)

点击选择再点击右边菜单中的Enable replication

三个选项可选:

我们选择Consumer Replica

创建密码:

完成之后见提示:

Replication is now enabled on ‘o=zzcatv’

This suffix is a consumer replica

It is ready to receive replication updates

 

Linux版的log在这个目录下:

/var/Sun/mps/slapd-zzcatv236/changelogdb

 

三、检验

之后再回到Master Replica上,发现Action有三个选项:

Initialize remote replica 初始化远程被复制对象

Send updates now 立即传送升级数据

Disable agreement 关闭传送

在两端服务器正常且没有数据传送的情况下,会有如下提示:

The last replication update message was:

Incremental update session stopped:noting to replicate

在两端服务器正常且数据传送成功的情况下,会有如下提示:

The last replication update message was:

Incremental update session success

 

/var/Sun/mps/slapd-zzcatv236/logs路径下存有access文档,对于每一次更新和校验信息都有记录,可以随时查看Replica的情况。凌晨4点半有大量的access log,从连接数上看出来应该是所有数据的对照。

[12/Sep/2007:04:36:59 +0800] conn=7761 op=8801 msgId=8802 - EXT oid="1.3.6.1.4.1.42.2.27.9.6.8"

[12/Sep/2007:04:36:59 +0800] conn=7761 op=0 msgId=8802 - MOD dn="mac=1\5c,6\5c,00:40:7b:79:8b:5e,o=zzcatv"

[12/Sep/2007:04:36:59 +0800] conn=7761 op=0 msgId=8795 - RESULT err=0 tag=48 nentries=0 etime=0 csn=46e6fbe3001f00010000

[12/Sep/2007:04:36:59 +0800] conn=7761 op=8794 msgId=8795 - RESULT err=0 tag=120 nentries=0 etime=0

 



文章来自: 网络转载
引用通告: 查看所有引用 | 我要引用此文章
Tags: sun LDAP 备份 冗余 配置 Directory
相关日志:
评论: 0 | 引用: 0 | 查看次数: -
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.