TDS 6.3 双向复制 配置手册
来源:互联网 发布:域名解析如何加端口号 编辑:程序博客网 时间:2024/06/05 06:33
Prepare Step(server1, server2):
1 create user
2 create instance
3 create suffix(dc=cn,dc=com,dc=xxxxxx)
idsxcfg
4 ./ldapadd -D cn=root -w xxxxx
dn:dc=cn,dc=com,dc=xxxxxx
objectclass:top
objectclass:domain
objectclass: ibm-replicationContext
dc:xxxxxx
4.1 如果加不上需要使用如下命令修改
./ldapmodify -D cn=root -w xxxxx
dn:dc=cn,dc=com,dc=xxxxxx
objectclass:top
objectclass:domain
objectclass: ibm-replicationContext
dc:cn
5 ./ldapsearch -D cn=root -w xxxxx -b dc=cn,dc=com,dc=xxxxxx objectclass=*
Configure Step:
1 (server1, server2)
./idsslapd -I idsldap -a
2 (server1, server2)
./idsdiradm -I idsldap
3 (server1, server2)
./idsldapadd -D cn=root -w xxxxx -i ./1234.ldif
==1234.ldif
dn: cn=Master Server, cn=configuration
objectclass: ibm-slapdReplication
cn: Master Server
ibm-slapdMasterDN: cn=any
ibm-slapdMasterPW: secret
3.1 (server1, server2)
./ldapsearch -D cn=root -w xxxxx -b cn=configuration objectclass=*
4 (server1, server2)
./idsslapd -I idsldap -k
5 (server1, server2)
back up ibmslapd.conf
6 server1 上 create a file mycredentialsfile.ldif,copy to server2
==sbin/mycredentialsfile.ldif
dn: cn=replication,cn=IBMpolicies
objectclass: container
###Bind Credentials/method to peer server - replication agreement
###points to this.
dn: cn=simple,cn=replication,cn=IBMpolicies
objectclass:ibm-replicationCredentialsSimple
cn:simple
replicaBindDN:cn=any
replicaCredentials:secret
description:Bind method of the peer master (server1)to the peer (server2)
7 (server1, server2)
./idsldif2db -r no -i ./mycredentialsfile.ldif -I idsldap
7.1 (server1, server2)
./ldapsearch -D cn=root -w xxxxx -b cn=replication,cn=IBMpolicies objectclass=*
8 server1
./idsldif2db -r no -i ./mytopologyfile.ldif -I idsldap
可能会出错,可以一个一个的执行
8.1 ./ldapsearch -D cn=root -w xxxxx -b ibm-replicaGroup=default,dc=cn,dc=com,dc=xxxxxx objectclass=*
12.0 server2 查出 key salt(例如l|}OzPtwW{B< )
./ldapsearch -D cn=root -w xxxxx -b "cn=crypto,cn=localhost" -s base objectclass=* ibm-slapdCryptoSalt
==http://pingyuan.itpub.net/post/15272/479155
12:server 1 上执行
./idsdb2ldif -s dc=cn,dc=com,dc=xxxxxx -o mymasterfile.ldif -k xxxxxxxxxx -t 'l|}OzPtwW{B<'
15:server 2 上执行
./idsldif2db -r no -i mymasterfile.ldif
=======================================
添加一个用户
./ldapadd -D cn=root -w xxxxx
dn: cn=users2,dc=cn,dc=com,dc=xxxxxx
objectclass: container
objectclass: top
cn: users2
如果配置之后出现一个TDS服务器不能添加或者修改属性/对象类, 可以直接拷贝另外一个TDS服务器的V3.modifiedschema到readOnly的那个TDS服务器上。
1 create user
2 create instance
3 create suffix(dc=cn,dc=com,dc=xxxxxx)
idsxcfg
4 ./ldapadd -D cn=root -w xxxxx
dn:dc=cn,dc=com,dc=xxxxxx
objectclass:top
objectclass:domain
objectclass: ibm-replicationContext
dc:xxxxxx
4.1 如果加不上需要使用如下命令修改
./ldapmodify -D cn=root -w xxxxx
dn:dc=cn,dc=com,dc=xxxxxx
objectclass:top
objectclass:domain
objectclass: ibm-replicationContext
dc:cn
5 ./ldapsearch -D cn=root -w xxxxx -b dc=cn,dc=com,dc=xxxxxx objectclass=*
Configure Step:
1 (server1, server2)
./idsslapd -I idsldap -a
2 (server1, server2)
./idsdiradm -I idsldap
3 (server1, server2)
./idsldapadd -D cn=root -w xxxxx -i ./1234.ldif
==1234.ldif
dn: cn=Master Server, cn=configuration
objectclass: ibm-slapdReplication
cn: Master Server
ibm-slapdMasterDN: cn=any
ibm-slapdMasterPW: secret
3.1 (server1, server2)
./ldapsearch -D cn=root -w xxxxx -b cn=configuration objectclass=*
4 (server1, server2)
./idsslapd -I idsldap -k
5 (server1, server2)
back up ibmslapd.conf
6 server1 上 create a file mycredentialsfile.ldif,copy to server2
==sbin/mycredentialsfile.ldif
dn: cn=replication,cn=IBMpolicies
objectclass: container
###Bind Credentials/method to peer server - replication agreement
###points to this.
dn: cn=simple,cn=replication,cn=IBMpolicies
objectclass:ibm-replicationCredentialsSimple
cn:simple
replicaBindDN:cn=any
replicaCredentials:secret
description:Bind method of the peer master (server1)to the peer (server2)
7 (server1, server2)
./idsldif2db -r no -i ./mycredentialsfile.ldif -I idsldap
7.1 (server1, server2)
./ldapsearch -D cn=root -w xxxxx -b cn=replication,cn=IBMpolicies objectclass=*
8 server1
./idsldif2db -r no -i ./mytopologyfile.ldif -I idsldap
可能会出错,可以一个一个的执行
8.1 ./ldapsearch -D cn=root -w xxxxx -b ibm-replicaGroup=default,dc=cn,dc=com,dc=xxxxxx objectclass=*
12.0 server2 查出 key salt(例如l|}OzPtwW{B< )
./ldapsearch -D cn=root -w xxxxx -b "cn=crypto,cn=localhost" -s base objectclass=* ibm-slapdCryptoSalt
==http://pingyuan.itpub.net/post/15272/479155
12:server 1 上执行
./idsdb2ldif -s dc=cn,dc=com,dc=xxxxxx -o mymasterfile.ldif -k xxxxxxxxxx -t 'l|}OzPtwW{B<'
15:server 2 上执行
./idsldif2db -r no -i mymasterfile.ldif
=======================================
添加一个用户
./ldapadd -D cn=root -w xxxxx
dn: cn=users2,dc=cn,dc=com,dc=xxxxxx
objectclass: container
objectclass: top
cn: users2
如果配置之后出现一个TDS服务器不能添加或者修改属性/对象类, 可以直接拷贝另外一个TDS服务器的V3.modifiedschema到readOnly的那个TDS服务器上。
0 0
- TDS 6.3 双向复制 配置手册
- Goldengate双向复制配置
- 安装配置IBM TDS
- IBM《安装配置IBM TDS》
- tds
- 配置Oracle 10g 双向流复制
- 【OGG】OGG简单配置双向复制(三)
- GoldenGate配置(二)之双向复制配置
- Linux下MySQL双向同步复制配置方法
- RHEL5上配置mysql双向复制详细记录__2009
- 【NOSQL 】 memcache 安装及配置分布式集群 双向复制
- MySQL建立双向主备复制服务器配置方法
- GolddenGate-双向复制
- GoldenGate DDL双向复制
- Mysql 双向复制
- 复制双向链表
- GoldenGate的安装与配置(二)oracle——oracle双向复制(DML)
- 配置手册
- NYOJ 680 摘枇杷(二分搜索+贪心)
- poj-1679-The Unique MST-最小生成树是否唯一
- 竖直的完美seekbar,无缝拖动!
- MySQL开启远程访问
- 心理学家告诉你:男女怎样才叫合适
- TDS 6.3 双向复制 配置手册
- 算法之旅 快速排序 速度超过库函数,挑战 stl
- 微软开源C#编译器
- Lua5.1编程3:Lua标准库介绍
- OpenSSL相关的漏洞--heartbleed
- .NET基金会成立
- item9: 绝不要在构造和析构过程中调用virtual函数
- SpringMVC的四个基本注解annotation(控制层,业务层,持久层) -- @Component、@Repository @Service、@Controller
- Cracking The Coding Interview2.4