本文将介绍就地升级、灰度升级和滚动升级的详细操作:
就地升级和灰度升级操作步骤
以root身份登录节点。
创建新包目录。
mkdir -p /opt/software/gaussdb_upgrade将需要更新的新包上传至目录“/opt/software/gaussdb_upgrade”并解压。
进入安装包解压出的script目录下:
cd /opt/software/gaussdb_upgrade/script在就地升级或灰度升级前执行前置脚本gs_preinstall。
./gs_preinstall -U omm -G dbgrp -X /opt/software/GaussDB_Kernel/clusterconfig.xml切换至omm用户。
su - omm数据库状态正常时,使用如下命令进行就地升级或者灰度升级。
示例一:使用gs_upgradectl脚本执行就地升级。
gs_upgradectl -t auto-upgrade -X /opt/software/GaussDB_Kernel/clusterconfig.xml示例二:使用gs_upgradectl脚本执行灰度升级。
gs_upgradectl -t auto-upgrade -X /opt/software/GaussDB_Kernel/clusterconfig.xml --grey数据库状态正常时,使用如下命令进行滚动升级。
示例一:使用gs_upgradectl脚本执行指定单节点升级。
gs_upgradectl -t auto-upgrade -X /opt/software/GaussDB_Kernel/clusterconfig.xml --grey -h hostname0示例二:使用gs_upgradectl脚本执行指定多节点升级。
gs_upgradectl -t auto-upgrade -X /opt/software/GaussDB_Kernel/clusterconfig.xml --grey -h hostname0,hostname1数据库状态正常时,使用如下命令进行升级剩余节点。
gs_upgradectl -t auto-upgrade -X /opt/software/GaussDB_Kernel/clusterconfig.xml --grey --continue
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




