GaussDB(DWS)8.0.0.0版本集群安装
环境:云主机环境、CentOS 7.4 64bit、
软件包: FusionInsight_Manager_6.5.1_RHEL.tar.gz
FusionInsight_BASE_6.5.1_RHEL.tar.gz
GaussDB_200_6.5.1_RHEL.tar.gz
(可选)FusionInsight_MPPDBMonitor_6.5.1_RHEL.tar.gz
FusionInsight_SetupTool_6.5.1.5.tar.gz
(存放opt目录)
镜像:CentOS-7.4-x86_64-DVD-1708.iso (存放opt目录)
tar -zxvf FusionInsight_Manager_6.5.1_RHEL.tar.gz
tar -zxvf GaussDB_200_6.5.1_RHEL.tar.gz
tar -zxvf FusionInsight_SetupTool_6.5.1.5.tar.gz
2.vi /etc/hosts
192.168.0.155 node1 node1.com
3.修改OS参数:
vi /etc/sysctl.conf
vm.min_free_kbytes = (free -k|grep Mem|awk ‘{print $2}’)*5%
4.安装依赖包:(防止缺包情况)
yum install -y OpenIPMI openldap \
openldap-clients openldap-servers perl-Perlilog procmail python-dateutil \
python-dmidecode python-gudev python-simplejson pytz \
sdparm
5.检查OS编码格式是否为en_US.UTF-8
否的话,需要修改vim /etc/locale.conf 然后reboot
cp FusionInsight_BASE_6.5.1_RHEL.tar.gz GaussDB_200_6.5.1_RHEL.tar.gz FusionInsight_Manager/software/packs/
6.cd /opt/FusionInsight_SetupTool/preset (准备静默补丁软件包)
sh preset.sh
7.编辑preinstall文件
vi /opt/FusionInsight_SetupTool/preinstall/preinstall.ini
g_hosts="192.168.0.155"
g_user_name="root"
g_port=22
g_parted=2
g_parted_conf="192.168.0.155:host0.ini;"
g_add_pkg=1
g_pkgs_dir="centos-7.6:/media/"
g_log_file="/tmp/fi-preinstall.log"
g_debug=0
g_hostname_conf="192.168.0.155#192.168.0.155#host1"
g_swap_off=1
g_platform="x86_64"
8.分区配置文件
cd /opt/FusionInsight_SetupTool/preinstall/partition/ini/
vi host0.ini
#mount required care condition
dbdata_om.conf y y n
#backup_om.conf y y n
mppdb1.conf y y n
#mppdb2.conf y y n
9.进入preinstall执行目录,并执行preinstall脚本
cd /opt/FusionInsight_SetupTool
./setuptool.sh preinstall -n
10.Manager安装配置文件
cd /opt/FusionInsight_Manager/software
vi install.ini
[HA]
ha_mode=single
local_ip1=192.168.0.155
local_ip2=
local_ip3=
local_ip4=
peer_ip1=
peer_ip2=
peer_ip3=
peer_ip4=
ws_float_ip=192.168.0.189
ws_float_ip_interface=eth0:web
ws_float_ip_netmask=255.255.255.0
ws_gateway=192.168.0.162
om_float_ip=192.168.0.189
om_float_ip_interface=eth0:web
om_float_ip_netmask=255.255.255.0
om_gateway=192.168.0.162
ntp_server_ip=
om_mediator_ip=192.168.0.162
sso_ip=
sso_port=
bigdata_home=/opt/huawei/Bigdata
bigdata_data_home=/srv/BigData
cluster_nodes_scale=
tls_protocol_min=
realm_parse_ip=
kerberos_realm=
ip_model=
[/HA]
mkdir -p /opt/huawei/Bigdata
mkdir -p /srv/BigData
cd /opt/FusionInsight_Manager/software
./install.sh -f /opt/FusionInsight_Manager/software/install.ini
11.执行单机版配置脚本
切换至OMM用户
su - omm
执行单机实例配置脚本 重启controller
sh ${BIGDATA_HOME}/om-server/om/sbin/enable_single_host_cluster.sh
sh ${BIGDATA_HOME}/om-server/om/sbin/restart-controller.sh
http://192.168.31.72:8080/web/ 默认密码admin/Admin@123
第一步会提示修改密码,请按步骤操作
cat /opt/FusionInsight_SetupTool/preinstall/partition/ini-plugin/conf/mppdb1.conf
dir=/srv/BigData/mppdb/data1
rpm -Uvh zlib-devel-1.2.7-18.el7.x86_64.rpm --nodeps --force
一般位于3.7以上版本编译安装时出错
缺少依赖包libffi-devel
解决方法:
yum install libffi-devel -y
12.安装集群。结束。
- 点赞
- 收藏
- 关注作者
评论(0)