`

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

 
阅读更多

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

初始化方向是: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

分享到:
评论

相关推荐

    Sun Java SystemDirectory Server

    ### Sun Java System Directory Server Enterprise Edition 6.3 管理指南 #### 一、概述 Sun Java System Directory Server Enterprise Edition 6.3 是一款高度可扩展且安全的身份存储库解决方案,它支持企业级...

    Lightweight directory access protocol(LDAP)中文教程

    Sun Java System Directory Server Enterprise Edition 6.3是一款由Sun Microsystems开发的高性能、可扩展的企业级目录服务器产品,广泛应用于企业环境中的用户和资源管理。该版本的管理指南涵盖了从安装到配置、...

    j2ee集群J2EEClustering.pdf

    - **WebLogic, WebSphere, JBoss的方案**:结对服务器复制机制,即每两个服务器结成一对,其中一个作为主服务器,另一个作为备份服务器。 - **IBM的方案**:集中状态服务器,即所有服务器都连接到一个中央状态服务器...

    J2EE集群.pdf

    J2EE(Java 2 Platform, Enterprise Edition)作为企业级应用开发的标准平台之一,其集群技术为实现高可用性和可扩展性提供了有效手段。 **关键事件回顾**:1999年6月,eBay曾发生服务中断长达22小时,导致约230万...

    J2EE扫盲之-揭开J2EE集群的神秘面纱

    - **4.2.4 WebLogic,WebSphere,JBoss的方案:结对服务器(Paired servers)复制**:这些商用服务器通常采用结对服务器的方式,其中一个作为主服务器处理请求,另一个作为备服务器随时准备接管工作。 - **4.2.5 IBM的...

    山东建筑大学J2EE讲义

    J2EE(Java 2 Platform, Enterprise Edition)是Sun Microsystems为简化企业级应用程序开发而提出的一种标准架构,它提供了强大的分布式网络应用的开发框架。J2EE通过提供一组标准化的服务(如组件部署、事务管理、...

Global site tag (gtag.js) - Google Analytics