windchill Cluster single manually change considerations cluster (10.2M030 for example)

During the epidemic, in his spare time to continue practical work, this will be a stand-alone windchill yesterday revised to cluster.

Results are as follows:

Steps are as follows:

1. Stand-alone source as the master server, host file and modifying the machine set name (master.ptc.com)

    Remember machine name must be changed, but also to reboot to take effect. Here three virtual machines to restart the two, I forgot this is not a single reboot. Wasted considerable time. "Appears in the slave machine registered slave cache failure."

127.0.0.1   pdm.ptc.com

192.168.158.128  ccs.ptc.com
192.168.158.129  pdmdb.ptc.com
192.168.158.130  master.ptc.com
192.168.158.131  slave1.ptc.com
192.168.158.132  slave2.ptc.com

2. executed on the master machine:

 xconfmanager -s java.rmi.server.hostname=master.ptc.com -t codebase/wt.properties
xconfmanager -s wt.cache.master.slaveHosts="master.ptc.com slave1.ptc.com slave2.ptc.com 192.168.158.130 192.168.158.131 192.168.158.132" -t codebase/wt.properties
xconfmanager -s wt.rmi.server.hostname=pdm.ptc.com -t codebase/wt.properties
xconfmanager -s wt.cache.master.hostname=master.ptc.com -t codebase/wt.properties
xconfmanager -s ie.ldap.serverHostName=master.ptc.com -t codebase/WEB-INF/ieStructProperties.txt
xconfmanager -s wt.server.codebase=http\://pdm.ptc.com/Windchill -t codebase/wt.properties
xconfmanager -s wt.cache.master.codebase=http\://master.ptc.com/Windchill -t codebase/wt.properties

以上修改记得一定要检查下是否真实修改。

3.修改

   <Apache>/conf/extra/app-Windchill-AuthProvider.xml

   <Apache>/conf/extra/app-Windchill-Solr-AuthProvider.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--Web App Auth Providers List-->
<providers>
   <provider>
      <name>Windchill-EnterpriseLdap</name>
      <ldapUrl>ldap://master.ptc.com:389/ou=people,cn=EnterpriseLdap,cn=Windchill_10.2,o=ptc</ldapUrl>
      <bindDn>cn=Manager</bindDn>
      <bindPwd>manager</bindPwd>
   </provider>
   <provider>
      <name>Windchill-AdministrativeLdap</name>
      <ldapUrl>ldap://master.ptc.com:389/ou=people,cn=AdministrativeLdap,cn=Windchill_10.2,o=ptc</ldapUrl>
      <bindDn>cn=Manager</bindDn>
      <bindPwd>manager</bindPwd>
   </provider>
</providers>

修改后

启动windchill shell,改变目录到Apache主目录,执行以下命令:

ant -f webAppConfig.xml regenWebAppConf

ant -f webAppConfig.xml regenWebAppConf -DappName=Windchill-Solr

4.启动master,确保能够访问登录后关闭。

5.拷贝master虚拟机至slave1,设置host以及修改机器名slave1

127.0.0.1  pdm.ptc.com 

192.168.158.128  ccs.ptc.com
192.168.158.129  pdmdb.ptc.com
192.168.158.130  master.ptc.com
192.168.158.131  slave1.ptc.com
192.168.158.132  slave2.ptc.com

执行命令:

xconfmanager -s java.rmi.server.hostname=slave1.ptc.com -t codebase/wt.properties
xconfmanager -s wt.cache.master.slaveHosts="master.ptc.com slave1.ptc.com slave2.ptc.com 192.168.158.130 192.168.158.131 192.168.158.132" -t codebase/wt.properties
xconfmanager -s wt.rmi.server.hostname=pdm.ptc.com -t codebase/wt.properties
xconfmanager -s wt.cache.master.hostname=master.ptc.com -t codebase/wt.properties
xconfmanager -s ie.ldap.serverHostName=master.ptc.com -t codebase/WEB-INF/ieStructProperties.txt
xconfmanager -s wt.server.codebase=http\://pdm.ptc.com/Windchill -t codebase/wt.properties
xconfmanager -s wt.cache.master.codebase=http\://master.ptc.com/Windchill -t codebase/wt.properties

6.拷贝master虚拟机至slave2,设置host以及修改机器名slave2

127.0.0.1   pdm.ptc.com

192.168.158.128  ccs.ptc.com
192.168.158.129  pdmdb.ptc.com
192.168.158.130  master.ptc.com
192.168.158.131  slave1.ptc.com
192.168.158.132  slave2.ptc.com

执行命令:

xconfmanager -s java.rmi.server.hostname=slave2.ptc.com -t codebase/wt.properties
xconfmanager -s wt.cache.master.slaveHosts="master.ptc.com slave1.ptc.com slave2.ptc.com 192.168.158.130 192.168.158.131 192.168.158.132" -t codebase/wt.properties
xconfmanager -s wt.rmi.server.hostname=pdm.ptc.com -t codebase/wt.properties
xconfmanager -s wt.cache.master.hostname=master.ptc.com -t codebase/wt.properties
xconfmanager -s ie.ldap.serverHostName=master.ptc.com -t codebase/WEB-INF/ieStructProperties.txt
xconfmanager -s wt.server.codebase=http\://pdm.ptc.com/Windchill -t codebase/wt.properties
xconfmanager -s wt.cache.master.codebase=http\://master.ptc.com/Windchill -t codebase/wt.properties

 

综上,结束。步骤简单,中间会有一些环境等各方面的问题。出现问题搜索ptc官方知识库,基本都能寻找到一些思路。

各位朋友如果在实践中发现此短文有疏忽,欢迎指正,谢谢大家!

2020/02/12 夜

 

发布了24 篇原创文章 · 获赞 4 · 访问量 10万+

Guess you like

Origin blog.csdn.net/wangxiaomei2008/article/details/104287093