安装双机Manager
操作场景
为提升系统可靠性,建议安装双机Manager,安装单机Manager请参见安装单机Manager。若操作过程中出错需要查看安装日志,请参考查看安装日志。
对系统的影响
- 安装成功后,可以登录FusionInsight Manager系统,进行安装集群操作。
- 安装Manager时,为保障集群的正常通信,安装脚本会自动关闭安装Manager节点的OS的防火墙。如需保持防火墙处于开启状态,请参考《GaussDB 200 6.5.1 通信矩阵》手动开启各端口。
前提条件
“HostIP.ini”文件已经分别上传到指定位置(一般为主备管理节点的“/opt/FusionInsight_Manager/software”目录)。
- 如使用omm用户安装集群,需提前使用root用户进行预配置操作,详情请参见配置软件包。
- 如使用omm用户安装集群,需提前获取omm用户密码。
操作步骤
安装主Manager
- 使用“PuTTY”工具,以root用户登录主管理节点(如使用omm用户安装集群,请使用omm用户登录)。
- 执行以下命令,防止“PuTTY”超时退出。
TMOUT=0
说明:
如果在EulerOS下,需要执行以下操作防止超时退出:
- 执行vi /etc/profile打开配置文件,修改参数“export TMOUT=0”,保存退出,再执行source /etc/profile导入配置文件。
- 执行vi /etc/ssh/sshd_config打开配置文件,修改参数“ClientAliveInterval”为0 ,“ClientAliveCountMax”为3,保存退出,执行service sshd restart重启sshd服务。
- 断开PuTTY重新连接节点,配置生效。
- 进入解压目录,例如“/opt/FusionInsight_Manager/software”,检查“HostIP.ini”文件(以“192.168.10.10.ini”为例)是否已上传到此目录。
cd /opt/FusionInsight_Manager/software
cat 192.168.10.10.ini
//192.168.10.10.ini(举例:主管理节点) [HA] ha_mode=double local_ip1=192.168.10.10 local_ip2= local_ip3= local_ip4= peer_ip1=192.168.10.11 peer_ip2= peer_ip3= peer_ip4= ws_float_ip=10.10.100.201 ws_float_ip_interface=eth3:web ws_float_ip_netmask=255.255.0.0 ws_gateway=10.10.100.254 om_float_ip=192.168.10.200 om_float_ip_interface=eth3:oms om_float_ip_netmask=255.255.255.0 om_gateway=192.168.10.254 ntp_server_ip=10.3.178.8,10.3.178.4 om_mediator_ip=192.168.10.254 sso_ip=10.3.179.3 sso_port=7444 bigdata_home=/opt/huawei/Bigdata bigdata_data_home=/srv/BigData cluster_nodes_scale=3 tls_protocol_min=sslv3 [/HA]
- 执行安装Manager命令,等待安装执行完毕。
./install.sh -f /opt/FusionInsight_Manager/software/192.168.10.10.ini
=================================== Welcome =================================== === STEP 1 Checking the parameters. === STEP 2 Preparing for installation components. [done] === STEP 3 Installing the manager. [done] === STEP 4 Installing the packs. [done] === STEP 5 Starting the OMS. [done] === STEP 6 Waiting for ntp to startup. [done] === STEP 7 Configuring and starting agent. [done] ============================= Install Successfully ============================ Please visit http://10.10.100.201:8080/web/ to continue cluster installation. Installation is successful.
安装命令执行过程中,不支持通过“Ctrl+Z”将任务挂起。挂起后再恢复执行时可能会导致安装失败。
安装Manager若出现错误,请参照“常见问题”处理:
- 安装Manager失败,原因是没有在/etc/hosts中配置本机域名
- 安装Manager失败,提示shmmax值太小
- 安装Manager失败,提示安装gaussDB时编码不一致
安装备Manager
- 使用“PuTTY”工具,以root用户登录备管理节点(如使用omm用户安装集群,请使用omm用户登录)。
- 执行以下命令,防止“PuTTY”超时退出。
TMOUT=0
说明:
如果在EulerOS下,需要执行以下操作防止超时退出:
- 执行vi /etc/profile打开配置文件,修改参数“export TMOUT=0”,保存退出,再执行source /etc/profile导入配置文件。
- 执行vi /etc/ssh/sshd_config打开配置文件,修改参数“ClientAliveInterval”为0 ,“ClientAliveCountMax”为3,保存退出,执行service sshd restart重启sshd服务。
- 断开PuTTY重新连接节点,配置生效。
- 进入解压目录,例如“/opt/FusionInsight_Manager/software”,检查的“HostIP.ini”文件(以“192.168.10.11.ini”为例)是否已上传到此目录。
cd /opt/FusionInsight_Manager/software
cat 192.168.10.11.ini
//192.168.10.11.ini(举例:备管理节点) [HA] ha_mode=double local_ip1=192.168.10.11 local_ip2= local_ip3= local_ip4= peer_ip1=192.168.10.10 peer_ip2= peer_ip3= peer_ip4= ws_float_ip=10.10.100.201 ws_float_ip_interface=eth3:web ws_float_ip_netmask=255.255.0.0 ws_gateway=10.10.100.254 om_float_ip=192.168.10.200 om_float_ip_interface=eth3:oms om_float_ip_netmask=255.255.255.0 om_gateway=192.168.10.254 ntp_server_ip=10.3.178.8,10.3.178.4 om_mediator_ip=192.168.10.254 sso_ip=10.3.179.3 sso_port=7444 bigdata_home=/opt/huawei/Bigdata bigdata_data_home=/srv/BigData cluster_nodes_scale=3 tls_protocol_min=sslv3 [/HA]
- 执行安装Manager命令,等待安装执行完毕。
./install.sh -f /opt/FusionInsight_Manager/software/192.168.10.11.ini
连续输入两次y,并按回车键确认。
=================================== Welcome =================================== === STEP 1 Checking the parameters. The ws_float_ip(10.10.100.201) already exists on the network. Is it used on the active OMS HA? (y/n):y The om_float_ip(192.168.10.200) already exists on the network. Is it used on the active OMS HA? (y/n):y === STEP 2 Preparing for installation components. [done] === STEP 3 Installing the manager. [done] === STEP 4 Installing the packs. [done] === STEP 5 Starting the OMS. [done] === STEP 6 Waiting for ntp to startup. [done] === STEP 7 Configuring and starting agent. [done] ============================= Install Successfully ============================ Please visit http://10.10.100.201:8080/web/ to continue cluster installation. Installation is successful.
安装命令执行过程中,不支持通过“Ctrl+Z”将任务挂起。挂起后再恢复执行时可能会导致安装失败。
安装Manager若出现错误,请参照“常见问题”处理:
- 安装双机Manager后无法登录Manager页面
- 安装Manager失败,原因是没有在/etc/hosts中配置本机域名
- 安装Manager失败,提示shmmax值太小
- 安装Manager失败,提示安装gaussDB时编码不一致
查看更多:华为GaussDB 200 安装Manager - 执行安装Manager命令,等待安装执行完毕。
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」关注作者【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。评论
- 执行安装Manager命令,等待安装执行完毕。