• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

XE7000系统主备同步的配置

2007-01-30 发表
  • 0关注
  • 0收藏 477浏览
粉丝: 关注:

XE7000系统主备同步的配置

一、组网需求:

话机1001,1002,1003主备注册到两台XE7605上,当主服务器宕机的时候,话机自动注册到备用服务器上,当主服务器恢复正常后,话机从新注册到主服务器上。

二、组网图:

三、配置步骤:

1.安装前准备工作

服务器安装前需要连好网线,保证服务器间路由可达

1.1配置主服务器的ntp服务

通过串口登陆服务器,用户:root;密码:pvadmin

调整服务器时间:

date 062620532006    //2006623 2053分,所有参数都是双位表示

NTP服务配置,编辑文件ntp.conf

vi /etc/ntp.conf          //(vi 编辑文件,单击i 进行编辑,Esc键退出编辑)

server 127.127.1.1

fudge 127.127.1.1 stratum 8   //(其余的配置全部删除)

:wq         //(保存退出)

1.2配置主服务器的地址

-bash-2.05b# vcx-config-network --wizard

----------------------------------------------------------------------------------------------------

---------- Welcome to the VCX Linux Network Configuration Wizard ----------

--------------------------------------------------------------------------------------------

This wizard sets up networking and related services.

Configure networking now? [yes] :

--------- Configuring Dynamic Host Configuration Protocol (DHCP) ----------

VCX servers can use DHCP for automated configuration, but this requires

that the DHCP server is configured to provide the proper options.  Unless

you know that your environment is set up in this way, you should say 'no'

here and configure static network parameters.

Use DHCP on eth0 to configure network parameters? [no] :

-------------------------- Configuring Hostname ---------------------------

Enter system hostname    : pri

--------------------- Configuring IP Interface 'eth0' ---------------------

IP Address               : 172.31.0.11

Network Subnet Mask      : 255.255.0.0

Default Gateway Address  : 172.31.255.254

--------------------- Configuring IP Interface 'eth1' ---------------------

Interface State          : enabled    //原来为disabled,需手动修改

IP Address               : 172.31.0.12

Network Subnet Mask      : 255.255.0.0

Default Gateway Address  : 172.31.0.254

------------------------- Configuring DNS Servers -------------------------

Enter DNS servers one at a time.

When done, enter 0.0.0.0 to stop.

Primary DNS Server       : 0.0.0.0

----------------------- Configuring DNS Search Path -----------------------

Press Enter to leave the current path unchanged, or specify

a new search path, with spaces separating each entry.

DNS Search Path : localdomain

-------------------- Configuring Network Time Protocol --------------------

Enter NTP servers one at a time.

When done, enter 0.0.0.0 to stop.

Primary NTP Server       : 127.127.1.1  //默认配置不需要修改

Secondary NTP Server     : 0.0.0.0

-------------------------- Configuring Time Zone --------------------------

Please select a geographic location from the following list:

  1. Africa

  2. Americas

  3. Antarctica

  4. Arctic Ocean

  5. Asia

  6. Atlantic Ocean

  7. Australia

  8. Europe

  9. Indian Ocean

 10. Pacific Ocean

Enter continent [5] : 5

Please select a country from the following list:

  1. United Arab Emirates  18. Jordan                35. Philippines         

  2. Afghanistan           19. Japan                 36. Pakistan            

  3. Armenia               20. Kyrgyzstan            37. Palestine           

  4. Azerbaijan            21. Cambodia              38. Qatar               

  5. Bangladesh            22. Korea (North)         39. Russia              

  6. Bahrain               23. Korea (South)         40. Saudi Arabia        

  7. Brunei                24. Kuwait                41. Singapore           

  8. Bhutan                25. Kazakhstan            42. Syria               

  9. China                 26. Laos                  43. Thailand            

 10. Cyprus                27. Lebanon               44. Tajikistan          

 11. Georgia               28. Sri Lanka             45. East Timor           

 12. Hong Kong             29. Myanmar (Burma)       46. Turkmenistan        

 13. Indonesia             30. Mongolia              47. Taiwan              

 14. Israel                31. Macau                 48. Uzbekistan          

 15. India                 32. Malaysia              49. Vietnam             

 16. Iraq                  33. Nepal                 50. Yemen               

 17. Iran                  34. Oman                

