#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
扩容工具不带-X参数
./gs_expansion -U omm -G dbgrp -h 192.168.0.1
Start generate xml
Successfully generate xml, the xml file is /home/omm/xml_output_20240207105448.xml
The cluster no need create ssh trust
Start expansion with cluster manager component.
Start to send soft to each standby nodes.
End to send soft to each standby nodes.
Success to send XML to new nodes
Start to perform perinstall on nodes: ['yc-0003']
Preinstall command is: /tmp/gs_expansion_2024-02-07_10_54_50_690269/pkg/script/gs_preinstall -U lh -G lh -X /home/omm/xml_output_20240207105448.xml -L --sep-env-file=/data/omm/env/env10 --non-interactive 2>&1
Success to perform perinstall on nodes ['yc-0003']
Installing applications on all new nodes.
Install on new node output: [SUCCESS] yc-0003:
Using omm:dbgrp to install database.
Using installation program path : /data/omm/openGauss/app
Command for creating symbolic link: ln -snf /data/omm/openGauss/app_452e573e /data/omm/openGauss/app.
Decompressing bin file.
Decompress CM package command: export LD_LIBRARY_PATH=$GPHOME/script/gspylib/clib:$LD_LIBRARY_PATH && tar -zxf "/data/omm/openGauss/tool/script/os_platform/./../../openGauss-x.x.x-CentOS-64bit-cm.tar.gz" -C "/data/omm/openGauss/app"
Decompress CM package successfully.
Successfully decompressed bin file.
Modifying Alarm configuration.
Modifying user's environmental variable $GAUSS_ENV.
Successfully modified user's environmental variable $GAUSS_ENV.
Fixing file permission.
Set Cgroup config file to appPath.
Successfully Set Cgroup.
Successfully installed APP on nodes ['yc-0003'].
success to send all CA file.
Success to init instance on nodes ['yc-0003']
Start to generate and send cluster static file.
End to generate and send cluster static file.
The current cluster does not support VIP.
Ready to perform command on node [yc-0003]. Command is : source /data/omm/env/env10;gs_guc set -D /data/omm/openGauss/data/dn1 -h 'host all lh 192.168.0.1/32 trust' -h 'host all all 192.168.0.1/32 sha256'
Successfully set hba on all nodes.
Remove dynamic_config_file and CM metadata directory on all nodes.
Expansion results:
192.168.0.1: Success
须知:
对数据库集群进行扩容前,需要关注主机及新扩容节点cpu、io、网络等情况,不建议在硬件压力较大时执行扩容,否则可能导致扩容耗时较长甚至扩容失败。
当原集群数据量较大时,在进行扩容操作前应当在主机上先执行checkpoint,否则可能导致扩容耗时较长甚至扩容失败。
#openGauss #入门 #安装 #数据库 #开源