svn co https://192.168.57.56/head-develop/LightDB/LightDB-A/trunk/Sources ./lightdb-a
1. 前言 — LightDB-A Install Manual 23.1 文档
sudo yum install -y epel-release
sudo yum install -y \
apr \
bzip2 \
cmake3 \
flex \
gcc \
gcc-c++ \
krb5 \
libcurl \
libevent \
libkadm5 \
libyaml \
libxml2 \
libzstd \
openssl \
perl-ExtUtils-Embed \
python3 \
python3-pip \
readline \
xerces-c \
zlib
cd /home/lightdb/sources/lightdb-a pip install -r python-dependencies.txt --user -i http://yum.hundsun.com/mirrors/pypi/simple/ --trusted-host yum.hundsun.com
cd make
vim ./build.sh
./configure --prefix=${stage_dir} --with-uuid=ossp --with-libxml --with-openssl --without-python
sh build.sh
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/util'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/util'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib'
make -C commands install
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/commands'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/commands'
/usr/bin/install -c -m 755 base.py '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/commands/base.py'
for file in __init__.py dca.py gp.py pg.py unix.py; do \
/usr/bin/install -c -m 644 $file '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/commands/'$file ; \
done
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/commands'
make -C data install
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/data'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/data'
/usr/bin/install -c -m 644 23.json '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/data/23.json'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/data'
make -C db install
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/db'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/db'
for file in __init__.py catalog.py dbconn.py; do \
/usr/bin/install -c -m 644 $file '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/db/'$file ; \
done
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/db'
make -C gpMgmttest install
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/gpMgmttest'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/gpMgmttest'
/usr/bin/install -c -m 644 __init__.py '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/gpMgmttest/__init__.py'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/gpMgmttest'
make -C operations install
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/operations'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/operations'
for file in initstandby.py test_utils_helper.py; do \
/usr/bin/install -c -m 755 $file '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/operations/'$file ; \
done
for file in __init__.py buildMirrorSegments.py deletesystem.py detect_unreachable_hosts.py package.py rebalanceSegments.py reload.py segment_reconfigurer.py startSegments.py unix.py update_pg_hba_on_segments.py utils.py segment_tablespace_locations.py; do \
/usr/bin/install -c -m 644 $file '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/operations/'$file ; \
done
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/operations'
make -C programs install
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/programs'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/programs'
/usr/bin/install -c -m 755 gppkg.py '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/programs/gppkg.py'
for file in __init__.py clsAddMirrors.py clsRecoverSegment.py clsSystemState.py programIoUtils.py clsRecoverSegment_triples.py; do \
/usr/bin/install -c -m 644 $file '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/programs/'$file ; \
done
'/usr/bin/perl' ../../../../putversion '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/programs/gppkg.py'
'/usr/bin/perl' ../../../../putversion '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/programs/clsAddMirrors.py'
'/usr/bin/perl' ../../../../putversion '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/programs/clsRecoverSegment.py'
'/usr/bin/perl' ../../../../putversion '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/programs/clsRecoverSegment_triples.py'
'/usr/bin/perl' ../../../../putversion '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/programs/clsSystemState.py'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/programs'
make -C system install
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/system'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/system'
/usr/bin/install -c -m 755 ComputeCatalogUpdate.py '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/system/ComputeCatalogUpdate.py'
for file in __init__.py configurationImplGpdb.py configurationInterface.py environment.py faultProberImplGpdb.py faultProberInterface.py fileSystemImplOs.py fileSystemImplTest.py fileSystemInterface.py info.py osImplNative.py osInterface.py; do \
/usr/bin/install -c -m 644 $file '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/system/'$file ; \
done
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/system'
make -C util install
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/util'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/util'
/usr/bin/install -c -m 644 __init__.py '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/util/__init__.py'
/usr/bin/install -c -m 644 gp_utils.py '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/util/gp_utils.py'
/usr/bin/install -c -m 644 ssh_utils.py '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/util/ssh_utils.py'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/util'
for file in gparray.py gpunit unit2; do \
/usr/bin/install -c -m 755 $file '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/'$file ; \
done
for file in __init__.py datetimeutils.py gp_era.py gpcatalog.py gplog.py gpparseopts.py gpresgroup.py gpsubprocess.py gpversion.py heapchecksum.py logfilter.py mainUtils.py parseutils.py pgconf.py recoveryinfo.py userinput.py utils.py; do \
/usr/bin/install -c -m 644 $file '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/'$file ; \
done
'/usr/bin/perl' ../../../putversion '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/mainUtils.py'
make[3]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib'
make -C lib install
make[3]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/lib'
make -C pexpect installdirs
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/lib/pexpect'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/bin/lib/pexpect'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/lib/pexpect'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/bin/lib'
make -C pexpect install
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/lib/pexpect'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/bin/lib/pexpect'
for file in __init__.py pxssh.py; do \
/usr/bin/install -c -m 755 $file '/home/gpadmin/lightdb-a-stage/bin/lib/pexpect/'$file ; \
done
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/lib/pexpect'
for file in __init__.py gp_bash_functions.sh gp_bash_version.sh gpconfigurenewsegment gpcreateseg.sh gppinggpfdist.py gpstate.py multidd; do \
/usr/bin/install -c -m 755 $file '/home/gpadmin/lightdb-a-stage/bin/lib/'$file ; \
done
/usr/bin/install -c -m 644 crashreport.gdb '/home/gpadmin/lightdb-a-stage/bin/lib/crashreport.gdb'
make[3]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/lib'
make -C ifaddrs install
make[3]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/ifaddrs'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/libexec'
/usr/bin/install -c ifaddrs '/home/gpadmin/lightdb-a-stage/libexec'/ifaddrs
make[3]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/ifaddrs'
make -C stream installdirs
make[3]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/stream'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/bin/lib'
# This install location is due to legacy reasons kept for backwards
# compatibility until it can be deprecated.
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/bin/stream'
make[3]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/stream'
make -C gpcheckcat_modules installdirs
make[3]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gpcheckcat_modules'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/bin/gpcheckcat_modules'
make[3]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gpcheckcat_modules'
make -C gpconfig_modules installdirs
make[3]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gpconfig_modules'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/bin/gpconfig_modules'
make[3]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gpconfig_modules'
make -C gpssh_modules installdirs
make[3]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gpssh_modules'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/bin/gpssh_modules'
make[3]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gpssh_modules'
make -C gppylib installdirs
make[3]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib'
make -C commands installdirs
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/commands'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/commands'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/commands'
make -C data installdirs
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/data'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/data'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/data'
make -C db installdirs
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/db'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/db'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/db'
make -C gpMgmttest installdirs
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/gpMgmttest'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/gpMgmttest'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/gpMgmttest'
make -C operations installdirs
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/operations'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/operations'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/operations'
make -C programs installdirs
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/programs'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/programs'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/programs'
make -C system installdirs
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/system'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/system'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/system'
make -C util installdirs
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/util'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib/util'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib/util'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/python/gppylib'
make[3]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/gppylib'
make -C lib installdirs
make[3]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/lib'
make -C pexpect installdirs
make[4]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/lib/pexpect'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/bin/lib/pexpect'
make[4]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/lib/pexpect'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/bin/lib'
make[3]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/lib'
make -C ifaddrs installdirs
make[3]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/ifaddrs'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/libexec'
make[3]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin/ifaddrs'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/bin/lib'
for file in analyzedb gpactivatestandby gpaddmirrors gpcheckcat gpcheckperf gpcheckresgroupimpl gpconfig gpdeletesystem gpexpand gpinitstandby gpinitsystem gpload gpload.py gplogfilter gpmovemirrors gppkg gprecoverseg gpreload gpsync gpsd gpssh gpssh-exkeys gpstart gpstate gpstop minirepro gpmemwatcher gpmemreport; do \
/usr/bin/install -c -m 755 $file '/home/gpadmin/lightdb-a-stage/bin/'$file ; \
'/usr/bin/perl' ../../putversion '/home/gpadmin/lightdb-a-stage/bin/'$file ; \
done
# Symlink gpcheckcat from bin to bin/lib to maintain backward compatibility
if [ ! -L /home/gpadmin/lightdb-a-stage/bin/lib/gpcheckcat ]; then \
cd /home/gpadmin/lightdb-a-stage/bin/lib/ && ln -s ../gpcheckcat gpcheckcat; \
fi
/usr/bin/install -c -m 644 gpload.bat '/home/gpadmin/lightdb-a-stage/bin/gpload.bat'
python3 gpconfig_modules/parse_guc_metadata.py /home/gpadmin/lightdb-a-stage
make[2]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/bin'
make -C doc install
make[2]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/doc'
make -C gpconfigs installdirs
make[3]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/doc/gpconfigs'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/docs/cli_help/gpconfigs'
make[3]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/doc/gpconfigs'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/docs/cli_help'
make -C gpconfigs install
make[3]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/doc/gpconfigs'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/docs/cli_help/gpconfigs'
for file in gpinitsystem_config gpinitsystem_singlenode gpinitsystem_test hostfile_exkeys hostfile_gpchecknet_ic1 hostfile_gpchecknet_ic2 hostfile_gpcheckperf hostfile_gpexpand hostfile_gpinitsystem hostfile_gpssh_allhosts hostfile_gpssh_segonly hostlist_singlenode; do \
/usr/bin/install -c -m 644 $file '/home/gpadmin/lightdb-a-stage/docs/cli_help/gpconfigs/'$file ; \
done
make[3]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/doc/gpconfigs'
for file in gpactivatestandby_help gpaddmirrors_help gpcheckperf_help gpconfig_help gpdeletesystem_help gpexpand_help gpfdist_help gpinitstandby_help gpinitsystem_help gpload_help gplogfilter_help gpmapreduce_help gppkg_help gprecoverseg_help gpreload_help gpsync_help gpssh-exkeys_help gpssh_help gpstart_help gpstate_help gpstop_help; do \
/usr/bin/install -c -m 644 $file '/home/gpadmin/lightdb-a-stage/docs/cli_help/'$file ; \
done
make[2]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt/doc'
mkdir -p /home/gpadmin/lightdb-a-stage
unset LIBPATH; \
bin/generate-greenplum-path.sh > /home/gpadmin/lightdb-a-stage/lightadb_path.sh
mkdir -p /home/gpadmin/lightdb-a-stage/lib/python
# Setup /lib/python contents
if [ -e bin/ext/__init__.py ]; then \
cp -rp bin/ext/__init__.py /home/gpadmin/lightdb-a-stage/lib/python ; \
fi
if [ -e bin/ext/psutil ]; then \
cp -rp bin/ext/psutil /home/gpadmin/lightdb-a-stage/lib/python ; \
fi
if [ -e bin/ext/pgdb.py ]; then \
cp -rp bin/ext/pgdb.py /home/gpadmin/lightdb-a-stage/lib/python && \
cp -rp bin/ext/pg.py /home/gpadmin/lightdb-a-stage/lib/python && \
cp -rp bin/ext/_pg*.so /home/gpadmin/lightdb-a-stage/lib/python ; \
fi
if [ -e bin/ext/yaml ]; then \
cp -rp bin/ext/yaml /home/gpadmin/lightdb-a-stage/lib/python ; \
fi
make[1]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpMgmt'
make -C gpcontrib install
make[1]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpcontrib'
make -C gp_sparse_vector install
make[2]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_sparse_vector'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/postgresql'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/install -c -m 755 gp_svec.so '/home/gpadmin/lightdb-a-stage/lib/postgresql/gp_svec.so'
/usr/bin/install -c -m 644 ./gp_sparse_vector.control '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 644 ./gp_sparse_vector--1.0.1.sql ./gp_sparse_vector--1.0.0--1.0.1.sql '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
make[2]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_sparse_vector'
make -C gp_distribution_policy install
make[2]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_distribution_policy'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/postgresql'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/install -c -m 755 gp_distribution_policy.so '/home/gpadmin/lightdb-a-stage/lib/postgresql/gp_distribution_policy.so'
/usr/bin/install -c -m 644 ./gp_distribution_policy.control '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 644 ./gp_distribution_policy--1.0.sql '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
make[2]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_distribution_policy'
make -C gp_internal_tools install
make[2]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_internal_tools'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/postgresql'
/usr/bin/install -c -m 644 ./gp_internal_tools.control '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 644 ./gp_internal_tools--1.0.0.sql '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 755 gp_ao_co_diagnostics.so gp_workfile_mgr.so gp_session_state_memory_stats.so gp_instrument_shmem.so '/home/gpadmin/lightdb-a-stage/lib/postgresql/'
make[2]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_internal_tools'
make -C gp_debug_numsegments install
make[2]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_debug_numsegments'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/postgresql'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/install -c -m 755 gp_debug_numsegments.so '/home/gpadmin/lightdb-a-stage/lib/postgresql/gp_debug_numsegments.so'
/usr/bin/install -c -m 644 ./gp_debug_numsegments.control '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 644 ./gp_debug_numsegments--1.0.sql '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
make[2]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_debug_numsegments'
make -C gp_inject_fault install
make[2]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_inject_fault'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/postgresql'
/usr/bin/install -c -m 644 ./gp_inject_fault.control '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 644 ./gp_inject_fault--1.0.sql '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 755 gp_inject_fault.so '/home/gpadmin/lightdb-a-stage/lib/postgresql/'
make[2]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_inject_fault'
make -C gp_exttable_fdw install
make[2]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_exttable_fdw'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/postgresql'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/install -c -m 755 gp_exttable_fdw.so '/home/gpadmin/lightdb-a-stage/lib/postgresql/gp_exttable_fdw.so'
/usr/bin/install -c -m 644 ./gp_exttable_fdw.control '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 644 ./gp_exttable_fdw--1.0.sql '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/include/postgresql/server/extension/gp_exttable_fdw/'
/usr/bin/install -c -m 644 ./extaccess.h '/home/gpadmin/lightdb-a-stage/include/postgresql/server/extension/gp_exttable_fdw/'
make[2]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_exttable_fdw'
make -C pgaudit install
make[2]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/pgaudit'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/postgresql'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/install -c -m 755 pgaudit.so '/home/gpadmin/lightdb-a-stage/lib/postgresql/pgaudit.so'
/usr/bin/install -c -m 644 ./pgaudit.control '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 644 ./pgaudit--1.4.3.sql ./pgaudit--1.4--1.4.1.sql ./pgaudit--1.4.1--1.4.2.sql ./pgaudit--1.4.2--1.4.3.sql '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
make[2]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/pgaudit'
make -C gp_legacy_string_agg install
make[2]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_legacy_string_agg'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/postgresql'
/usr/bin/install -c -m 644 ./gp_legacy_string_agg.control '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 644 ./gp_legacy_string_agg--1.0.0.sql '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 755 gp_legacy_string_agg.so '/home/gpadmin/lightdb-a-stage/lib/postgresql/'
make[2]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_legacy_string_agg'
make -C gp_replica_check install
make[2]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_replica_check'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/share/postgresql/extension'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/postgresql'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/bin'
/usr/bin/install -c -m 644 ./gp_replica_check.control '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 644 ./gp_replica_check--0.0.1.sql '/home/gpadmin/lightdb-a-stage/share/postgresql/extension/'
/usr/bin/install -c -m 755 gp_replica_check.so '/home/gpadmin/lightdb-a-stage/lib/postgresql/'
/usr/bin/install -c -m 755 ./gp_replica_check.py '/home/gpadmin/lightdb-a-stage/bin/'
make[2]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/gp_replica_check'
make -C zstd install
make[2]: Entering directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/zstd'
/usr/bin/mkdir -p '/home/gpadmin/lightdb-a-stage/lib/postgresql'
/usr/bin/install -c -m 755 gp_zstd_compression.so '/home/gpadmin/lightdb-a-stage/lib/postgresql/gp_zstd_compression.so'
/usr/bin/install -c -m 644 zstd_compression.sql '/home/gpadmin/lightdb-a-stage/share/postgresql/cdb_init.d/zstd_compression.sql'
make[2]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpcontrib/zstd'
make[1]: Leaving directory `/home/gpadmin/xjh/lightdb-a/gpcontrib'
Greenplum Database installation complete.
+ '[' x86_64 == loongarch64 ']'
+ '[' '' = true ']'
[gpadmin@hs-10-20-30-193 make]$
tar -czvf lightadb-20230523.tar.gz lightdb-a-stage/
tar -xzvf lightadb-20230523.tar.gz
准备3个空目录
[gpadmin@hs-10-20-30-193 xjh]$ pwd
/home/gpadmin/xjh
[gpadmin@hs-10-20-30-193 xjh]$ ll
total 4
drwxr-xr-x 3 gpadmin gpadmin 21 May 23 17:44 coordinator
drwxr-xr-x 3 gpadmin gpadmin 20 May 23 17:44 instance-a
drwxr-xr-x 3 gpadmin gpadmin 20 May 23 17:44 instance-a2
[gpadmin@hs-10-20-30-193 xjh]$
vim hostfile_gpinitsystem
hs-10-20-30-193
vim gpinitsystem_config
最少要2个DATA_DIRECTORY空目录
PORT_BASE=8100
declare -a DATA_DIRECTORY=(/home/gpadmin/xjh/instance-a /home/gpadmin/xjh/instance-a2)
COORDINATOR_HOSTNAME=hs-10-20-30-193
COORDINATOR_DIRECTORY=/home/gpadmin/xjh/coordinator
[gpadmin@hs-10-20-30-193 gpconfigs]$ cat gpinitsystem_config
# FILE NAME: gpinitsystem_config
# Configuration file needed by the gpinitsystem
################################################
#### REQUIRED PARAMETERS
################################################
#### Naming convention for utility-generated data directories.
SEG_PREFIX=gpseg
#### Base number by which primary segment port numbers
#### are calculated.
PORT_BASE=8100
#### File system location(s) where primary segment data directories
#### will be created. The number of locations in the list dictate
#### the number of primary segments that will get created per
#### physical host (if multiple addresses for a host are listed in
#### the hostfile, the number of segments will be spread evenly across
#### the specified interface addresses).
declare -a DATA_DIRECTORY=(/home/gpadmin/xjh/instance-a /home/gpadmin/xjh/instance-a2)
#### OS-configured hostname or IP address of the coordinator host.
COORDINATOR_HOSTNAME=hs-10-20-30-193
#### File system location where the coordinator data directory
#### will be created.
COORDINATOR_DIRECTORY=/home/gpadmin/xjh/coordinator
#### Port number for the coordinator instance.
COORDINATOR_PORT=6438
#### Shell utility used to connect to remote hosts.
TRUSTED_SHELL=ssh
#### Default server-side character set encoding.
ENCODING=UNICODE
################################################
#### OPTIONAL MIRROR PARAMETERS
################################################
#### Base number by which mirror segment port numbers
#### are calculated.
#MIRROR_PORT_BASE=7000
#### File system location(s) where mirror segment data directories
#### will be created. The number of mirror locations must equal the
#### number of primary locations as specified in the
#### DATA_DIRECTORY parameter.
#declare -a MIRROR_DATA_DIRECTORY=(/data1/mirror /data1/mirror /data1/mirror /data2/mirror /data2/mirror /data2/mirror)
################################################
#### OTHER OPTIONAL PARAMETERS
################################################
#### Create a database of this name after initialization.
#DATABASE_NAME=name_of_database
#### Specify the location of the host address file here instead of
#### with the -h option of gpinitsystem.
#MACHINE_LIST_FILE=/home/gpadmin/gpconfigs/hostfile_gpinitsystem
[gpadmin@hs-10-20-30-193 gpconfigs]$
gpinitsystem -c ./gpinitsystem_config -h ./hostfile_gpinitsystem
y
psql -p6438 -d postgres
[gpadmin@hs-10-20-30-193 gpconfigs]$ gpinitsystem -c ./gpinitsystem_config -h hostfile_gpinitsystem
20230523:17:44:21:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Checking configuration parameters, please wait...
20230523:17:44:21:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Reading Greenplum configuration file ./gpinitsystem_config
20230523:17:44:21:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Locale has not been set in ./gpinitsystem_config, will set to default value
20230523:17:44:21:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-No DATABASE_NAME set, will exit following template1 updates
20230523:17:44:21:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-COORDINATOR_MAX_CONNECT not set, will set to default value 250
20230523:17:44:21:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Detected a single host GPDB array build, reducing value of BATCH_DEFAULT from 60 to 4
20230523:17:44:21:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Checking configuration parameters, Completed
20230523:17:44:22:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Commencing multi-home checks, please wait...
.
20230523:17:44:22:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Configuring build for standard array
20230523:17:44:22:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Commencing multi-home checks, Completed
20230523:17:44:22:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Building primary segment instance array, please wait...
..
20230523:17:44:24:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Checking Coordinator host
20230523:17:44:24:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Checking new segment hosts, please wait...
..
20230523:17:44:28:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Checking new segment hosts, Completed
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Greenplum Database Creation Parameters
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:---------------------------------------
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator Configuration
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:---------------------------------------
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator hostname = hs-10-20-30-193
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator port = 6438
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator instance dir = /home/gpadmin/xjh/coordinator/gpseg-1
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator LOCALE =
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Greenplum segment prefix = gpseg
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator Database =
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator connections = 250
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator buffers = 128000kB
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Segment connections = 750
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Segment buffers = 128000kB
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Encoding = UNICODE
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Postgres param file = Off
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Initdb to be used = /home/gpadmin/greenplum/bin/initdb
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-GP_LIBRARY_PATH is = /home/gpadmin/greenplum/lib
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-HEAP_CHECKSUM is = on
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-HBA_HOSTNAMES is = 0
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Ulimit check = Passed
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Array host connect type = Single hostname per node
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator IP address [1] = ::1
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator IP address [2] = 10.20.137.41
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator IP address [3] = 10.20.30.193
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator IP address [4] = 192.168.122.1
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator IP address [5] = fe80::7aac:44ff:fe3a:55fe
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator IP address [6] = fe80::7aac:44ff:fe3a:561e
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Standby Coordinator = Not Configured
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Number of primary segments = 2
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Total Database segments = 2
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Trusted shell = ssh
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Number segment hosts = 1
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Mirroring config = OFF
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:----------------------------------------
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Greenplum Primary Segment Configuration
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:----------------------------------------
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-hs-10-20-30-193 8100 hs-10-20-30-193 /home/gpadmin/xjh/instance-a/gpseg0 2
20230523:17:44:29:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-hs-10-20-30-193 8101 hs-10-20-30-193 /home/gpadmin/xjh/instance-a2/gpseg1 3
Continue with Greenplum creation Yy|Nn (default=N):
> y
20230523:17:44:33:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Building the Coordinator instance database, please wait...
20230523:17:44:34:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Starting the Coordinator in admin mode
20230523:17:44:34:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Commencing parallel build of primary segment instances
20230523:17:44:34:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Spawning parallel processes batch [1], please wait...
..
20230523:17:44:34:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Waiting for parallel processes batch [1], please wait...
.................
20230523:17:44:52:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:------------------------------------------------
20230523:17:44:52:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Parallel process exit status
20230523:17:44:52:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:------------------------------------------------
20230523:17:44:52:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Total processes marked as completed = 2
20230523:17:44:52:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Total processes marked as killed = 0
20230523:17:44:52:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Total processes marked as failed = 0
20230523:17:44:52:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:------------------------------------------------
20230523:17:44:52:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Removing back out file
20230523:17:44:52:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-No errors generated from parallel processes
20230523:17:44:52:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Restarting the Greenplum instance in production mode
20230523:17:44:52:016246 gpstop:hs-10-20-30-193:gpadmin-[INFO]:-Starting gpstop with args: -a -l /home/gpadmin/gpAdminLogs -m -d /home/gpadmin/xjh/coordinator/gpseg-1
20230523:17:44:52:016246 gpstop:hs-10-20-30-193:gpadmin-[INFO]:-Gathering information and validating the environment...
20230523:17:44:52:016246 gpstop:hs-10-20-30-193:gpadmin-[INFO]:-Obtaining Greenplum Coordinator catalog information
20230523:17:44:52:016246 gpstop:hs-10-20-30-193:gpadmin-[INFO]:-Obtaining Segment details from coordinator...
20230523:17:44:52:016246 gpstop:hs-10-20-30-193:gpadmin-[INFO]:-Greenplum Version: 'postgres (Greenplum Database) 7.0.0-alpha.0 build dev'
20230523:17:44:52:016246 gpstop:hs-10-20-30-193:gpadmin-[INFO]:-Commencing Coordinator instance shutdown with mode='smart'
20230523:17:44:52:016246 gpstop:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator segment instance directory=/home/gpadmin/xjh/coordinator/gpseg-1
20230523:17:44:52:016246 gpstop:hs-10-20-30-193:gpadmin-[INFO]:-Stopping coordinator segment and waiting for user connections to finish ...
server shutting down
20230523:17:44:53:016246 gpstop:hs-10-20-30-193:gpadmin-[INFO]:-Attempting forceful termination of any leftover coordinator process
20230523:17:44:53:016246 gpstop:hs-10-20-30-193:gpadmin-[INFO]:-Terminating processes for segment /home/gpadmin/xjh/coordinator/gpseg-1
20230523:17:44:53:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Starting gpstart with args: -a -l /home/gpadmin/gpAdminLogs -d /home/gpadmin/xjh/coordinator/gpseg-1
20230523:17:44:53:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Gathering information and validating the environment...
20230523:17:44:53:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Greenplum Binary Version: 'postgres (Greenplum Database) 7.0.0-alpha.0 build dev'
20230523:17:44:53:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Greenplum Catalog Version: '302209061'
20230523:17:44:53:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Starting Coordinator instance in admin mode
20230523:17:44:53:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-CoordinatorStart pg_ctl cmd is env GPSESSID=0000000000 GPERA=None $GPHOME/bin/pg_ctl -D /home/gpadmin/xjh/coordinator/gpseg-1 -l /home/gpadmin/xjh/coordinator/gpseg-1/log/startup.log -w -t 600 -o " -c gp_role=utility " start
20230523:17:44:53:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Obtaining Greenplum Coordinator catalog information
20230523:17:44:53:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Obtaining Segment details from coordinator...
20230523:17:44:53:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Setting new coordinator era
20230523:17:44:53:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Coordinator Started...
20230523:17:44:53:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Shutting down coordinator
20230523:17:44:54:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Commencing parallel segment instance startup, please wait...
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Process results...
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-----------------------------------------------------
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:- Successful segment starts = 2
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:- Failed segment starts = 0
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:- Skipped segment starts (segments are marked down in configuration) = 0
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-----------------------------------------------------
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Successfully started 2 of 2 segment instances
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-----------------------------------------------------
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Starting Coordinator instance hs-10-20-30-193 directory /home/gpadmin/xjh/coordinator/gpseg-1
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-CoordinatorStart pg_ctl cmd is env GPSESSID=0000000000 GPERA=3f8dba99932886ce_230523174453 $GPHOME/bin/pg_ctl -D /home/gpadmin/xjh/coordinator/gpseg-1 -l /home/gpadmin/xjh/coordinator/gpseg-1/log/startup.log -w -t 600 -o " -c gp_role=dispatch " start
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Command pg_ctl reports Coordinator hs-10-20-30-193 instance active
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Connecting to db template1 on host localhost
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-No standby coordinator configured. skipping...
20230523:17:44:55:017306 gpstart:hs-10-20-30-193:gpadmin-[INFO]:-Database successfully started
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Completed restart of Greenplum instance in production mode
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Scanning utility log file for any warning messages
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[WARN]:-*******************************************************
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[WARN]:-Scan of log file indicates that some warnings or errors
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[WARN]:-were generated during the array creation
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Please review contents of log file
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-/home/gpadmin/gpAdminLogs/gpinitsystem_20230523.log
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-To determine level of criticality
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-These messages could be from a previous run of the utility
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-that was called today!
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[WARN]:-*******************************************************
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Greenplum Database instance successfully created
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-------------------------------------------------------
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-To complete the environment configuration, please
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-update gpadmin .bashrc file with the following
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-1. Ensure that the greenplum_path.sh file is sourced
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-2. Add "export COORDINATOR_DATA_DIRECTORY=/home/gpadmin/xjh/coordinator/gpseg-1"
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:- to access the Greenplum scripts for this instance:
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:- or, use -d /home/gpadmin/xjh/coordinator/gpseg-1 option for the Greenplum scripts
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:- Example gpstate -d /home/gpadmin/xjh/coordinator/gpseg-1
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Script log file = /home/gpadmin/gpAdminLogs/gpinitsystem_20230523.log
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-To remove instance, run gpdeletesystem utility
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-To initialize a Standby Coordinator Segment for this Greenplum instance
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Review options for gpinitstandby
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-------------------------------------------------------
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-The Coordinator /home/gpadmin/xjh/coordinator/gpseg-1/pg_hba.conf post gpinitsystem
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-has been configured to allow all hosts within this new
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-array to intercommunicate. Any hosts external to this
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-new array must be explicitly added to this file
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-Refer to the Greenplum Admin support guide which is
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-located in the /home/gpadmin/greenplum/docs directory
20230523:17:44:55:001422 gpinitsystem:hs-10-20-30-193:gpadmin-[INFO]:-------------------------------------------------------
[gpadmin@hs-10-20-30-193 gpconfigs]$ psql -p6438 -d postgres
psql (12beta2)
Type "help" for help.
postgres=#