[root@db1 ~]# yum install libaio* -y Last metadata expiration check: 0:00:44 ago on Thu 15 Oct 2021 10:38:26 AM CST. Package libaio-0.3.111-5.oe1.x86_64 is already installed. Dependencies resolved. …………………. [root@db1 ~]# yum install libnsl* -y Last metadata expiration check: 0:00:24 ago on Thu 07 Jan 2021 10:17:38 AM CST. Package libnsl2-1.2.0-4.oe1.x86_64 is already installed. Dependencies resolved. ………………….
[root@db1 openGauss]# cd /opt/software/openGauss/script [root@db1 script]# python gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/clusterconfig.xml 显示如下: Parsing the configuration file. Successfully parsed the configuration file. Installing the tools on the local node. Successfully installed the tools on the local node. Setting pssh path Successfully set core path. Are you sure you want to create the user[omm] and create trust for it (yes/no)? yes Please enter password for cluster user. Password: --说明:此处输入密码时,屏幕上不会有任何反馈,不用担心,这是LINUX操作系统对密码的保护. Please enter password for cluster user again. Password: --说明:此处输入密码时,屏幕上不会有任何反馈,不用担心,这是LINUX操作系统对密码的保护. Successfully created [omm] user on all nodes. Preparing SSH service. Successfully prepared SSH service. …………………………………….. Successfully set finish flag. Preinstallation succeeded.
初始化数据库
init6 初始化虚拟机 释放内存
1 2 3 4 5
[root@db1 script]# init 6 Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(ONE) at 10:51:59. Type `help' to learn how to use Xshell prompt.
[root@db1 openGauss]# su - omm Last login: Thu Sep 10 15:26:21 CST 2020 on pts/0 [omm@db1 ~]$ cd /opt/software/openGauss/script [omm@db1 script]$ gs_install -X /opt/software/openGauss/clusterconfig.xml --gsinit-parameter="--encoding=UTF8" --dn-guc="max_process_memory=2GB" --dn-guc="shared_buffers=128MB" --dn-guc="bulk_write_ring_size=128MB" --dn-guc="cstore_buffers=16MB" Parsing the configuration file. Check preinstall on every node. Successfully checked preinstall on every node. Creating the backup directory. Successfully created the backup directory. begin deploy.. Installing the cluster. begin prepare Install Cluster.. Checking the installation environment on all nodes. begin install Cluster.. Installing applications on all nodes. Successfully installed APP. begin init Instance.. encrypt cipher and rand files for database. Please enter password for database: --说明:此处输入密码时,屏幕上不会有任何反馈 Please repeat for database: --说明:此处输入密码时,屏幕上不会有任何反馈 begin to create CA cert files The sslcert will be generated in /opt/gaussdb/app/share/sslcert/om …………………………. Successfully started cluster. Successfully installed application. end deploy..