Huawei GuassDB 200 lightweight single-node mode Deployment Guide

For the installation of a clustered environment, before you can write the reference to "FusionInsight LibrA V100R002C80SPC300 Installation Guide" .

1, environmental information

Huawei GuassDB 200 lightweight single-node mode Deployment Guide
Wherein the operating system disk 50G, 100G for three other GuassDB.

2, configure the package

  • Package ready to
    download the following packages from the official website and uploaded to the / opt directory:
    [root@hd06 ~]# cd /opt/
    [root@hd06 opt]# ls
    FusionInsight_BASE_6.5.1_RHEL.tar.gz     FusionInsight_SetupTool_6.5.1.tar.gz
    FusionInsight_Manager_6.5.1_RHEL.tar.gz  GaussDB_200_6.5.1_RHEL.tar.gz

    And then extract the following three packages:

    [root@hd06 opt]# tar -xzf FusionInsight_Manager_6.5.1_RHEL.tar.gz 
    [root@hd06 opt]# tar -xzf FusionInsight_SetupTool_6.5.1.tar.gz 
    [root@hd06 opt]# tar -xzf GaussDB_200_6.5.1_RHEL.tar.gz 

    After the extraction is completed, the other components of the package are in addition to the copy Manager "/ opt / FusionInsight_Manager / software / packs" path (e.g., other components installed, together with the need to copy):

    [root@hd06 opt]# cp FusionInsight_BASE_6.5.1_RHEL.tar.gz FusionInsight_MPPDB_6.5.1_RHEL.tar.gz FusionInsight_Manager/software/packs/
  • Mount the operating system image
    [root@hd06 opt]# mount /dev/sr0 /media/
  • Operating system code to confirm
    the operating system code must be "en_US.UTF-8" or "POSIX".
  • Copy the folder pre-configured
    at will be installed GaussDB "/ opt / FusionInsight_SetupTool / preset " on node 200 is copied to the folder of the node "/ opt" directory and execute the command sh /opt/preset/preset.sh on all nodes.
    [root@hd06 opt]# cp -r /opt/FusionInsight_SetupTool/preset .
    [root@hd06 opt]# sh preset/preset.sh 
    start to preSet
    success to preSet.
  • Modify / opt / FusionInsight_Manager and / opt / FusionInsight_SetupTool owner
    [root@hd06 opt]# chown omm: /opt/FusionInsight_Manager/ -R
    [root@hd06 opt]# chown omm: /opt/FusionInsight_SetupTool -R

    3, modify operating system configuration files

    The operating system configuration file node contains the operating system configuration file ( "preinstall.ini"), the partition profile nodes ( "host0.ini"), according to each of the files to generate the sample manually modify the parameters, and upload it to the respective nodes position.

  • Modify preinstall.ini file
    [root@hd06 opt]# cd FusionInsight_SetupTool/preinstall
    [root@hd06 preinstall]# vi preinstall.ini
    g_hosts="192.168.120.31"
    g_parted=2
    g_parted_conf="192.168.120.31:host0.ini;"
    g_hostname_conf="192.168.120.31:192.168.120.31:hd06;"
    g_add_pkg=1
    g_pkgs_dir="centos-7.4:/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"
  • Create a file host0.ini
    [root@hd06 preinstall]# vi 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          

    The specific meaning of the above parameters, please refer to the official documentation. After performing this step is completed, it will mount the appropriate partition, as shown below:
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide

    4, execution preinstall

    Enter preinstall execution directory and execute the preinstall script, then you need to enter a user password.

[root@hd06 preinstall]# cd ..
[root@hd06 FusionInsight_SetupTool]# ./setuptool.sh preinstall -n
Please enter cluster SSH password for root: 
**FusionInsight PreInstall is starting...
**********************************
*****FusionInsight Preinstall***** 
********************************** 
***** Time:66s 
***** Running:0 
***** Success:1 
***** Failure:0 
***** Total:1 
***** Schedule:100%

You can get more information about the preinstall from /tmp/fi-preinstall.log and /tmp/diskmgt/autopart.log