Enter country [9] : 9

Please select a time zone from the following list:

  1. Heilongjiang

  2. Tibet & most of Xinjiang Uyghur

  3. central China - Gansu, Guizhou, Sichuan, Yunnan, etc.

  4. east China - Beijing, Guangdong, Shanghai, etc.

  5. southwest Xinjiang Uyghur

Enter zone [4] : 4

Selected Time Zone:      Asia/Shanghai

1.3配置从服务器地址,进行时间同步

配置过程同上,注意NTP的配置

-------------------- Configuring Network Time Protocol --------------------

Enter NTP servers one at a time.

When done, enter 0.0.0.0 to stop.

Primary NTP Server       : 172.31.0.11 

Secondary NTP Server     : 172.31.0.12   //配置为主服务器两个网口的地址

 

修改NTP配置文件,

-bash-2.05b# vi /etc/ntp.conf

server 172.31.0.11

server 172.31.0.12

:wq                 //保存,退出。

同步时间:

-bash-2.05b# service ntpd restart

时间同步成功进行后续安装

1.4安装服务器的许可文件

查看服务器的machineid

vcx-showmachineid

将对应的许可文件下载到服务器的/opt/installtemp目录中

安装许可:

cd /opt/installtemp

vcx-licenseinstall <许可文件名,例如:SMkY-07dh-7PH9-UMVd-CA_0-1i12.activation.key >

安装完毕后,许可会安装在 /opt/3com/licenses目录下,通过 ls –al命令查看许可是否安装成功

修改许可文件的读写属性:     

chmod 755 <许可文件,例如:SMxj-OWZv-7PEa-pGiU-sKu1-bzhi.activation.key>

2.服务器安装

2.1安装主服务器

使用vcx-setup命令安装主服务器,关键配置:

1)选择站点类型:选择1(Primary)【重要,以后无法修改】

2Enter a unique identifier for this site :  默认为1,不要修改(重要,必须保证两个服务器的Site ID相同,后续配置无法修改!!)

3Enter a description for this site   xj-post

4Enter the customer name   : post

5Use European date order? (Y/N) [N] : N (选N

6Is Global Messaging in use? (Y/N) [N] : N (注意)

7Enter the SIP default dialing domain : 172.31.0.12(两台服务器配置相同)

8IP address of the secondary Call Processor : 172.31.0.14  (输入另一台服务器的第2个网口的地址)

9IP address of the secondary Auth & Dir Service : 172.31.0.13(输入另一台服务器的第1个网口的地址)

10IP address of the secondary IP Messaging Service : 172.31.0.13(输入另一台服务器的第1个网口的地址)

11The Call Records Service consolidates call accounting records for the VCX system. It is only enabled on one server for an entire installation.Enable the Call Records Service (Y/N)? [N] : Y(主服务器启用,从服务器不启用)

IPMSG配置中:

1The hostname of the other IP Messaging system is needed in order to set up Intelligent Mirroring redundancy with this system.

Hostname of peer IP Messaging system          :sec  //从服务器hostname

2User name for access to Auth & Dir Server               : cworks

3Password for access to Auth & Dir Server                : cworks

2.1安装从服务器

关键配置:

1)选择站点类型:选择2 (secondary)

2Enter a unique identifier for this site :  默认为1,不要修改(和主服务器一致)

3)中间配置选项同主服务器;

4Enter the SIP default dialing domain  : 172.31.0.12  (与主服务器一致)

5IP address of the primary Call Processor    : 172.31.0.12(主服务器第二个网口的地址)

6IP address of the primary Auth & Dir Service     : 172.31.0.11 (主服务器第一个网口的地址)

