openGauss这么多工具?到底要选哪个?(411)

16 阅读1分钟

#openGauss #入门 #安装 #数据库 #开源

知识来源:docs-opengauss.osinfra.cn/zh/

示例五:使用gs_upgradectl脚本执行指定节点升级。

升级部分指定节点

gs_upgradectl -t auto-upgrade -X /data/node2.xml --grey -h hostname0
Static configuration matched with old static configuration files.
Successfully set upgrade_mode to 0.
Checking upgrade environment.
Successfully checked upgrade environment.
Start to do health check.
Successfully checked cluster status.
Upgrade nodes ['hostname0'].
NOTICE: The directory /data/install/app_oldcommitid will be deleted after commit-upgrade, please make sure there is no personal data.
Performing grey rollback.
No need to rollback.
The directory /data/install/app_oldcommitid will be deleted after commit-upgrade, please make sure there is no personal data.
Installing new binary.
copy certs from /data/install/app_oldcommitid to /data/install/app_newcommitid.
Successfully copy certs from /data/install/app_oldcommitid to /data/install/app_newcommitid.
Successfully backup hotpatch config file.
Sync cluster configuration.
Successfully synced cluster configuration.
Switch symbolic link to new binary directory.
Successfully switch symbolic link to new binary directory.
Switching all db processes.
Check cluster state.
Create checkpoint before switching.
Switching DN processes.
Ready to grey start cluster.
Grey start cluster successfully.
Wait for the cluster status normal or degrade.
Successfully switch all process version
The nodes ['hostname0'] have been successfully upgraded to new version. Then do health check.
Start to do health check.
Successfully checked cluster status.
The nodes ['hostname0']ve been successfully upgraded.Then can upgrade the remaining nodes.

#openGauss #入门 #安装 #数据库 #开源

知识来源:docs-opengauss.osinfra.cn/zh/