5, stand-alone mounting Manager

  • Modify the file install.ini
    [root@hd06 ~]# cd /opt/FusionInsight_Manager/software
    [root@hd06 software]# vi install.ini
    [HA]
    ha_mode=single
    local_ip1=192.168.120.31
    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=
    realm_parse_ip=
    kerberos_realm=
    [/HA]

    The default value ha_mode double, where instead SINGLE;
    local_ip1 of native IP;
    bigdata_home cluster installation directory, can be customized;
    bigdata_data_home cluster data directory, can be customized.

  • Perform the installation
    [root@hd06 software]# ./install.sh -f /opt/FusionInsight_Manager/software/install.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://192.168.120.31:8080/web/ to continue cluster installation.
    Installation is successful. 

    6, stand-alone configuration script execution

    GaussDB 200 default deployment requires at least three nodes To deploy stand-alone version requires a cluster before installation, run the stand-alone configuration script, the minimum number of instances of each configured service instances to 1. After performing stand-alone configuration script, you need to restart the controller to take effect.

    [root@hd06 ~]# su - omm
    Last login: Wed Oct 23 11:08:25 CST 2019
    [omm@hd06 ~]$ sh ${BIGDATA_HOME}/om-server/om/sbin/enable_single_host_cluster.sh
    [omm@hd06 ~]$ sh ${BIGDATA_HOME}/om-server/om/sbin/restart-controller.sh
    Restarting controller service using configuration /opt/huawei/Bigdata/om-server/om/sbin/../etc/om
    Enter into stop-controller.sh
    End into stop-controller.sh
    Enter into start-controller.sh
    Controller start with process id 11163.
    End into start-controller.sh
    [omm@hd06 ~]$ 

    7, install a single node GaussDB 200

    Use access addresses generated Step 5 FusionInsight Manager login to the system, the initial landing need to change the admin password, the initial password is Admin @ 123. Click "Create cluster", as follows:
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide
    name of the cluster can customize the product type is the default authentication mode in secure mode.
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide
    Enter the machine's IP information, as well as the root password, click Find.
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide
    Select MPPDB, the next step.
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide
    Check all roles on the next step.
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide

8, after checking the installation

  • Check the status of the cluster
    Login FusionInsight Manager system, check its status. Select "clusters> cluster name to be operated> Services", "running status" of each service as "good." FIG follows:
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide
    a check node state. In the "run state" FusionInsight Manager page, click the "host", each node is "good." As shown below:
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide

Use the command inspection, as follows:

[omm@hd06 ~]$ source ${BIGDATA_HOME}/mppdb/.mppdbgs_profile
[omm@hd06 ~]$ gs_om -t status --detail
[  CMServer State   ]

node    node_ip         instance                                    state
---------------------------------------------------------------------------
1  hd06 192.168.120.31  1    /opt/huawei/Bigdata/mppdb/cm/cm_server Primary

[   Cluster State   ]

cluster_state   : Normal
redistributing  : No
balanced        : Yes

[ Coordinator State ]

node    node_ip         instance                                  state
-------------------------------------------------------------------------
1  hd06 192.168.120.31  5001 /srv/BigData/mppdb/data1/coordinator Normal

[ Central Coordinator State ]

node    node_ip         instance                                  state
-------------------------------------------------------------------------
1  hd06 192.168.120.31  5001 /srv/BigData/mppdb/data1/coordinator Normal

[     GTM State     ]

node    node_ip         instance                           state     
---------------------------------------------------------------------
1  hd06 192.168.120.31  1001 /opt/huawei/Bigdata/mppdb/gtm P Primary 
[  Datanode State   ]

node    node_ip         instance                              state
---------------------------------------------------------------------------------
1  hd06 192.168.120.31  6001 /srv/BigData/mppdb/data1/master1 P Primary Normal
1  hd06 192.168.120.31  6002 /srv/BigData/mppdb/data1/master2 P Primary Normal
1  hd06 192.168.120.31  6003 /srv/BigData/mppdb/data1/master3 P Primary Normal
1  hd06 192.168.120.31  6004 /srv/BigData/mppdb/data1/master4 P Primary Normal
1  hd06 192.168.120.31  6005 /srv/BigData/mppdb/data1/master5 P Primary Normal
1  hd06 192.168.120.31  6006 /srv/BigData/mppdb/data1/master6 P Primary Normal
[omm@hd06 ~]$ 
  • Perform a health check
    Select "clusters> cluster name to be operated"> select "More> health check."
    Huawei GuassDB 200 lightweight single-node mode Deployment Guide

Guess you like

Origin blog.51cto.com/candon123/2444826