iftest -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabled fi iftest -f /sys/kernel/mm/transparent_hugepage/defrag; then echo never > /sys/kernel/mm/transparent_hugepage/defrag fi
[root@lxnchan-gausstester-node1 script]# /opt/software/openGauss/script/gs_checkos -i A -h lxnchan-gausstester-node1.local --detail Checking items: A1. [ OS version status ] : Normal [lxnchan-gausstester-node1.local] openEuler_20.03_64bit A2. [ Kernel version status ] : Normal The names about all kernel versions are same. The value is "4.19.90-2311.5.0.0228.oe1.x86_64". A3. [ Unicode status ] : Normal The values of all unicode are same. The value is "LANG=en_US.UTF-8". A4. [ Time zone status ] : Normal The informations about all timezones are same. The value is "+0800". A5. [ Swap memory status ] : Normal The value about swap memory is correct. A6. [ System control parameters status ] : Warning [lxnchan-gausstester-node1.local] Warning reason: variable 'net.ipv4.tcp_retries1' RealValue '3' ExpectedValue '5'. Warning reason: variable 'net.ipv4.tcp_syn_retries' RealValue '6' ExpectedValue '5'. Check_SysCtl_Parameter warning. A7. [ File system configuration status ] : Warning [lxnchan-gausstester-node1.local] Warning reason: variable 'open files' RealValue '1024' ExpectedValue '1000000' Warning reason: variable 'max user processes' RealValue '29501' ExpectedValue 'unlimited' A8. [ Disk configuration status ] : Normal The value about XFS mount parameters is correct. A9. [ Pre-read block size status ] : Normal The value about Logical block size is correct. BondMode Null A11.[ Network card configuration status ] : Warning [lxnchan-gausstester-node1.local] BondMode Null Warning reason: Failed to obtain the network card speed value. Commands for obtain the network card speed: /sbin/ethtool lo | grep 'Speed:'. Error: A12.[ Time consistency status ] : Warning [lxnchan-gausstester-node1.local] The NTPD not detected on machine and local time is "2023-12-02 21:14:57". A13.[ Firewall service status ] : Normal The firewall service is stopped. A14.[ THP service status ] : Normal The THP service is stopped. Total numbers:13. Abnormal numbers:0. Warning numbers:4.
[root@lxnchan-gausstester-node1 script]# ./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/cluster_config.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 host ip env Successfully set host ip env. Are you sure you want to create the user[omm] (yes/no)? yes Preparing SSH service. Successfully prepared SSH service. Checking OS software. Successfully check os software. Checking OS version. Successfully checked OS version. Creating cluster's path. Successfully created cluster's path. Set and check OS parameter. Setting OS parameters. Successfully set OS parameters. Warning: Installation environment contains some warning messages. Please get more details by "/opt/software/openGauss/script/gs_checkos -i A -h lxnchan-gausstester-node1.local --detail". Set and check OS parameter completed. Preparing CRON service. Successfully prepared CRON service. Setting user environmental variables. Successfully set user environmental variables. Setting the dynamic link library. Successfully set the dynamic link library. Setting Core file Successfully set core path. Setting pssh path Successfully set pssh path. Setting Cgroup. Successfully set Cgroup. Set ARM Optimization. No need to set ARM Optimization. Fixing server package owner. Setting finish flag. Successfully set finish flag. Preinstallation succeeded.
[omm@lxnchan-gausstester-node1 ~]$ gs_install -X /opt/software/openGauss/cluster_config.xml 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/huawei/install/app/share/sslcert/om NO cm_server instance, no need to create CA for CM. Non-dss_ssl_enable, no need to create CA for DSS Cluster installation is completed. Configuring. Deleting instances from all nodes. Successfully deleted instances from all nodes. Checking node configuration on all nodes. Initializing instances on all nodes. Updating instance configuration on all nodes. Check consistence of memCheck and coresCheck on database nodes. Configuring pg_hba on all nodes. Configuration is completed. The cluster status is Normal. Successfully started cluster. Successfully installed application. end deploy..
最后返回Successfully即可,安装阶段结束。
验证与交付阶段
切换到omm用户
1
su - omm
查看运行状态:
1
gs_om -t status
回显:
1 2 3
cluster_name : lxnchan_openGauss cluster_state : Normal redistributing : No