Greenplum 6 一键升级脚本

Greenplum 6 一键升级脚本,第1张

Greenplum 6 一键升级脚本

cat .bashrc 

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions

source /usr/local/greenplum-db/greenplum_path.sh
export MASTER_DATA_DIRECTORY=/data/master/gpseg-1
export PGPORT=5432
export PGUSER=gpadmin
export PGDATAbase=postgres
export LD_PRELOAD=/lib64/libz.so.1 ps

cat all_host

mdw
smdw
sdw3

从6.17.2升级到6.18.0

su - gpadmin
gpstop -af
gpssh -f all_host -v -e 'sudo yum -y upgrade /home/gpadmin/open-source-greenplum-db-6.18.0-rhel7-x86_64.rpm'
gpstart -a

参考:https://docs.greenplum.org/6-17/install_guide/upgrading.html

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4661471.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-06
下一篇 2022-11-06

发表评论

登录后才能评论

评论列表(0条)

保存