数据库相关

GaussDB 200 6.5.1单机安装流程

2020-02-13  本文已影响0人  david9

硬件准备:

系统:CentOS 7.6(1810)
CPU:8核
内存:32G(内存低于32G大概率安装成功后mpp服务无法启动)
硬盘:根分区100G

软件准备:

CentOS-7-x86_64-DVD-1810.iso
FusionInsight_SetupTool_6.5.1.tar
FusionInsight_BASE_6.5.1_RHEL.tar
GaussDB_200_6.5.1_RHEL.tar
FusionInsight_Manager_6.5.1_RHEL.tar
参考:GaussDB 200 6.5.1 产品文档

安装:

1、上传软件包。

使用“WinSCP”工具,以root用户登录将要安装GaussDB 200的服务器。
选中以上文件,拖动到当前节点的“/opt”目录下,等待上传完成。

2、解压软件包。

2.1、使用“PuTTY”工具以root用户进入“/opt”目录。

cd /opt

2.2、执行tar命令,解压软件包文件。

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.tar.gz

2.3、执行以下命令,分别将除Manager外的其他部件包拷贝至“/opt/FusionInsight_Manager/software/packs”路径下(如同时安装其他部件,需要一起拷贝)

cp FusionInsight_BASE_6.5.1_RHEL.tar.gz FusionInsight_MPPDB_6.5.1_RHEL.tar.gz FusionInsight_Manager/software/packs/

3、挂载操作系统镜像

mount /opt/CentOS-7-x86_64-DVD-1810.iso /media/ -o loop

4、创建omm用户

4.1、将要安装GaussDB 200的节点上的“/opt/FusionInsight_SetupTool/preset”文件夹拷贝至节点的“/opt”目录,并在所有节点上执行sh /opt/preset/preset.sh命令

cp -r /opt/FusionInsight_SetupTool/preset /opt && sh /opt/preset/preset.sh

4.2、在要安装GaussDB 200的节点上,以root用户执行以下命令:
修改软件包解压后生成的目录“/opt/FusionInsight_Manager/”的属主:

chown omm: /opt/FusionInsight_Manager/ -R

修改软件包解压后生成的目录“/opt/FusionInsight_SetupTool”的属主:

chown omm: /opt/FusionInsight_SetupTool -R

5、修改操作系统配置文件

5.1、修改preinstall.ini文件

vim /opt/FusionInsight_SetupTool/preinstall/preinstall.ini
内容如下所示:

g_hosts="你的机器IP"
g_parted=0
g_parted_conf="你的机器IP:host0.ini;"
g_hostname_conf="你的机器IP:你的机器IP:你的机器hostname;"
g_add_pkg=1
g_pkgs_dir="centos-7.6:/media/"
g_swap_off=1
g_user_name="root"
g_port=22
g_log_file="/tmp/fi-preinstall.log"
g_check=1
g_debug=0
g_wce_conf=0
g_platform="x86_64"
g_optimize="default"
g_kms_conf=0
g_core_dump=0
g_core_dump_dir="/var/log/core"

5.2、创建host0.ini文件

vim /opt/FusionInsight_SetupTool/preinstall/partition/ini/host0.ini

内容如下所示:

#mount               required    care    condition
dbdata_om.conf       y           y       n                 
backup_om.conf       y           y       n                  
mppdb1.conf          y           y       n    
6、执行preinstall

cd /opt/FusionInsight_SetupTool && ./setuptool.sh preinstall -n

7、安装单机Manager

vim /opt/FusionInsight_Manager/software/install.ini

内容如下所示:

[HA]
    ha_mode=single
    local_ip1=你的机器IP
    local_ip2=
    local_ip3=
    local_ip4=
    peer_ip1=
    peer_ip2=
    peer_ip3=
    peer_ip4=
    ws_float_ip=
    ws_float_ip_interface=
    ws_float_ip_netmask=
    ws_gateway=
    om_float_ip=
    om_float_ip_interface=
    om_float_ip_netmask=
    om_gateway=
    ntp_server_ip=
    om_mediator_ip=
    sso_ip=
    sso_port=
    bigdata_home=/opt/huawei/Bigdata     #集群安装目录,可自定义。
    bigdata_data_home=/srv/BigData       #集群数据目录,可自定义。
    cluster_nodes_scale=
    tls_protocol_min=
[/HA]

其中/srv/BigData 需要手动创建,执行

mkdir /srv/BigData

执行安装Manager命令,等待安装完成。

./install.sh -f /opt/FusionInsight_Manager/software/install.ini

8、执行单机版配置脚本

切换为omm用户

su - omm

进入单机版配置脚本所在目录,并运行脚本。

sh ${BIGDATA_HOME}/om-server/om/sbin/enable_single_host_cluster.sh
sh ${BIGDATA_HOME}/om-server/om/sbin/restart-controller.sh

9、在web控制台安装GaussDB

登录https://你的机器IP:28443/web
用户名:admin
密码:Admin@123
执行安装

问题:

1.第六步执行preinstall提示无法安装软件包
解决:
手动安装对应的软件包,也可以一次安装所有依赖包,执行命令:

yum install acpid.x86_64 at.x86_64 attr.x86_64 autogen-libopts.x86_64 bc.x86_64 bind-libs.x86_64 bind-utils.x86_64 bridge-utils.x86_64 bzip2.x86_64 c-ares.x86_64 checkpolicy.x86_64 cifs-utils.x86_64 crash.x86_64 cryptsetup.x86_64 cups-client.x86_64 cvs.x86_64 cyrus-sasl.x86_64 cyrus-sasl-gssapi.x86_64 cyrus-sasl-plain.x86_64 ed.x86_64 gamin.x86_64 gdbm-devel.x86_64 glibc-devel.x86_64 glibc-headers.x86_64 gnutls.x86_64 hdparm.x86_64 hesiod.x86_64 http-parser.x86_64 iotop.noarch ipmitool.x86_64 iptables-services.x86_64 ipvsadm.x86_64 kernel-headers.x86_64 keyutils.x86_64 libasyncns.x86_64 libbasicobjects.x86_64 libcgroup.x86_64 libcollection.x86_64 libdb-devel.x86_64 libdhash.x86_64 libevent.x86_64 libgudev1.x86_64 libini_config.x86_64 libipa_hbac.x86_64 libitm.x86_64 libldb.x86_64 libmodman.x86_64 libnfsidmap.x86_64 libnl.x86_64 libpath_utils.x86_64 libpcap.x86_64 libproxy.x86_64 libref_array.x86_64 libreport-filesystem.x86_64 libsmbclient.x86_64 libsss_autofs.x86_64 libsss_certmap.x86_64 libsss_idmap.x86_64 libsss_nss_idmap.x86_64 libsss_sudo.x86_64 libtalloc.x86_64 libtar.x86_64 libtdb.x86_64 libtevent.x86_64 libtirpc.x86_64 libtool-ltdl.x86_64 libusb.x86_64 libusbx.x86_64 libwbclient.x86_64 libxml2-python.x86_64 lm_sensors-libs.x86_64 lsof.x86_64 m2crypto.x86_64 m4.x86_64 mailx.x86_64 mdadm.x86_64 mlocate.x86_64 net-snmp.x86_64 net-snmp-agent-libs.x86_64 net-snmp-libs.x86_64 net-snmp-utils.x86_64 nettle.x86_64 nscd.x86_64 nss_compat_ossl.x86_64 ntp.x86_64 ntpdate.x86_64 numactl.x86_64 numad.x86_64 oddjob.x86_64 oddjob-mkhomedir.x86_64 OpenIPMI.x86_64 OpenIPMI-libs.x86_64 OpenIPMI-modalias.x86_64 openldap-clients.x86_64 openldap-servers.x86_64 pam_krb5.x86_64 patch.x86_64 pax.x86_64 pciutils.x86_64 perl-Compress-Raw-Bzip2.x86_64 perl-Compress-Raw-Zlib.x86_64 perl-Data-Dumper.x86_64 perl-DBI.x86_64 perl-devel.x86_64 perl-ExtUtils-Install.noarch perl-ExtUtils-MakeMaker.noarch perl-ExtUtils-Manifest.noarch perl-ExtUtils-ParseXS.noarch perl-IO-Compress.noarch perl-Net-Daemon.noarch perl-PlRPC.noarch perl-Test-Harness.noarch perl-version.x86_64 pm-utils.x86_64 portreserve.x86_64 procmail.x86_64 psmisc.x86_64 pygobject2.x86_64 pyOpenSSL.x86_64 pyparsing.noarch pytalloc.x86_64 python-chardet.noarch python-dateutil.noarch python-dmidecode.x86_64 python-ethtool.x86_64 python-kitchen.noarch python-sssdconfig.noarch pytz.noarch quota.x86_64 quota-nls.noarch redhat-lsb-core.x86_64 redhat-lsb-submod-security.x86_64 rng-tools.x86_64 rpcbind.x86_64 rsync.x86_64 samba-client-libs.x86_64 samba-common.noarch samba-common-libs.x86_64 sdparm.x86_64 sendmail.x86_64 sg3_utils-libs.x86_64 smartmontools.x86_64 spax.x86_64 sssd.x86_64 sssd-ad.x86_64 sssd-client.x86_64 sssd-common.x86_64 sssd-common-pac.x86_64 sssd-ipa.x86_64 sssd-krb5.x86_64 sssd-krb5-common.x86_64 sssd-ldap.x86_64 sssd-proxy.x86_64 stix-fonts.noarch sysstat.x86_64 system-config-firewall-base.noarch systemtap-sdt-devel.x86_64 tcp_wrappers.x86_64 time.x86_64 traceroute.x86_64 trousers.x86_64 unixODBC.x86_64 unzip.x86_64 usermode.x86_64 yum-utils.noarch zip.x86_64 -y
上一篇下一篇

猜你喜欢

热点阅读