cat .bashrc
代码语言:javascript复制# .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
代码语言:javascript复制mdw
smdw
sdw3
从6.17.2升级到6.18.0
代码语言:javascript复制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