os: ubuntu 16.04
db: greenplum 5.13
ip 规划如下
192.168.0.99 mas
192.168.0.100 sla
192.168.0.101 seg1
192.168.0.102 seg2
参考<
下载 greenplum 5.13 社区版
$ su - gpadmin
$ cd /tmp
$ wget https://github.com/greenplum-db/gpdb/archive/5.13.0.tar.gz
$ tar -zxvf 5.13.0.tar.gz
$ chown -R gpadmin:gpadmin /tmp/5.13.0.tar.gz
$ chown -R gpadmin:gpadmin /tmp/gpdb-5.13.0
gporca
gporca 为 greenplum 新一代优化器,有手动安装和自动安装两种安装方式。
每个节点都需要安装 gporca
# pip install conan
# apt install libxerces-c-dev libxerces-c3.1 cmake
$ cd /tmp/gpdb-5.13.0/depends
$ ./configure
$ make
===================================================================
Orca can now be installed on the local system using "make install"
and be used as any normal system library
If you'd rather compile GPDB using ORCA in it's current location and then
install ORCA into the gpdb installation location then first run the top
level configure as follows:
LD_LIBRARY_PATH=/tmp/gpdb-5.13.0/depends/build/lib ./configure \
--with-libraries=/tmp/gpdb-5.13.0/depends/build/lib \
--with-includes=/tmp/gpdb-5.13.0/depends/build/include
Then run "make".
Then run "LD_LIBRARY_PATH=/tmp/gpdb-5.13.0/depends/build/lib make install"
These steps should work on both MacOS and Linux
$ exit
# cd /tmp/gpdb-5.13.0/depends
# make install_local
===================================================================
Orca can now be installed on the local system using "make install"
and be used as any normal system library
If you'd rather compile GPDB using ORCA in it's current location and then
install ORCA into the gpdb installation location then first run the top
level configure as follows:
LD_LIBRARY_PATH=/tmp/gpdb-5.13.0/depends/build/lib ./configure \
--with-libraries=/tmp/gpdb-5.13.0/depends/build/lib \
--with-includes=/tmp/gpdb-5.13.0/depends/build/include
Then run "make".
Then run "LD_LIBRARY_PATH=/tmp/gpdb-5.13.0/depends/build/lib make install"
These steps should work on both MacOS and Linux
/bin/mkdir -p /usr/local
cp -R build/* /usr/local
# /bin/mkdir -p /usr/local ;
\cp -Rf build/* /usr/local ;
至此,gporca 优化器已经事先安装好了。
之后如果需要再次安装时,则需要先清空gporca信息,而不论gporca是自动安装还是手动安装。
# rm -rf /usr/local/include/naucrates
rm -rf /usr/local/include/gpdbcost
rm -rf /usr/local/include/gpopt
rm -rf /usr/local/include/gpos
rm -rf /usr/local/lib/libnaucrates.so*
rm -rf /usr/local/lib/libgpdbcost.so*
rm -rf /usr/local/lib/libgpopt.so*
rm -rf /usr/local/lib/libgpos.so*
下面是手动安装过程
安装 cmake
前面安装依赖包时已经安装过了
# apt install cmake
安装 gp-xerces
# cd /root
# git clone https://github.com/greenplum-db/gp-xerces.git
# cd gp-xerces
# mkdir build
# cd ./build
# ../configure --prefix=/usr/local
# make
# make install
安装 re2c
# cd /root
# git clone https://github.com/skvadrik/re2c.git
# cd ./re2c/re2c
# ./autogen.sh
# ./configure --prefix=/usr/local
# make bootstrap
# make check
# make tests
# make install
安装 Ninja
# cd /root
# git clone https://github.com/ninja-build/ninja.git
# cd ninja
# ./configure.py --bootstrap
# ln -s /root/ninja/ninja /usr/bin/ninja
安装 gp-orca
一定要看下安装的 greenplum-db版本对 gporca的版本要求
# cat /tmp/gpdb-5.13.0/depends/conanfile_orca.txt
[requires]
orca/v3.14.0@gpdb/stable
[imports]
include, * -> build/include
lib, * -> build/lib
# cd /tmp
# wget https://github.com/greenplum-db/gporca/archive/v3.14.0.zip
# unzip v3.14.0.zip
# cd gporca-3.14.0
# cmake -GNinja -H. -Bbuild
# ninja install -C build
--
--
-- Installing: /usr/local/include/gpopt/version.h
待安装完成后,进入 ./build目录,执行ctest命令进行检查,确保100% tests passed
# cd /tmp/gporca-3.14.0/build/
# which ctest
# ctest
100% tests passed, 0 tests failed out of 161
Total Test time (real) = 661.05 sec
如果需要手动再次执行gp-orca,需要事先删除 build 这个文件夹下的内容。
# su - gpadmin
$ cd /tmp/gpdb-5.13.0
$ ./configure --prefix=/usr/greenplum-5.13/ --with-perl --with-python --with-libxml --with-gssapi \
--enable-orca --enable-mapreduce --with-openssl --enable-gpperfmon --enable-pxf \
--enable-cassert --enable-debug --enable-testutils --enable-debugbreak --enable-depend \
--with-includes=/usr/local/include/ --with-libraries=/usr/local/lib/
$ make
$ make install
选项可以参考 <
设置环境变量
# su - gpadmin
$ vi ~/.profile
source /usr/greenplum-5.13/greenplum_path.sh
$ vi ~/.bashrc
source /usr/greenplum-5.13/greenplum_path.sh
greenplum 正常运行时所有节点都需要安装 greenplum 软件和 gporca,目前为止 sla,seg1,seg2 上均无 greenplum 软件和 gporca。
1)从 mas 节点上复制 greenplum 软件到 其余节点,仍需额外安装 gporca。
2)其余节点编译 greenplum 软件及 gporca。
现在采用第一种方式。
mas 节点上配置集群节点文件
# su - gpadmin
$ source /usr/greenplum-5.13/greenplum_path.sh
$ cd $GPHOME
$ echo "mas" >> all_host;
echo "sla" >> all_host;
echo "seg1" >> all_host;
echo "seg2" >> all_host;
$ echo "seg1" >> all_segment;
echo "seg2" >> all_segment;
mas节点上配置集群节点的ssh信任
greenplum 安装在 /usr 文件夹下,所以需要 root 权限(os 事先配置好 root,gpadmin 的ssh信任)
先配置下 root 用户的ssh信任
# source /usr/greenplum-5.13/greenplum_path.sh
# /usr/greenplum-5.13/bin/gpssh-exkeys -f /usr/greenplum-5.13/all_host
再配置下 gpadmin 用户的ssh信任
$ source /usr/greenplum-5.13/greenplum_path.sh
$ /usr/greenplum-5.13/bin/gpssh-exkeys -f /usr/greenplum-5.13/all_host
mas节点上操作批量安装
# /usr/greenplum-5.13/bin/gpseginstall -f /usr/greenplum-5.13/all_segment -u gpadmin -p rootroot
mas节点上查看批量安装情况
# /usr/greenplum-5.13/bin/gpssh -f /usr/greenplum-5.13/all_segment -e ls -l /usr/greenplum-5.13
mas节点上check 各节点情况
# /usr/greenplum-5.13/bin/gpcheck -f /usr/greenplum-5.13/all_host
# /usr/greenplum-5.13/bin/gpcheckperf -f /usr/greenplum-5.13/all_host -d /tmp -d /home/gpadmin/ -v -r ds
# /usr/greenplum-5.13/bin/gpchecknet -f /usr/greenplum-5.13/all_host -d /tmp
# /usr/greenplum-5.13/bin/gpchecknet -f /usr/greenplum-5.13/all_host -r N -d /tmp
根据提示修复,主要是gpcheck的一些告警提示
mas节点上的初始化文件
# su - gpadmin
$ cd /usr/greenplum-5.13
$ cp /usr/greenplum-5.13/docs/cli_help/gpconfigs/gpinitsystem_config /usr/greenplum-5.13/
$ chmod 775 ./gpinitsystem_config
$ vi ./gpinitsystem_config
$ egrep -v "(^$|^#)" ./gpinitsystem_config
ARRAY_NAME="test Greenplum Data Platform"
SEG_PREFIX=gpseg
PORT_BASE=6000
declare -a DATA_DIRECTORY=(/u01/greenplum-data)
MASTER_HOSTNAME=mas
MASTER_DIRECTORY=/u01/greenplum-data
MASTER_PORT=5432
TRUSTED_SHELL=ssh
CHECK_POINT_SEGMENTS=100
ENCODING=UNICODE
MIRROR_PORT_BASE=7000
REPLICATION_PORT_BASE=8000
MIRROR_REPLICATION_PORT_BASE=9000
declare -a MIRROR_DATA_DIRECTORY=(/u01/greenplum-mirror)
DATABASE_NAME=peiybdb
MACHINE_LIST_FILE=/usr/greenplum-5.13/all_segment
有不清楚的,可以通过 gpinitsystem --help 查看
再次强调的是 MACHINE_LIST_FILE 是 segment 的主机
mas节点上执行初始化
-s 表示 master 节点配置 slave
$ which gpinitsystem
$ gpinitsystem -c /usr/greenplum-5.13/gpinitsystem_config -s sla
-s sla 指明 master 有个 slave
提示如下错误:
20181115:15:52:49:gpinitsystem:mas:gpadmin-[FATAL]:-Failed to complete obtain psql count Master gp_segment_configuration Script Exiting!
20181115:15:52:49:032503 gpinitsystem:mas:gpadmin-[WARN]:-Script has left Greenplum Database in an incomplete state
在网上搜索后,尝试如下解决方法:
# echo "RemoveIPC=no" >> /etc/systemd/logind.conf;
/bin/systemctl restart systemd-logind.service;
mas,sla 节点最终环境变量
$ vi ~/.profile
source /usr/greenplum-5.13/greenplum_path.sh
export MASTER_DATA_DIRECTORY=/u01/greenplum-data/gpseg-1
$ vi ~/.bashrc
source /usr/greenplum-5.13/greenplum_path.sh
export MASTER_DATA_DIRECTORY=/u01/greenplum-data/gpseg-1
seg1,seg2 节点最终环境变量
$ vi ~/.profile
source /usr/greenplum-5.13/greenplum_path.sh
$ vi ~/.bashrc
source /usr/greenplum-5.13/greenplum_path.sh
参考:
http://docs.greenplum.org/5130/common/gpdb-features.html
备注日志
$ gpinitsystem -c /usr/greenplum-5.13/gpinitsystem_config -s sla
20181115:16:43:41:005084 gpinitsystem:mas:gpadmin-[INFO]:-Checking configuration parameters, please wait...
20181115:16:43:41:005084 gpinitsystem:mas:gpadmin-[INFO]:-Reading Greenplum configuration file /usr/greenplum-5.13/gpinitsystem_config
20181115:16:43:41:005084 gpinitsystem:mas:gpadmin-[INFO]:-Locale has not been set in /usr/greenplum-5.13/gpinitsystem_config, will set to default value
20181115:16:43:41:005084 gpinitsystem:mas:gpadmin-[INFO]:-Locale set to en_US.utf8
20181115:16:43:41:005084 gpinitsystem:mas:gpadmin-[INFO]:-MASTER_MAX_CONNECT not set, will set to default value 250
20181115:16:43:42:005084 gpinitsystem:mas:gpadmin-[INFO]:-Checking configuration parameters, Completed
20181115:16:43:42:005084 gpinitsystem:mas:gpadmin-[INFO]:-Commencing multi-home checks, please wait...
..
20181115:16:43:43:005084 gpinitsystem:mas:gpadmin-[INFO]:-Configuring build for standard array
20181115:16:43:43:005084 gpinitsystem:mas:gpadmin-[INFO]:-Commencing multi-home checks, Completed
20181115:16:43:43:005084 gpinitsystem:mas:gpadmin-[INFO]:-Building primary segment instance array, please wait...
..
20181115:16:43:44:005084 gpinitsystem:mas:gpadmin-[INFO]:-Building group mirror array type , please wait...
..
20181115:16:43:46:005084 gpinitsystem:mas:gpadmin-[INFO]:-Checking Master host
20181115:16:43:46:005084 gpinitsystem:mas:gpadmin-[INFO]:-Checking new segment hosts, please wait...
....
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Checking new segment hosts, Completed
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Greenplum Database Creation Parameters
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:---------------------------------------
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master Configuration
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:---------------------------------------
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master instance name = test Greenplum Data Platform
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master hostname = mas
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master port = 5432
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master instance dir = /u01/greenplum-data/gpseg-1
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master LOCALE = en_US.utf8
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Greenplum segment prefix = gpseg
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master Database = peiybdb
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master connections = 250
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master buffers = 128000kB
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Segment connections = 750
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Segment buffers = 128000kB
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Checkpoint segments = 100
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Encoding = UNICODE
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Postgres param file = Off
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Initdb to be used = /usr/greenplum-5.13/bin/initdb
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-GP_LIBRARY_PATH is = /usr/greenplum-5.13/lib
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-HEAP_CHECKSUM is = on
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-HBA_HOSTNAMES is = 0
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Ulimit check = Passed
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Array host connect type = Single hostname per node
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master IP address [1] = ::1
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master IP address [2] = 10.0.2.71
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master IP address [3] = 192.168.0.99
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master IP address [4] = fd17:625c:f037:2:a00:27ff:fe30:7f2b
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master IP address [5] = fe80::a00:27ff:fe30:7f2b
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Master IP address [6] = fe80::a00:27ff:fe6e:7fb0
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Standby Master = sla
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Primary segment # = 1
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Standby IP address = ::1
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Standby IP address = 10.0.2.70
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Standby IP address = 192.168.0.100
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Standby IP address = fd17:625c:f037:2:a00:27ff:fe4f:6f61
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Standby IP address = fe80::a00:27ff:fe4f:6f61
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Standby IP address = fe80::a00:27ff:feec:79c8
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Total Database segments = 2
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Trusted shell = ssh
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Number segment hosts = 2
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Mirror port base = 7000
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Replicaton port base = 8000
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Mirror replicaton port base= 9000
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Mirror segment # = 1
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Mirroring config = ON
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Mirroring type = Group
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:----------------------------------------
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Greenplum Primary Segment Configuration
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:----------------------------------------
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-seg1 /u01/greenplum-data/gpseg0 6000 2 0 8000
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-seg2 /u01/greenplum-data/gpseg1 6000 3 1 8000
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:---------------------------------------
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-Greenplum Mirror Segment Configuration
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:---------------------------------------
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-seg2 /u01/greenplum-mirror/gpseg0 7000 4 0 9000
20181115:16:43:53:005084 gpinitsystem:mas:gpadmin-[INFO]:-seg1 /u01/greenplum-mirror/gpseg1 7000 5 1 9000
Continue with Greenplum creation Yy|Nn (default=N):
> y
20181115:16:44:38:005084 gpinitsystem:mas:gpadmin-[INFO]:-Building the Master instance database, please wait...
20181115:16:44:44:005084 gpinitsystem:mas:gpadmin-[INFO]:-Starting the Master in admin mode
20181115:16:44:50:005084 gpinitsystem:mas:gpadmin-[INFO]:-Commencing parallel build of primary segment instances
20181115:16:44:50:005084 gpinitsystem:mas:gpadmin-[INFO]:-Spawning parallel processes batch [1], please wait...
..
20181115:16:44:50:005084 gpinitsystem:mas:gpadmin-[INFO]:-Waiting for parallel processes batch [1], please wait...
...............................
20181115:16:45:21:005084 gpinitsystem:mas:gpadmin-[INFO]:------------------------------------------------
20181115:16:45:21:005084 gpinitsystem:mas:gpadmin-[INFO]:-Parallel process exit status
20181115:16:45:21:005084 gpinitsystem:mas:gpadmin-[INFO]:------------------------------------------------
20181115:16:45:21:005084 gpinitsystem:mas:gpadmin-[INFO]:-Total processes marked as completed = 2
20181115:16:45:21:005084 gpinitsystem:mas:gpadmin-[INFO]:-Total processes marked as killed = 0
20181115:16:45:21:005084 gpinitsystem:mas:gpadmin-[INFO]:-Total processes marked as failed = 0
20181115:16:45:21:005084 gpinitsystem:mas:gpadmin-[INFO]:------------------------------------------------
20181115:16:45:21:005084 gpinitsystem:mas:gpadmin-[INFO]:-Commencing parallel build of mirror segment instances
20181115:16:45:21:005084 gpinitsystem:mas:gpadmin-[INFO]:-Spawning parallel processes batch [1], please wait...
..
20181115:16:45:21:005084 gpinitsystem:mas:gpadmin-[INFO]:-Waiting for parallel processes batch [1], please wait...
..................
20181115:16:45:39:005084 gpinitsystem:mas:gpadmin-[INFO]:------------------------------------------------
20181115:16:45:39:005084 gpinitsystem:mas:gpadmin-[INFO]:-Parallel process exit status
20181115:16:45:39:005084 gpinitsystem:mas:gpadmin-[INFO]:------------------------------------------------
20181115:16:45:39:005084 gpinitsystem:mas:gpadmin-[INFO]:-Total processes marked as completed = 2
20181115:16:45:39:005084 gpinitsystem:mas:gpadmin-[INFO]:-Total processes marked as killed = 0
20181115:16:45:39:005084 gpinitsystem:mas:gpadmin-[INFO]:-Total processes marked as failed = 0
20181115:16:45:39:005084 gpinitsystem:mas:gpadmin-[INFO]:------------------------------------------------
20181115:16:45:39:005084 gpinitsystem:mas:gpadmin-[INFO]:-Deleting distributed backout files
20181115:16:45:39:005084 gpinitsystem:mas:gpadmin-[INFO]:-Removing back out file
20181115:16:45:39:005084 gpinitsystem:mas:gpadmin-[INFO]:-No errors generated from parallel processes
20181115:16:45:40:005084 gpinitsystem:mas:gpadmin-[INFO]:-Restarting the Greenplum instance in production mode
20181115:16:45:40:008805 gpstop:mas:gpadmin-[INFO]:-Starting gpstop with args: -a -l /home/gpadmin/gpAdminLogs -i -m -d /u01/greenplum-data/gpseg-1
20181115:16:45:40:008805 gpstop:mas:gpadmin-[INFO]:-Gathering information and validating the environment...
20181115:16:45:40:008805 gpstop:mas:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20181115:16:45:40:008805 gpstop:mas:gpadmin-[INFO]:-Obtaining Segment details from master...
20181115:16:45:40:008805 gpstop:mas:gpadmin-[INFO]:-Greenplum Version: 'postgres (Greenplum Database) 5.0.0 build dev'
20181115:16:45:40:008805 gpstop:mas:gpadmin-[INFO]:-There are 0 connections to the database
20181115:16:45:40:008805 gpstop:mas:gpadmin-[INFO]:-Commencing Master instance shutdown with mode='immediate'
20181115:16:45:40:008805 gpstop:mas:gpadmin-[INFO]:-Master host=mas
20181115:16:45:40:008805 gpstop:mas:gpadmin-[INFO]:-Commencing Master instance shutdown with mode=immediate
20181115:16:45:40:008805 gpstop:mas:gpadmin-[INFO]:-Master segment instance directory=/u01/greenplum-data/gpseg-1
20181115:16:45:41:008805 gpstop:mas:gpadmin-[INFO]:-Attempting forceful termination of any leftover master process
20181115:16:45:41:008805 gpstop:mas:gpadmin-[INFO]:-Terminating processes for segment /u01/greenplum-data/gpseg-1
20181115:16:45:42:008836 gpstart:mas:gpadmin-[INFO]:-Starting gpstart with args: -a -l /home/gpadmin/gpAdminLogs -d /u01/greenplum-data/gpseg-1
20181115:16:45:42:008836 gpstart:mas:gpadmin-[INFO]:-Gathering information and validating the environment...
20181115:16:45:42:008836 gpstart:mas:gpadmin-[INFO]:-Greenplum Binary Version: 'postgres (Greenplum Database) 5.0.0 build dev'
20181115:16:45:42:008836 gpstart:mas:gpadmin-[INFO]:-Greenplum Catalog Version: '301705051'
20181115:16:45:42:008836 gpstart:mas:gpadmin-[INFO]:-Starting Master instance in admin mode
20181115:16:45:43:008836 gpstart:mas:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20181115:16:45:43:008836 gpstart:mas:gpadmin-[INFO]:-Obtaining Segment details from master...
20181115:16:45:43:008836 gpstart:mas:gpadmin-[INFO]:-Setting new master era
20181115:16:45:43:008836 gpstart:mas:gpadmin-[INFO]:-Master Started...
20181115:16:45:43:008836 gpstart:mas:gpadmin-[INFO]:-Shutting down master
20181115:16:45:45:008836 gpstart:mas:gpadmin-[INFO]:-Commencing parallel primary and mirror segment instance startup, please wait...
....
20181115:16:45:49:008836 gpstart:mas:gpadmin-[INFO]:-Process results...
20181115:16:45:49:008836 gpstart:mas:gpadmin-[INFO]:-----------------------------------------------------
20181115:16:45:49:008836 gpstart:mas:gpadmin-[INFO]:- Successful segment starts = 4
20181115:16:45:49:008836 gpstart:mas:gpadmin-[INFO]:- Failed segment starts = 0
20181115:16:45:49:008836 gpstart:mas:gpadmin-[INFO]:- Skipped segment starts (segments are marked down in configuration) = 0
20181115:16:45:49:008836 gpstart:mas:gpadmin-[INFO]:-----------------------------------------------------
20181115:16:45:49:008836 gpstart:mas:gpadmin-[INFO]:-Successfully started 4 of 4 segment instances
20181115:16:45:49:008836 gpstart:mas:gpadmin-[INFO]:-----------------------------------------------------
20181115:16:45:49:008836 gpstart:mas:gpadmin-[INFO]:-Starting Master instance mas directory /u01/greenplum-data/gpseg-1
20181115:16:45:51:008836 gpstart:mas:gpadmin-[INFO]:-Command pg_ctl reports Master mas instance active
20181115:16:45:51:008836 gpstart:mas:gpadmin-[INFO]:-No standby master configured. skipping...
20181115:16:45:51:008836 gpstart:mas:gpadmin-[INFO]:-Database successfully started
20181115:16:45:51:005084 gpinitsystem:mas:gpadmin-[INFO]:-Completed restart of Greenplum instance in production mode
20181115:16:46:01:005084 gpinitsystem:mas:gpadmin-[INFO]:-Starting initialization of standby master sla
20181115:16:46:01:008990 gpinitstandby:mas:gpadmin-[INFO]:-Validating environment and parameters for standby initialization...
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:-Checking for filespace directory /u01/greenplum-data/gpseg-1 on sla
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:------------------------------------------------------
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:-Greenplum standby master initialization parameters
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:------------------------------------------------------
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:-Greenplum master hostname = mas
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:-Greenplum master data directory = /u01/greenplum-data/gpseg-1
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:-Greenplum master port = 5432
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:-Greenplum standby master hostname = sla
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:-Greenplum standby master port = 5432
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:-Greenplum standby master data directory = /u01/greenplum-data/gpseg-1
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:-Greenplum update system catalog = On
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:------------------------------------------------------
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:- Filespace locations
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:------------------------------------------------------
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:-pg_system -> /u01/greenplum-data/gpseg-1
20181115:16:46:02:008990 gpinitstandby:mas:gpadmin-[INFO]:-Syncing Greenplum Database extensions to standby
20181115:16:46:03:008990 gpinitstandby:mas:gpadmin-[INFO]:-The packages on sla are consistent.
20181115:16:46:03:008990 gpinitstandby:mas:gpadmin-[INFO]:-Adding standby master to catalog...
20181115:16:46:04:008990 gpinitstandby:mas:gpadmin-[INFO]:-Database catalog updated successfully.
20181115:16:46:04:008990 gpinitstandby:mas:gpadmin-[INFO]:-Updating pg_hba.conf file...
20181115:16:46:08:008990 gpinitstandby:mas:gpadmin-[INFO]:-pg_hba.conf files updated successfully.
20181115:16:46:12:008990 gpinitstandby:mas:gpadmin-[INFO]:-Updating filespace flat files...
20181115:16:46:12:008990 gpinitstandby:mas:gpadmin-[INFO]:-Filespace flat file updated successfully.
20181115:16:46:12:008990 gpinitstandby:mas:gpadmin-[INFO]:-Starting standby master
20181115:16:46:12:008990 gpinitstandby:mas:gpadmin-[INFO]:-Checking if standby master is running on host: sla in directory: /u01/greenplum-data/gpseg-1
20181115:16:46:18:008990 gpinitstandby:mas:gpadmin-[INFO]:-Cleaning up pg_hba.conf backup files...
20181115:16:46:19:008990 gpinitstandby:mas:gpadmin-[INFO]:-Backup files of pg_hba.conf cleaned up successfully.
20181115:16:46:19:008990 gpinitstandby:mas:gpadmin-[INFO]:-Successfully created standby master on sla
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-Successfully completed standby master initialization
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-Scanning utility log file for any warning messages
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[WARN]:-*******************************************************
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[WARN]:-Scan of log file indicates that some warnings or errors
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[WARN]:-were generated during the array creation
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-Please review contents of log file
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-/home/gpadmin/gpAdminLogs/gpinitsystem_20181115.log
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-To determine level of criticality
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-These messages could be from a previous run of the utility
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-that was called today!
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[WARN]:-*******************************************************
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-Greenplum Database instance successfully created
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-------------------------------------------------------
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-To complete the environment configuration, please
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-update gpadmin .bashrc file with the following
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-1. Ensure that the greenplum_path.sh file is sourced
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-2. Add "export MASTER_DATA_DIRECTORY=/u01/greenplum-data/gpseg-1"
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:- to access the Greenplum scripts for this instance:
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:- or, use -d /u01/greenplum-data/gpseg-1 option for the Greenplum scripts
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:- Example gpstate -d /u01/greenplum-data/gpseg-1
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-Script log file = /home/gpadmin/gpAdminLogs/gpinitsystem_20181115.log
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-To remove instance, run gpdeletesystem utility
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-Standby Master sla has been configured
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-To activate the Standby Master Segment in the event of Master
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-failure review options for gpactivatestandby
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-------------------------------------------------------
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-The Master /u01/greenplum-data/gpseg-1/pg_hba.conf post gpinitsystem
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-has been configured to allow all hosts within this new
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-array to intercommunicate. Any hosts external to this
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-new array must be explicitly added to this file
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-Refer to the Greenplum Admin support guide which is
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-located in the /usr/greenplum-5.13/docs directory
20181115:16:46:19:005084 gpinitsystem:mas:gpadmin-[INFO]:-------------------------------------------------------