7IP address of the primary IP Messaging Service       : 172.31.0.11 (主服务器第一个网口的地址)

IPMSG关键配置:

1User name for access to Auth & Dir Server               : cworks

2Password for access to Auth & Dir Server                : cworks

其余使用默认配置即可

3.配置数据库同步

重要:服务安装完毕后,需要重新启动服务器(reboot)!

3.1从服务器配置

停止相关服务

-bash-2.05b# cd /opt/3com/VCX/scripts/rc3.d/

-bash-2.05b# ./S20vcxdata stop  //停止vcxdata服务

-bash-2.05b# ./S70tomcat stop   //停止tomcat服务

打开防火墙

-bash-2.05b# modfw -p oracle allow 172.31.0.12 //其实不必须,为了安全起见还是打开

查看防火墙配置是否正确:

-bash-2.05b# lsfw

service: oracle       port:  1521 transport:     tcp default rule: drop

        allow: address=172.31.0.11

        allow: address=172.31.0.12

service: telnet       port:    23 transport: tcp-udp default rule: drop

service: ftp          port:    21 transport: tcp-udp default rule: drop

service: tftp         port:    69 transport:     udp default rule: drop

service: ums         port: 17789 transport:     tcp default rule: drop

service: http         port:    80 transport:     tcp default rule: accept

3.2主服务器配置

停止相关服务

-bash-2.05b# cd /opt/3com/VCX/scripts/rc3.d/

-bash-2.05b# ./S20vcxdata stop  //停止vcxdata服务

-bash-2.05b# ./S70tomcat stop   //停止tomcat服务

打开防火墙

-bash-2.05b# modfw -p oracle allow 172.31.0.14

查看防火墙配置是否正确:

-bash-2.05b# lsfw

service: oracle       port:  1521 transport:     tcp default rule: drop

        allow: address=172.31.0.13

        allow: address=172.31.0.14

service: telnet       port:    23 transport: tcp-udp default rule: drop

service: ftp          port:    21 transport: tcp-udp default rule: drop

service: tftp         port:    69 transport:     udp default rule: drop

service: ums          port: 17789 transport:     tcp default rule: drop

service: http         port:    80 transport:     tcp default rule: accept

3.3数据库同步

-bash-2.05b# su – cworks      //切换位cworks用户

[cworks@pri cworks]$ cd /opt/3com/VCX/vcxdata/bin/

[cworks@pri bin]$ ./setupReplication

Copyright (C) 2005 3Com Corporation, All rights reserved.

Multi-Master Replication SETUP Start Configuring ....

Enter the VCX Site Identification i.e. Site Id: ?? []:1  //SITE id 默认为1

Enter the Number of MASTER SITEs other than the MASTER DEFINITION SITE [1]:

Enter the MASTER DEFINITION SITE IP Address [172.31.0.11]:  //默认主服务器第一个网口地址

Enter the MASTER SITE 1 IP Address [0.0.0.0]:172.31.0.13   //从服务器第一个网口地址

完成同步配置,等待同步需要20分钟

注意配置完成后不要启动tomcatvcxdata的服务

检查复制是否成功,相同的目录下输入命令

[cworks@pri bin]$ ./checkReplication

同步成功显示:

------------------------------------------------------------------------------

VCXDATA1 Database ...

Multi-Master Replication STATUS:

**************************************

*************** NORMAL ***************

**************************************

------------------------------------------------------------------------------

3.3重起两台服务器的服务

[cworks@pri bin]$ exit

-bash-2.05b# cd /opt/3com/VCX/scripts/rc3.d/

-bash-2.05b# ./S20vcxdata start

-bash-2.05b# ./S70tomcat start

完成配置。

在话机上配置服务器地址的时候将主备服务器的地址分别设为主PBX地址和备PBX地址即可正常主备注册。

四、配置关键点:

若您有关于案例的建议,请反馈:

作者在2007-02-05对此案例进行了修订
0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

侵犯我的权益 >
对根叔知了社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔知了社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作