当前位置:网站首页>Greenplum 6.x build_ install
Greenplum 6.x build_ install
2022-07-07 08:46:00 【xcSpark】
Greenplum6.x install
After the server environment is configured , Carry out the installation operation .
One . install Greenplum
1. Upload package
root The user login master machine 192.168.0.110
Will download greenplum-db-6.18.2-rhel7-x86_64.rpm Upload the installation package to /opt Under the table of contents
Then grant executable permission
cd /opt
chmod +x greenplum-db-6.18.2-rhel7-x86_64.rpm
2. Install dependency packages
[[email protected] opt]# yum install apr apr-util bash bzip2 curl krb5 libcurl libevent libxml2 libyaml zlib openldap openssh openssl openssl-libs perl readline rsync R sed tar zip
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable <repo>
To enable custom repositories:
yum-config-manager --enable <repo>
[[email protected] opt]#
Configure local yum Source ( Ignore )
root Users log in to all servers
Mount the image
[[email protected] opt]# mount /dev/cdrom /mnt/
mount: no medium found on /dev/sr0
If an error is reported, perform the following operations
Due to the current virtual machine mode , Set the shared directory here , virtual machine – Set up – Options – Shared folders . Each server is set
Mirror files from /mnt/hgfs/redhat7.9 visit
# Execution mount
[[email protected] redhat7.9]# mount -o loop /mnt/hgfs/redhat7.9/rhel-server-7.9-x86_64-dvd.iso /mnt/
mount: /dev/loop0 is write-protected, mounting read-only
# Boot up
chmod +x /etc/rc.d/rc.local
vi /etc/rc.d/rc.local
# Add at the end
/bin/mount -o loop /mnt/hgfs/redhat7.9/rhel-server-7.9-x86_64-dvd.iso /mnt/
vi /etc/yum.repos.d/local_iso.repo
# Add content
[local]
name=redhat_local
baseurl=file:///mnt/
enable=1
gpgckeck=0
Save and exit
# perform yum repolist It can be used normally.
[[email protected] redhat7.9]# yum repolist
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
local | 2.8 kB 00:00:00
(1/2): local/group | 628 kB 00:00:00
(2/2): local/primary | 2.1 MB 00:00:00
local 5230/5230
repo id repo name status
local redhat_local 5,230
repolist: 5,230
You have new mail in /var/spool/mail/root
3. Create directory
root Users log in to all servers
mkdir -p /greenplum
# Grant authority
chown -R gpadmin:gpadmin /greenplum
4. install
root The user login master
machine
1. Execution and installation
root The user operates on the host
# Install to the specified directory
[[email protected] opt]# rpm -Uvi greenplum-db-6.18.2-rhel7-x86_64.rpm --prefix=/greenplum
Preparing packages...
greenplum-db-6-6.18.2-1.el7.x86_64
You have new mail in /var/spool/mail/root
# Assign authority to gpadmin user
chown -R gpadmin:gpadmin /greenplum
2. Create a new configuration file containing the machine name
Switch to gpadmin user
su - gpadmin
#1. Create all machine files hostlist( contain master,segment,standby)
vi /tmp/hostlist
# It contains all machine information , No extra line breaks and spaces
mdw
smdw
sdw1
sdw2
Save and exit
#2. New only segment Machine configuration file seg_hosts, No extra line breaks and spaces
vi /tmp/seg_hosts
# It's about
sdw1
sdw2
Report an error and exit
3. Enable no password SSH
gpadmin The user login
1. Use gpssh-exkeys Get through all servers (Master)
[[email protected] ~]$ source /greenplum/greenplum-db/greenplum_path.sh
[[email protected] ~]$ gpssh-exkeys -f /tmp/hostlist
[ERROR]: Failed to ssh to smdw. No ECDSA host key is known for smdw and you have requested strict checking.
Host key verification failed.
[ERROR]: Expected passwordless ssh to host smdw
If an error is reported, perform the following operations
2. Enabling Passwordless SSH ( Password free login ) And create a configuration
Every Greenplum Host computer gpadmin The user must be able to from any host in the cluster SSH To any other host in the cluster , Without entering a password or password ( be called “ password-less SSH”)
Need to switch to gpadmin user , stay All machines
All implemented
- Create a public-private key pair ( All nodes )
Prompt to hit enter directly
[[email protected] mnt]# su - gpadmi
[[email protected] ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/gpadmin/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/gpadmin/.ssh/id_rsa.
Your public key has been saved in /home/gpadmin/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:AOhjBL0oiQXlxboc44KB0f79QZuVf80RsA6ll15ue2E [email protected]
The key's randomart image is:
+---[RSA 2048]----+
|o*.oo o. |
|..*... o o. |
|oO.o . + + ..|
|B X .. o = o. |
|o= * . .S+ . o E.|
|o + . . + . + =|
| . . . . ..|
| . .|
| |
+----[SHA256]-----+
[[email protected] ~]$
- Use in each cluster ssh-copy-id command , hold gpadmin Of public key Kao to known_hosts.
for example master The machine performs the following , Prompt for password : Input gpadmin User's password
cd ~
ssh-copy-id smdw
ssh-copy-id sdw1
ssh-copy-id sdw2
for example standby master The machine performs the following
ssh-copy-id mdw
ssh-copy-id sdw1
ssh-copy-id sdw2
Empathy segment machine , The input method is similar to , Note that the hostname is not your own .
#segment1 Machine input
ssh-copy-id mdw
ssh-copy-id smdw
ssh-copy-id sdw2
#segment2 Machine input
ssh-copy-id mdw
ssh-copy-id smdw
ssh-copy-id sdw1
Check out master On the machine /home/gpadmin/.ssh/know_hosts The contents of the document are as follows
3. verification
gpadmin The user action , Exit after each connection
# Execute on the host
ssh 'smdw'
exit
ssh 'sdw1'
exit
4. gpssh-exkeys Get through to the server
Switch to gpadmin The user action
# The implementation is as follows
[[email protected] ~]$ source /greenplum/greenplum-db/greenplum_path.sh
[[email protected] ~]$ gpssh-exkeys -f /tmp/hostlist
[STEP 1 of 5] create local ID and authorize on local host
... /home/gpadmin/.ssh/id_rsa file exists ... key generation skipped
[STEP 2 of 5] keyscan all hosts and update known_hosts file
[STEP 3 of 5] retrieving credentials from remote hosts
... send to smdw
... send to sdw1
... send to sdw2
[STEP 4 of 5] determine common authentication file content
[STEP 5 of 5] copy authentication files to all remote hosts
... finished key exchange with smdw
... finished key exchange with sdw1
... finished key exchange with sdw2
[INFO] completed successfully
[[email protected] ~]$
5. Test connectivity
Switch to gpadmin user , After typing the command , Input pwd
[[email protected] ~]$ gpssh -f /tmp/hostlist
=> pwd
[smdw] /home/gpadmin
[sdw2] /home/gpadmin
[sdw1] /home/gpadmin
[ mdw] /home/gpadmin
=> exit
[[email protected] ~]$
4. Distribute the installation package to other servers
gpadmin user , Only in master Machine operation
# pack
[[email protected] greenplum]$ cd /greenplum
[[email protected] greenplum]$ tar -cf gp6.tar greenplum-db-6.18.2/
[[email protected] greenplum]$
# distribution , Wait a moment
[[email protected] greenplum]$ tar -cf gp6.tar greenplum-db-6.18.2/
[[email protected] greenplum]$ gpscp -f /tmp/hostlist gp6.tar =:/greenplum/
[[email protected] greenplum]$
# Unzip the installation package , Wait a moment , Establish a soft connection
# The core steps are as follows
# gpssh -f /tmp/hostlist
# cd /greenplum
# tar -xf gp6.tar
# tar -xf gp6.tar
# ln -s /greenplum/greenplum-db-6.18.2 greenplum-db
# rm gp6.tar
# Execution records
[[email protected] greenplum]$ gpssh -f /tmp/hostlist
=> cd /greenplum
[sdw1]
[smdw]
[sdw2]
[ mdw]
=> ls
[sdw1] gp6.tar
[smdw] gp6.tar
[sdw2] gp6.tar
[ mdw] gp6.tar greenplum-db greenplum-db-6.18.2
=> tar -xf gp6.tar
[sdw1]
[smdw]
[sdw2]
[ mdw]
=> ls
[sdw1] gp6.tar greenplum-db-6.18.2
[smdw] gp6.tar greenplum-db-6.18.2
[sdw2] gp6.tar greenplum-db-6.18.2
[ mdw] gp6.tar greenplum-db greenplum-db-6.18.2
### Note that here is the absolute path , Otherwise, other nodes GPHOME The path is not right
=>
=> ln -s /greenplum/greenplum-db-6.18.2 greenplum-db
[sdw1]
[smdw]
[sdw2]
[ mdw]
=> ll
[sdw1] total 506272
[sdw1] -rw-rw-r-- 1 gpadmin gpadmin 518420480 Jul 2 18:36 gp6.tar
[sdw1] lrwxrwxrwx 1 gpadmin gpadmin 21 Jul 2 18:42 greenplum-db -> ./greenplum-db-6.18.2
[sdw1] drwxr-xr-x 12 gpadmin gpadmin 310 Jul 2 17:00 greenplum-db-6.18.2
[smdw] total 506272
[smdw] -rw-rw-r-- 1 gpadmin gpadmin 518420480 Jul 2 18:36 gp6.tar
[smdw] lrwxrwxrwx 1 gpadmin gpadmin 21 Jul 2 18:42 greenplum-db -> ./greenplum-db-6.18.2
[smdw] drwxr-xr-x 12 gpadmin gpadmin 310 Jul 2 17:00 greenplum-db-6.18.2
[sdw2] total 506272
[sdw2] -rw-rw-r-- 1 gpadmin gpadmin 518420480 Jul 2 18:36 gp6.tar
[sdw2] lrwxrwxrwx 1 gpadmin gpadmin 21 Jul 2 18:42 greenplum-db -> ./greenplum-db-6.18.2
[sdw2] drwxr-xr-x 12 gpadmin gpadmin 310 Jul 2 17:00 greenplum-db-6.18.2
[ mdw] total 506276
[ mdw] -rw-rw-r-- 1 gpadmin gpadmin 518420480 Jul 2 18:35 gp6.tar
[ mdw] lrwxrwxrwx 1 gpadmin gpadmin 30 Jul 2 17:00 greenplum-db -> /greenplum/greenplum-db-6.18.2
[ mdw] drwxr-xr-x 12 gpadmin gpadmin 4096 Jul 2 18:42 greenplum-db-6.18.2
=>
=> rm gp6.tar
[sdw1]
[smdw]
[sdw2]
[ mdw]
=> ll
[sdw1] total 0
[sdw1] lrwxrwxrwx 1 gpadmin gpadmin 21 Jul 2 18:42 greenplum-db -> ./greenplum-db-6.18.2
[sdw1] drwxr-xr-x 12 gpadmin gpadmin 310 Jul 2 17:00 greenplum-db-6.18.2
[smdw] total 0
[smdw] lrwxrwxrwx 1 gpadmin gpadmin 21 Jul 2 18:42 greenplum-db -> ./greenplum-db-6.18.2
[smdw] drwxr-xr-x 12 gpadmin gpadmin 310 Jul 2 17:00 greenplum-db-6.18.2
[sdw2] total 0
[sdw2] lrwxrwxrwx 1 gpadmin gpadmin 21 Jul 2 18:42 greenplum-db -> ./greenplum-db-6.18.2
[sdw2] drwxr-xr-x 12 gpadmin gpadmin 310 Jul 2 17:00 greenplum-db-6.18.2
[ mdw] total 4
[ mdw] lrwxrwxrwx 1 gpadmin gpadmin 30 Jul 2 17:00 greenplum-db -> /greenplum/greenplum-db-6.18.2
[ mdw] drwxr-xr-x 12 gpadmin gpadmin 4096 Jul 2 18:42 greenplum-db-6.18.2
=>
=> exit
[[email protected] greenplum]$
5. Create data storage space
gpadmin user , Only in master machine
operation
Master Do not store user data, have only system catalog tables and system metadata, stay Master Create a directory .
Create directory , You've created data Catalog
# Only in master Node operation , establish master The catalog of
[[email protected] greenplum]$ mkdir -p /data/master
[[email protected] greenplum]$ chown gpadmin:gpadmin /data/master
# Only in master Node operation , Create a directory on the standby machine , Initialization will fail when there is no directory
[[email protected] ~]$ source /greenplum/greenplum-db/greenplum_path.sh
[[email protected] ~]$ gpssh -h smdw -e 'mkdir -p /data/master'
[smdw] mkdir -p /data/master
[[email protected] ~]$ gpssh -h smdw -e 'chown gpadmin:gpadmin /data/master'
[smdw] chown gpadmin:gpadmin /data/master
[[email protected] ~]$
# establish segment Catalogue of machines
[[email protected] ~]$ gpssh -f /tmp/seg_hosts
=> cd /data
[sdw1]
[sdw2]
=> mkdir -p /data/primary
[sdw1]
[sdw2]
=> mkdir -p /data/mirror
[sdw1]
[sdw2]
=>
=> ll
[sdw1] total 0
[sdw1] drwxrwxr-x 2 gpadmin gpadmin 6 Jul 2 19:32 mirror
[sdw1] drwxrwxr-x 2 gpadmin gpadmin 6 Jul 2 19:24 primary
[sdw2] total 0
[sdw2] drwxrwxr-x 2 gpadmin gpadmin 6 Jul 2 19:32 mirror
[sdw2] drwxrwxr-x 2 gpadmin gpadmin 6 Jul 2 19:24 primary
=>
=> exit
[[email protected] greenplum]$
- Or other segment Create directory , You can use the following methods (segment Choose one of two directory methods )
# gpadmin The user is in master Operate on the machine
# source /greenplum/greenplum-db/greenplum_path.sh
# gpssh -f /tmp/seg_hosts -e 'mkdir -p /data/primary'
# gpssh -f /tmp/seg_hosts -e 'mkdir -p /data/mirror'
# gpssh -f /tmp/seg_hosts -e 'chown -R gpadmin /data/*'
6. Create environment variable configuration file
gpadmin user , Sign in Each machine
operation
[[email protected] greenplum]$ cd ~
[[email protected] ~]$ vi .bash_profile
# Add the following lines to the end
source /greenplum/greenplum-db/greenplum_path.sh
export MASTER_DATA_DIRECTORY=/data/master/gpseg-1
export PGPORT=5432
export PGDATABASE=gpdb
Save and exit
# Effective environment variables
[[email protected] ~]$ source .bash_profile
# If you want to start up and take effect , Configuration to .bashrc in
[[email protected] ~]$ vi .bashrc
# Add the following at the end
source /greenplum/greenplum-db/greenplum_path.sh
# take effect
source .bashrc
.bash_profile
.bashrc
7. Initialize configuration file
gpadmin User only master machine
operation
Template file location :$GPHOME/docs/cli_help/gpconfigs/gpinitsystem_config
Copy it and modify it
[[email protected] ~]$ cp $GPHOME/docs/cli_help/gpconfigs/gpinitsystem_config /tmp
[[email protected] ~]$ cd /tmp
[[email protected] ~]$ vi gpinitsystem_config
# The modification is as follows
ARRAY_NAME="Greenplum"
SEG_PREFIX=gpseg
PORT_BASE=36000
declare -a DATA_DIRECTORY=(/data/primary /data/primary /data/primary /data/primary)
MASTER_HOSTNAME=mdw
MASTER_DIRECTORY=/data/master
MASTER_PORT=5432
TRUSTED_SHELL=ssh
CHECK_POINT_SEGMENTS=8
ENCODING=UNICODE
MIRROR_PORT_BASE=37000
declare -a MIRROR_DATA_DIRECTORY=(/data/mirror /data/mirror /data/mirror /data/mirror)
MACHINE_LIST_FILE=/tmp/seg_hosts
8. Verify system performance
source /greenplum/greenplum-db/greenplum_path.sh
gpcheckperf -f /tmp/seg_hosts -r N -d /tmp > subnet1.out
9. Database initialization
gpadmin User only master machine
On the implementation
1. Record the template first , It is convenient for follow-up inspection
[[email protected] tmp]$ gpinitsystem -c /tmp/gpinitsystem_config -s smdw -S /data/master/ -O /tmp/initcfg_tmplate
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
20220702:22:38:32:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Checking configuration parameters, please wait...
20220702:22:38:32:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Reading Greenplum configuration file /tmp/gpinitsystem_config
20220702:22:38:32:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Locale has not been set in /tmp/gpinitsystem_config, will set to default value
20220702:22:38:32:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Locale set to en_US.utf8
20220702:22:38:32:034286 gpinitsystem:mdw:gpadmin-[INFO]:-No DATABASE_NAME set, will exit following template1 updates
20220702:22:38:32:034286 gpinitsystem:mdw:gpadmin-[INFO]:-MASTER_MAX_CONNECT not set, will set to default value 250
20220702:22:38:32:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Checking configuration parameters, Completed
20220702:22:38:33:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing multi-home checks, please wait...
..
20220702:22:38:33:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Configuring build for standard array
20220702:22:38:33:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing multi-home checks, Completed
20220702:22:38:33:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Building primary segment instance array, please wait...
........
20220702:22:38:36:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Building group mirror array type , please wait...
........
20220702:22:38:39:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Checking Master host
20220702:22:38:39:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Checking new segment hosts, please wait...
................
20220702:22:38:51:034286 gpinitsystem:mdw:gpadmin-[INFO]:-Checking new segment hosts, Completed
2. Perform initialization
cd ~
# segment host ,gpinitsystem_config There are seg Machine information , There is no need to -h Parameters
[[email protected] ~]$ gpinitsystem -c /tmp/gpinitsystem_config -s smdw
# prompt y, Start initializing
Continue with Greenplum creation Yy|Nn (default=N):
> y
Be careful : The logs that generate initialization are /home/gpadmin/gpAdminLogs Under the table of contents , If an error occurs, you can view the analysis gpinitsystem_xxxxxxxxx.log
standby Fail or use the command : gpinitstandby -s smdw( No attempt )
3. Environment variable distribution
You've added :source /greenplum/greenplum-db/greenplum_path.sh
Add other content below
su - gpadmin
# Add to .bash_profile and .bashrc
.bash_profile It has been configured
cat >> /home/gpadmin/.bash_profile << EOF export LD_PRELOAD=/lib64/libz.so.1 ps EOF
# Add to .bashrc
cat >> /home/gpadmin/.bashrc << EOF export MASTER_DATA_DIRECTORY=/data/master/gpseg-1 export PGPORT=5432 export PGDATABASE=gpdb export LD_PRELOAD=/lib64/libz.so.1 ps EOF
# Distribute to other machines
cd ~
#scp .bashrc smdw:/home/gpadmin
gpscp -f /tmp/seg_hosts/home/gpadmin/.bash_profile [email protected]=:/home/gpadmin/.bash_profile
gpscp -f /tmp/seg_hosts /home/gpadmin/.bashrc [email protected]=:/home/gpadmin/.bashrc
gpssh -f /tmp/hostlist -e 'source /home/gpadmin/.bash_profile;source /home/gpadmin/.bashrc;'
10. Library table creation test
[[email protected] ~]$ psql -d postgres
# Create a library
gpdb=# create database gpdb encoding='UTF8';
CREATE DATABASE
gpdb=# \q
# Input psql, Go straight into gpdb
[[email protected] ~]$ psql
gpdb=# create table testa(id int,name character varying(10));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'id' as the Greenplum Database data distribution key for this table. HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew. CREATE TABLE gpdb=# insert into testa values(1,' Ha ha ha ha ');
INSERT 0 1
gpdb=# select * from testa;
id | name
----+----------
1 | Ha ha ha ha
(1 row)
gpdb=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+---------+----------+------------+------------+---------------------
gpdb | gpadmin | UTF8 | en_US.utf8 | en_US.utf8 |
postgres | gpadmin | UTF8 | en_US.utf8 | en_US.utf8 |
template0 | gpadmin | UTF8 | en_US.utf8 | en_US.utf8 | =c/gpadmin +
| | | | | gpadmin=CTc/gpadmin
template1 | gpadmin | UTF8 | en_US.utf8 | en_US.utf8 | =c/gpadmin +
| | | | | gpadmin=CTc/gpadmin
(4 rows)
gpdb=#
Expand , If the code needs to be modified :
update pg_database set encoding = pg_char_to_encoding('UTF8') where datname ='dbname'
11. Allow external tools to log in
gpadmin The user action master The server
1. modify gpadmin password
[gpadmin@mdw ~]$ psql -d postgres
psql (9.4.24)
Type "help" for help.
postgres=# alter role gpadmin with password 'gpadmin';
ALTER ROLE
postgres=#
2. modify pg_hba.conf
[[email protected] ~]$ vi /data/master/gpseg-1/pg_hba.conf
# Add the following
host all gpadmin 0.0.0.0/0 md5
The parameters before adding are as follows
After adding
3. modify postgresql.conf
vi /data/master/gpseg-1/postgresql.conf
# Modify the content listen_addresses = '*' ,gp6 The default is *
gpconfig -c
4. Profile validation
[[email protected] ~]$ gpstop -u
20220703:01:54:00:128862 gpstop:mdw:gpadmin-[INFO]:-Starting gpstop with args: -u
20220703:01:54:00:128862 gpstop:mdw:gpadmin-[INFO]:-Gathering information and validating the environment...
20220703:01:54:00:128862 gpstop:mdw:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20220703:01:54:00:128862 gpstop:mdw:gpadmin-[INFO]:-Obtaining Segment details from master...
20220703:01:54:00:128862 gpstop:mdw:gpadmin-[INFO]:-Greenplum Version: 'postgres (Greenplum Database) 6.18.2 build commit:1242aadf0137d3b26ee42c80e579e78bd7a805c7'
20220703:01:54:00:128862 gpstop:mdw:gpadmin-[INFO]:-Signalling all postmaster processes to reload
..
12. Set up Greenplum Database time zone
gpadmin The user action master The server
[[email protected] ~]$ gpconfig -s TimeZone
[[email protected] ~]$ gpconfig -c TimeZone -v 'Asia/Shanghai'
# You must restart after changing the time zone Greenplum database . This command gpstop -ra Restart Greenplum database .
[[email protected] ~]$ gpstop -ra
Record
[[email protected] ~]$ gpconfig -s TimeZone
Values on all segments are consistent
GUC : TimeZone
Master value: PRC
Segment value: PRC
[[email protected] ~]$
[[email protected] ~]$ gpconfig -c TimeZone -v 'Asia/Shanghai'
20220703:01:55:20:129424 gpconfig:mdw:gpadmin-[INFO]:-completed successfully with parameters '-c TimeZone -v Asia/Shanghai'
[[email protected] ~]$ gpconfig -s TimeZone
Values on all segments are consistent
GUC : TimeZone
Master value: PRC
Segment value: PRC
[[email protected] ~]$
[[email protected] ~]$ gpstop -ra
20220703:02:02:01:001604 gpstop:mdw:gpadmin-[INFO]:-Starting gpstop with args: -ra
20220703:02:02:01:001604 gpstop:mdw:gpadmin-[INFO]:-Gathering information and validating the environment...
20220703:02:02:01:001604 gpstop:mdw:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20220703:02:02:01:001604 gpstop:mdw:gpadmin-[INFO]:-Obtaining Segment details from master...
20220703:02:02:01:001604 gpstop:mdw:gpadmin-[INFO]:-Greenplum Version: 'postgres (Greenplum Database) 6.18.2 build commit:1242aadf0137d3b26ee42c80e579e78bd7a805c7'
20220703:02:02:01:001604 gpstop:mdw:gpadmin-[INFO]:-Commencing Master instance shutdown with mode='smart'
20220703:02:02:01:001604 gpstop:mdw:gpadmin-[INFO]:-Master segment instance directory=/data/master/gpseg-1
20220703:02:02:01:001604 gpstop:mdw:gpadmin-[INFO]:-Stopping master segment and waiting for user connections to finish ...
server shutting down
20220703:02:02:02:001604 gpstop:mdw:gpadmin-[INFO]:-Attempting forceful termination of any leftover master process
20220703:02:02:02:001604 gpstop:mdw:gpadmin-[INFO]:-Terminating processes for segment /data/master/gpseg-1
20220703:02:02:02:001604 gpstop:mdw:gpadmin-[INFO]:-Stopping master standby host smdw mode=fast
20220703:02:02:03:001604 gpstop:mdw:gpadmin-[INFO]:-Successfully shutdown standby process on smdw
20220703:02:02:03:001604 gpstop:mdw:gpadmin-[INFO]:-Targeting dbid [2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17] for shutdown
20220703:02:02:03:001604 gpstop:mdw:gpadmin-[INFO]:-Commencing parallel primary segment instance shutdown, please wait...
20220703:02:02:03:001604 gpstop:mdw:gpadmin-[INFO]:-0.00% of jobs completed
20220703:02:02:08:001604 gpstop:mdw:gpadmin-[INFO]:-100.00% of jobs completed
20220703:02:02:08:001604 gpstop:mdw:gpadmin-[INFO]:-Commencing parallel mirror segment instance shutdown, please wait...
20220703:02:02:08:001604 gpstop:mdw:gpadmin-[INFO]:-0.00% of jobs completed
20220703:02:02:09:001604 gpstop:mdw:gpadmin-[INFO]:-100.00% of jobs completed
20220703:02:02:09:001604 gpstop:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220703:02:02:09:001604 gpstop:mdw:gpadmin-[INFO]:- Segments stopped successfully = 16
20220703:02:02:09:001604 gpstop:mdw:gpadmin-[INFO]:- Segments with errors during stop = 0
20220703:02:02:09:001604 gpstop:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220703:02:02:09:001604 gpstop:mdw:gpadmin-[INFO]:-Successfully shutdown 16 of 16 segment instances
20220703:02:02:09:001604 gpstop:mdw:gpadmin-[INFO]:-Database successfully shutdown with no errors reported
20220703:02:02:09:001604 gpstop:mdw:gpadmin-[INFO]:-Cleaning up leftover gpmmon process
20220703:02:02:09:001604 gpstop:mdw:gpadmin-[INFO]:-No leftover gpmmon process found
20220703:02:02:09:001604 gpstop:mdw:gpadmin-[INFO]:-Cleaning up leftover gpsmon processes
20220703:02:02:10:001604 gpstop:mdw:gpadmin-[INFO]:-No leftover gpsmon processes on some hosts. not attempting forceful termination on these hosts
20220703:02:02:10:001604 gpstop:mdw:gpadmin-[INFO]:-Cleaning up leftover shared memory
20220703:02:02:11:001604 gpstop:mdw:gpadmin-[INFO]:-Restarting System...
[[email protected] ~]$
Two . Installation log
Initialize the installation log
Be careful -S Parameter pit ,standby situation
/data/master Catalog | command | Initialization operation description |
---|---|---|
Yes | gpinitsystem -c /tmp/gpinitsystem_config -s smdw | Successful initialization |
Yes | gpinitsystem -c /tmp/gpinitsystem_config -s smdw -S | Failure , Unable to execute |
Yes | gpinitsystem -c /tmp/gpinitsystem_config -S -s smdw | success , But nothing standy |
Yes | gpinitsystem -c /tmp/gpinitsystem_config -s smdw -S /data/master | Start success , Input y After that, you will be prompted that the directory already exists and cannot be initialized |
nothing | gpinitsystem -c /tmp/gpinitsystem_config -s smdw -S /data/master | Failure , There is no hint /data/master Catalog |
Initialize log
[[email protected] tmp]$ gpinitsystem -c /tmp/gpinitsystem_config -s smdw
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
20220702:23:05:38:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Checking configuration parameters, please wait...
20220702:23:05:38:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Reading Greenplum configuration file /tmp/gpinitsystem_config
20220702:23:05:38:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Locale has not been set in /tmp/gpinitsystem_config, will set to default value
20220702:23:05:38:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Locale set to en_US.utf8
20220702:23:05:38:056479 gpinitsystem:mdw:gpadmin-[INFO]:-No DATABASE_NAME set, will exit following template1 updates
20220702:23:05:38:056479 gpinitsystem:mdw:gpadmin-[INFO]:-MASTER_MAX_CONNECT not set, will set to default value 250
20220702:23:05:39:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Checking configuration parameters, Completed
20220702:23:05:39:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing multi-home checks, please wait...
..
20220702:23:05:39:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Configuring build for standard array
20220702:23:05:39:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing multi-home checks, Completed
20220702:23:05:39:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Building primary segment instance array, please wait...
........
20220702:23:05:42:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Building group mirror array type , please wait...
........
20220702:23:05:45:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Checking Master host
20220702:23:05:45:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Checking new segment hosts, please wait...
................
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Checking new segment hosts, Completed
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Greenplum Database Creation Parameters
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:---------------------------------------
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Master Configuration
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:---------------------------------------
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Master instance name = Greenplum
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Master hostname = mdw
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Master port = 5432
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Master instance dir = /data/master/gpseg-1
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Master LOCALE = en_US.utf8
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Greenplum segment prefix = gpseg
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Master Database =
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Master connections = 250
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Master buffers = 128000kB
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Segment connections = 750
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Segment buffers = 128000kB
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Checkpoint segments = 8
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Encoding = UNICODE
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Postgres param file = Off
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Initdb to be used = /greenplum/greenplum-db-6.18.2/bin/initdb
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-GP_LIBRARY_PATH is = /greenplum/greenplum-db-6.18.2/lib
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-HEAP_CHECKSUM is = on
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-HBA_HOSTNAMES is = 0
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Ulimit check = Passed
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Array host connect type = Single hostname per node
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Master IP address [1] = ::1
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Master IP address [2] = 192.168.0.110
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Master IP address [3] = fe80::20c:29ff:fe90:bf83
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Standby Master = smdw
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Number of primary segments = 4
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Standby IP address = ::1
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Standby IP address = 192.168.0.113
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Standby IP address = fe80::20c:29ff:feab:1f84
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Total Database segments = 8
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Trusted shell = ssh
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Number segment hosts = 2
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Mirror port base = 37000
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Number of mirror segments = 4
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Mirroring config = ON
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Mirroring type = Group
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:----------------------------------------
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Greenplum Primary Segment Configuration
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:----------------------------------------
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 36000 sdw1 /data/primary/gpseg0 2
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 36001 sdw1 /data/primary/gpseg1 3
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 36002 sdw1 /data/primary/gpseg2 4
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 36003 sdw1 /data/primary/gpseg3 5
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 36000 sdw2 /data/primary/gpseg4 6
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 36001 sdw2 /data/primary/gpseg5 7
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 36002 sdw2 /data/primary/gpseg6 8
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 36003 sdw2 /data/primary/gpseg7 9
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:---------------------------------------
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Greenplum Mirror Segment Configuration
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:---------------------------------------
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 37000 sdw2 /data/mirror/gpseg0 10
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 37001 sdw2 /data/mirror/gpseg1 11
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 37002 sdw2 /data/mirror/gpseg2 12
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 37003 sdw2 /data/mirror/gpseg3 13
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 37000 sdw1 /data/mirror/gpseg4 14
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 37001 sdw1 /data/mirror/gpseg5 15
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 37002 sdw1 /data/mirror/gpseg6 16
20220702:23:05:57:056479 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 37003 sdw1 /data/mirror/gpseg7 17
During installation , Input y Post log
Continue with Greenplum creation Yy|Nn (default=N):
> y
20220702:23:06:19:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Building the Master instance database, please wait...
20220702:23:06:24:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Starting the Master in admin mode
20220702:23:06:25:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing parallel build of primary segment instances
20220702:23:06:25:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Spawning parallel processes batch [1], please wait...
........
20220702:23:06:25:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Waiting for parallel processes batch [1], please wait...
.find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
...................................
20220702:23:07:02:056479 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20220702:23:07:02:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Parallel process exit status
20220702:23:07:02:056479 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20220702:23:07:02:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as completed = 8
20220702:23:07:02:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as killed = 0
20220702:23:07:02:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as failed = 0
20220702:23:07:02:056479 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20220702:23:07:02:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Removing back out file
20220702:23:07:02:056479 gpinitsystem:mdw:gpadmin-[INFO]:-No errors generated from parallel processes
20220702:23:07:02:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Restarting the Greenplum instance in production mode
20220702:23:07:02:061761 gpstop:mdw:gpadmin-[INFO]:-Starting gpstop with args: -a -l /home/gpadmin/gpAdminLogs -m -d /data/master/gpseg-1
20220702:23:07:02:061761 gpstop:mdw:gpadmin-[INFO]:-Gathering information and validating the environment...
20220702:23:07:02:061761 gpstop:mdw:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20220702:23:07:02:061761 gpstop:mdw:gpadmin-[INFO]:-Obtaining Segment details from master...
20220702:23:07:02:061761 gpstop:mdw:gpadmin-[INFO]:-Greenplum Version: 'postgres (Greenplum Database) 6.18.2 build commit:1242aadf0137d3b26ee42c80e579e78bd7a805c7'
20220702:23:07:02:061761 gpstop:mdw:gpadmin-[INFO]:-Commencing Master instance shutdown with mode='smart'
20220702:23:07:02:061761 gpstop:mdw:gpadmin-[INFO]:-Master segment instance directory=/data/master/gpseg-1
20220702:23:07:02:061761 gpstop:mdw:gpadmin-[INFO]:-Stopping master segment and waiting for user connections to finish ...
server shutting down
20220702:23:07:03:061761 gpstop:mdw:gpadmin-[INFO]:-Attempting forceful termination of any leftover master process
20220702:23:07:03:061761 gpstop:mdw:gpadmin-[INFO]:-Terminating processes for segment /data/master/gpseg-1
20220702:23:07:03:061785 gpstart:mdw:gpadmin-[INFO]:-Starting gpstart with args: -a -l /home/gpadmin/gpAdminLogs -d /data/master/gpseg-1
20220702:23:07:03:061785 gpstart:mdw:gpadmin-[INFO]:-Gathering information and validating the environment...
20220702:23:07:03:061785 gpstart:mdw:gpadmin-[INFO]:-Greenplum Binary Version: 'postgres (Greenplum Database) 6.18.2 build commit:1242aadf0137d3b26ee42c80e579e78bd7a805c7'
20220702:23:07:03:061785 gpstart:mdw:gpadmin-[INFO]:-Greenplum Catalog Version: '301908232'
20220702:23:07:03:061785 gpstart:mdw:gpadmin-[INFO]:-Starting Master instance in admin mode
20220702:23:07:03:061785 gpstart:mdw:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20220702:23:07:03:061785 gpstart:mdw:gpadmin-[INFO]:-Obtaining Segment details from master...
20220702:23:07:03:061785 gpstart:mdw:gpadmin-[INFO]:-Setting new master era
20220702:23:07:03:061785 gpstart:mdw:gpadmin-[INFO]:-Master Started...
20220702:23:07:04:061785 gpstart:mdw:gpadmin-[INFO]:-Shutting down master
20220702:23:07:04:061785 gpstart:mdw:gpadmin-[INFO]:-Commencing parallel segment instance startup, please wait...
.
20220702:23:07:05:061785 gpstart:mdw:gpadmin-[INFO]:-Process results...
20220702:23:07:05:061785 gpstart:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220702:23:07:05:061785 gpstart:mdw:gpadmin-[INFO]:- Successful segment starts = 8
20220702:23:07:05:061785 gpstart:mdw:gpadmin-[INFO]:- Failed segment starts = 0
20220702:23:07:05:061785 gpstart:mdw:gpadmin-[INFO]:- Skipped segment starts (segments are marked down in configuration) = 0
20220702:23:07:05:061785 gpstart:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220702:23:07:05:061785 gpstart:mdw:gpadmin-[INFO]:-Successfully started 8 of 8 segment instances
20220702:23:07:05:061785 gpstart:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220702:23:07:05:061785 gpstart:mdw:gpadmin-[INFO]:-Starting Master instance mdw directory /data/master/gpseg-1
20220702:23:07:06:061785 gpstart:mdw:gpadmin-[INFO]:-Command pg_ctl reports Master mdw instance active
20220702:23:07:06:061785 gpstart:mdw:gpadmin-[INFO]:-Connecting to dbname='template1' connect_timeout=15
20220702:23:07:06:061785 gpstart:mdw:gpadmin-[INFO]:-No standby master configured. skipping...
20220702:23:07:06:061785 gpstart:mdw:gpadmin-[INFO]:-Database successfully started
20220702:23:07:06:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Completed restart of Greenplum instance in production mode
20220702:23:07:06:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing parallel build of mirror segment instances
20220702:23:07:06:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Spawning parallel processes batch [1], please wait...
........
20220702:23:07:06:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Waiting for parallel processes batch [1], please wait...
.find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
.....................................
20220702:23:07:45:056479 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20220702:23:07:45:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Parallel process exit status
20220702:23:07:45:056479 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20220702:23:07:45:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as completed = 8
20220702:23:07:45:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as killed = 0
20220702:23:07:45:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as failed = 0
20220702:23:07:45:056479 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20220702:23:07:45:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Starting initialization of standby master smdw
20220702:23:07:45:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Validating environment and parameters for standby initialization...
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Checking for data directory /data/master/gpseg-1 on smdw
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:------------------------------------------------------
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum standby master initialization parameters
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:------------------------------------------------------
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum master hostname = mdw
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum master data directory = /data/master/gpseg-1
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum master port = 5432
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum standby master hostname = smdw
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum standby master port = 5432
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum standby master data directory = /data/master/gpseg-1
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum update system catalog = On
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Syncing Greenplum Database extensions to standby
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-The packages on smdw are consistent.
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Adding standby master to catalog...
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Database catalog updated successfully.
20220702:23:07:46:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Updating pg_hba.conf file...
20220702:23:07:50:063699 gpinitstandby:mdw:gpadmin-[INFO]:-pg_hba.conf files updated successfully.
20220702:23:08:00:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Starting standby master
20220702:23:08:00:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Checking if standby master is running on host: smdw in directory: /data/master/gpseg-1
20220702:23:08:04:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Cleaning up pg_hba.conf backup files...
20220702:23:08:05:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Backup files of pg_hba.conf cleaned up successfully.
20220702:23:08:05:063699 gpinitstandby:mdw:gpadmin-[INFO]:-Successfully created standby master on smdw
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Successfully completed standby master initialization
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Scanning utility log file for any warning messages
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[WARN]:-*******************************************************
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[WARN]:-Scan of log file indicates that some warnings or errors
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[WARN]:-were generated during the array creation
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Please review contents of log file
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-/home/gpadmin/gpAdminLogs/gpinitsystem_20220702.log
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-To determine level of criticality
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-These messages could be from a previous run of the utility
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-that was called today!
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[WARN]:-*******************************************************
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Greenplum Database instance successfully created
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-------------------------------------------------------
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-To complete the environment configuration, please
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-update gpadmin .bashrc file with the following
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-1. Ensure that the greenplum_path.sh file is sourced
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-2. Add "export MASTER_DATA_DIRECTORY=/data/master/gpseg-1"
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:- to access the Greenplum scripts for this instance:
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:- or, use -d /data/master/gpseg-1 option for the Greenplum scripts
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:- Example gpstate -d /data/master/gpseg-1
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Script log file = /home/gpadmin/gpAdminLogs/gpinitsystem_20220702.log
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-To remove instance, run gpdeletesystem utility
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Standby Master smdw has been configured
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-To activate the Standby Master Segment in the event of Master
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-failure review options for gpactivatestandby
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-------------------------------------------------------
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-The Master /data/master/gpseg-1/pg_hba.conf post gpinitsystem
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-has been configured to allow all hosts within this new
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-array to intercommunicate. Any hosts external to this
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-new array must be explicitly added to this file
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-Refer to the Greenplum Admin support guide which is
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-located in the /greenplum/greenplum-db-6.18.2/docs directory
20220702:23:08:05:056479 gpinitsystem:mdw:gpadmin-[INFO]:-------------------------------------------------------
3、 ... and . Add
Fail back
bash /home/greenplum/gpAdminLogs/backout_gpinitsystem_gpadmin_*
clear
pg_ctl -D /greenplum/data/master/gpseg-1 stop
rm -f /tmp/.s.PGSQL.5432 /tmp/.s.PGSQL.5432.lock
rm -Rf /greenplum/data/master/gpseg-1
# Delete segment be-all primary/mirror Directory below
gpssh -f /tmp/tmp/seg_hosts
cd /data/primary
rm -r gp*
cd /data/mirror
rm -r gp*
exit
Check
cat /home/gpadmin/gpAdminLogs/gpinitsystem_xxxx.log|grep -E -i 'WARN|ERROR]'
Four . The problem record , initialization standby Not activated
An error is reported when this command is executed
gpinitsystem -c /tmp/gpinitsystem_config -s smdw -S
The command was executed successfully, but the log is as follows ,standy Not activated .
gpinitsystem -c /tmp/gpinitsystem_config -S -s smdw
Bad installation log , nothing standby
[[email protected] tmp]$ gpinitsystem -c /tmp/gpinitsystem_config -S -s smdw
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
20220702:21:03:34:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Checking configuration parameters, please wait...
20220702:21:03:34:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Reading Greenplum configuration file /tmp/gpinitsystem_config
20220702:21:03:34:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Locale has not been set in /tmp/gpinitsystem_config, will set to default value
20220702:21:03:34:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Locale set to en_US.utf8
20220702:21:03:34:114421 gpinitsystem:mdw:gpadmin-[INFO]:-No DATABASE_NAME set, will exit following template1 updates
20220702:21:03:34:114421 gpinitsystem:mdw:gpadmin-[INFO]:-MASTER_MAX_CONNECT not set, will set to default value 250
20220702:21:03:34:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Checking configuration parameters, Completed
20220702:21:03:34:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing multi-home checks, please wait...
..
20220702:21:03:34:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Configuring build for standard array
20220702:21:03:34:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing multi-home checks, Completed
20220702:21:03:34:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Building primary segment instance array, please wait...
........
20220702:21:03:37:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Building group mirror array type , please wait...
........
20220702:21:03:41:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Checking Master host
20220702:21:03:41:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Checking new segment hosts, please wait...
................
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Checking new segment hosts, Completed
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Greenplum Database Creation Parameters
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:---------------------------------------
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Master Configuration
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:---------------------------------------
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Master instance name = Greenplum
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Master hostname = mdw
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Master port = 5432
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Master instance dir = /data/master/gpseg-1
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Master LOCALE = en_US.utf8
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Greenplum segment prefix = gpseg
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Master Database =
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Master connections = 250
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Master buffers = 128000kB
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Segment connections = 750
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Segment buffers = 128000kB
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Checkpoint segments = 8
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Encoding = UNICODE
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Postgres param file = Off
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Initdb to be used = /greenplum/greenplum-db-6.18.2/bin/initdb
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-GP_LIBRARY_PATH is = /greenplum/greenplum-db-6.18.2/lib
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-HEAP_CHECKSUM is = on
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-HBA_HOSTNAMES is = 0
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Ulimit check = Passed
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Array host connect type = Single hostname per node
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Master IP address [1] = ::1
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Master IP address [2] = 192.168.0.110
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Master IP address [3] = fe80::20c:29ff:fe90:bf83
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Standby Master = Not Configured
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Number of primary segments = 4
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Total Database segments = 8
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Trusted shell = ssh
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Number segment hosts = 2
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Mirror port base = 37000
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Number of mirror segments = 4
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Mirroring config = ON
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Mirroring type = Group
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:----------------------------------------
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Greenplum Primary Segment Configuration
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:----------------------------------------
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 36000 sdw1 /data/primary/gpseg0 2
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 36001 sdw1 /data/primary/gpseg1 3
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 36002 sdw1 /data/primary/gpseg2 4
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 36003 sdw1 /data/primary/gpseg3 5
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 36000 sdw2 /data/primary/gpseg4 6
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 36001 sdw2 /data/primary/gpseg5 7
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 36002 sdw2 /data/primary/gpseg6 8
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 36003 sdw2 /data/primary/gpseg7 9
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:---------------------------------------
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Greenplum Mirror Segment Configuration
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:---------------------------------------
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 37000 sdw2 /data/mirror/gpseg0 10
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 37001 sdw2 /data/mirror/gpseg1 11
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 37002 sdw2 /data/mirror/gpseg2 12
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw2 37003 sdw2 /data/mirror/gpseg3 13
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 37000 sdw1 /data/mirror/gpseg4 14
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 37001 sdw1 /data/mirror/gpseg5 15
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 37002 sdw1 /data/mirror/gpseg6 16
20220702:21:03:52:114421 gpinitsystem:mdw:gpadmin-[INFO]:-sdw1 37003 sdw1 /data/mirror/gpseg7 17
Continue with Greenplum creation Yy|Nn (default=N):
> y
20220702:21:10:32:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Building the Master instance database, please wait...
20220702:21:10:38:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Starting the Master in admin mode
20220702:21:10:39:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing parallel build of primary segment instances
20220702:21:10:39:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Spawning parallel processes batch [1], please wait...
........
20220702:21:10:40:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Waiting for parallel processes batch [1], please wait...
.find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
.................................................
20220702:21:11:30:114421 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20220702:21:11:30:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Parallel process exit status
20220702:21:11:30:114421 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20220702:21:11:30:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as completed = 8
20220702:21:11:30:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as killed = 0
20220702:21:11:30:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as failed = 0
20220702:21:11:30:114421 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20220702:21:11:30:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Removing back out file
20220702:21:11:30:114421 gpinitsystem:mdw:gpadmin-[INFO]:-No errors generated from parallel processes
20220702:21:11:30:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Restarting the Greenplum instance in production mode
20220702:21:11:30:121909 gpstop:mdw:gpadmin-[INFO]:-Starting gpstop with args: -a -l /home/gpadmin/gpAdminLogs -m -d /data/master/gpseg-1
20220702:21:11:30:121909 gpstop:mdw:gpadmin-[INFO]:-Gathering information and validating the environment...
20220702:21:11:30:121909 gpstop:mdw:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20220702:21:11:30:121909 gpstop:mdw:gpadmin-[INFO]:-Obtaining Segment details from master...
20220702:21:11:30:121909 gpstop:mdw:gpadmin-[INFO]:-Greenplum Version: 'postgres (Greenplum Database) 6.18.2 build commit:1242aadf0137d3b26ee42c80e579e78bd7a805c7'
20220702:21:11:30:121909 gpstop:mdw:gpadmin-[INFO]:-Commencing Master instance shutdown with mode='smart'
20220702:21:11:30:121909 gpstop:mdw:gpadmin-[INFO]:-Master segment instance directory=/data/master/gpseg-1
20220702:21:11:30:121909 gpstop:mdw:gpadmin-[INFO]:-Stopping master segment and waiting for user connections to finish ...
server shutting down
20220702:21:11:32:121909 gpstop:mdw:gpadmin-[INFO]:-Attempting forceful termination of any leftover master process
20220702:21:11:32:121909 gpstop:mdw:gpadmin-[INFO]:-Terminating processes for segment /data/master/gpseg-1
20220702:21:11:32:121938 gpstart:mdw:gpadmin-[INFO]:-Starting gpstart with args: -a -l /home/gpadmin/gpAdminLogs -d /data/master/gpseg-1
20220702:21:11:32:121938 gpstart:mdw:gpadmin-[INFO]:-Gathering information and validating the environment...
20220702:21:11:32:121938 gpstart:mdw:gpadmin-[INFO]:-Greenplum Binary Version: 'postgres (Greenplum Database) 6.18.2 build commit:1242aadf0137d3b26ee42c80e579e78bd7a805c7'
20220702:21:11:32:121938 gpstart:mdw:gpadmin-[INFO]:-Greenplum Catalog Version: '301908232'
20220702:21:11:32:121938 gpstart:mdw:gpadmin-[INFO]:-Starting Master instance in admin mode
20220702:21:11:32:121938 gpstart:mdw:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20220702:21:11:32:121938 gpstart:mdw:gpadmin-[INFO]:-Obtaining Segment details from master...
20220702:21:11:32:121938 gpstart:mdw:gpadmin-[INFO]:-Setting new master era
20220702:21:11:32:121938 gpstart:mdw:gpadmin-[INFO]:-Master Started...
20220702:21:11:32:121938 gpstart:mdw:gpadmin-[INFO]:-Shutting down master
20220702:21:11:33:121938 gpstart:mdw:gpadmin-[INFO]:-Commencing parallel segment instance startup, please wait...
...
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:-Process results...
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:- Successful segment starts = 8
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:- Failed segment starts = 0
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:- Skipped segment starts (segments are marked down in configuration) = 0
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:-Successfully started 8 of 8 segment instances
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:-Starting Master instance mdw directory /data/master/gpseg-1
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:-Command pg_ctl reports Master mdw instance active
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:-Connecting to dbname='template1' connect_timeout=15
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:-No standby master configured. skipping...
20220702:21:11:37:121938 gpstart:mdw:gpadmin-[INFO]:-Database successfully started
20220702:21:11:37:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Completed restart of Greenplum instance in production mode
20220702:21:11:37:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing parallel build of mirror segment instances
20220702:21:11:37:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Spawning parallel processes batch [1], please wait...
........
20220702:21:11:38:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Waiting for parallel processes batch [1], please wait...
.find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
find: ‘/greenplum/greenplum-db-6.18.2/greenplum-db-6.18.2’: Too many levels of symbolic links
........................................
20220702:21:12:19:114421 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20220702:21:12:19:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Parallel process exit status
20220702:21:12:19:114421 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20220702:21:12:19:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as completed = 8
20220702:21:12:19:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as killed = 0
20220702:21:12:19:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as failed = 0
20220702:21:12:19:114421 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Scanning utility log file for any warning messages
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Log file scan check passed
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Greenplum Database instance successfully created
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-------------------------------------------------------
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-To complete the environment configuration, please
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-update gpadmin .bashrc file with the following
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-1. Ensure that the greenplum_path.sh file is sourced
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-2. Add "export MASTER_DATA_DIRECTORY=/data/master/gpseg-1"
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:- to access the Greenplum scripts for this instance:
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:- or, use -d /data/master/gpseg-1 option for the Greenplum scripts
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:- Example gpstate -d /data/master/gpseg-1
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Script log file = /home/gpadmin/gpAdminLogs/gpinitsystem_20220702.log
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-To remove instance, run gpdeletesystem utility
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-To initialize a Standby Master Segment for this Greenplum instance
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Review options for gpinitstandby
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-------------------------------------------------------
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-The Master /data/master/gpseg-1/pg_hba.conf post gpinitsystem
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-has been configured to allow all hosts within this new
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-array to intercommunicate. Any hosts external to this
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-new array must be explicitly added to this file
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-Refer to the Greenplum Admin support guide which is
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-located in the /greenplum/greenplum-db-6.18.2/docs directory
20220702:21:12:20:114421 gpinitsystem:mdw:gpadmin-[INFO]:-------------------------------------------------------
[[email protected] tmp]$
error message
................
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Checking new segment hosts, Completed
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Greenplum Database Creation Parameters
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:---------------------------------------
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Master Configuration
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:---------------------------------------
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Master instance name = Greenplum
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Master hostname = mdw
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Master port = 5432
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Master instance dir = /data/master/gpseg-1
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Master LOCALE = en_US.utf8
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Greenplum segment prefix = gpseg
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Master Database =
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Master connections = 250
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Master buffers = 128000kB
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Segment connections = 750
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Segment buffers = 128000kB
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Checkpoint segments = 8
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Encoding = UNICODE
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Postgres param file = Off
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Initdb to be used = /greenplum/greenplum-db-6.18.2/bin/initdb
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-GP_LIBRARY_PATH is = /greenplum/greenplum-db-6.18.2/lib
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-HEAP_CHECKSUM is = on
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-HBA_HOSTNAMES is = 0
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Ulimit check = Passed
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Array host connect type = Single hostname per node
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Master IP address [1] = ::1
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Master IP address [2] = 192.168.0.110
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Master IP address [3] = fe80::20c:29ff:fe90:bf83
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Standby Master = Not Configured
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Number of primary segments = 4
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Total Database segments = 8
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Trusted shell = ssh
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Number segment hosts = 2
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Mirror port base = 37000
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Number of mirror segments = 4
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Mirroring config = ON
20220702:22:30:45:029305 gpinitsystem:mdw:gpadmin-[INFO]:-Mirroring type = Group
Error installation status information
[[email protected] tmp]$ gpstate -a
20220702:21:34:06:001098 gpstate:mdw:gpadmin-[INFO]:-Starting gpstate with args: -a
20220702:21:34:06:001098 gpstate:mdw:gpadmin-[INFO]:-local Greenplum Version: 'postgres (Greenplum Database) 6.18.2 build commit:1242aadf0137d3b26ee42c80e579e78bd7a805c7'
20220702:21:34:06:001098 gpstate:mdw:gpadmin-[INFO]:-master Greenplum Version: 'PostgreSQL 9.4.24 (Greenplum Database 6.18.2 build commit:1242aadf0137d3b26ee42c80e579e78bd7a805c7) on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 6.4.0, 64-bit compiled on Nov 10 2021 00:05:30'
20220702:21:34:06:001098 gpstate:mdw:gpadmin-[INFO]:-Obtaining Segment details from master...
20220702:21:34:06:001098 gpstate:mdw:gpadmin-[INFO]:-Gathering data from segments...
................
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:-Greenplum instance status summary
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Master instance = Active
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Master standby = No master standby configured
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total segment instance count from metadata = 16
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Primary Segment Status
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total primary segments = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total primary segment valid (at master) = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total primary segment failures (at master) = 0
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number of postmaster.pid files missing = 0
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number of postmaster.pid files found = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number of postmaster.pid PIDs missing = 0
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number of postmaster.pid PIDs found = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number of /tmp lock files missing = 0
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number of /tmp lock files found = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number postmaster processes missing = 0
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number postmaster processes found = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Mirror Segment Status
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:-----------------------------------------------------
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total mirror segments = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total mirror segment valid (at master) = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total mirror segment failures (at master) = 0
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number of postmaster.pid files missing = 0
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number of postmaster.pid files found = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number of postmaster.pid PIDs missing = 0
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number of postmaster.pid PIDs found = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number of /tmp lock files missing = 0
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number of /tmp lock files found = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number postmaster processes missing = 0
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number postmaster processes found = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number mirror segments acting as primary segments = 0
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:- Total number mirror segments acting as mirror segments = 8
20220702:21:34:23:001098 gpstate:mdw:gpadmin-[INFO]:-----------------------------------------------------
[[email protected] tmp]$
5、 ... and . Check the cluster information
# see mirror The state of
gpstate -e
# see standby master The state of
gpstate -f
# View the entire GP The state of the cluster
gpstate -s
# see GP Version of
gpstate -i
# Help document
gpstate --help
6、 ... and . Cluster reinstallation
Force clear master,segment All data directories
gpdeletesystem -d /data/master/gpseg-1 -f
Delete and modify the configuration information
vi /tmp/gpinitsystem_config
gpinitsystem -c /tmp/gpinitsystem_config -D
# Modify the configuration again
vi /data/master/gpseg-1/pg_hba.conf
边栏推荐
- 调用华为游戏多媒体服务的创建引擎接口返回错误码1002,错误信息:the params is error
- Interpolation lookup (two methods)
- Tronapi-波场接口-源码无加密-可二开--附接口文档-基于ThinkPHP5封装-作者详细指导-2022年7月6日-新手快速上手-可无缝升级tp6版本
- 登山小分队(dfs)
- oracle一次性说清楚,多种分隔符的一个字段拆分多行,再多行多列多种分隔符拆多行,最终处理超亿亿。。亿级别数据量
- The single value view in Splunk uses to replace numeric values with text
- String operation
- Basic data types and string types are converted to each other
- opencv之图像分割
- 快速集成认证服务-HarmonyOS平台
猜你喜欢
Iptables' state module (FTP service exercise)
[Yugong series] February 2022 U3D full stack class 006 unity toolbar
Introduction to data fragmentation
一种适用于应用频繁测试下快速查看Pod的日志的方法(grep awk xargs kuberctl)
Virtual address space
Golang 编译约束/条件编译 ( // +build <tags> )
Interpolation lookup (two methods)
Opencv learning notes II - basic image operations
2 - 3 arbre de recherche
21 general principles of wiring in circuit board design_ Provided by Chengdu circuit board design
随机推荐
In go language, function is a type
说一个软件创业项目,有谁愿意投资的吗?
GOLand idea intellij 无法输入汉字
23 Chengdu instrument customization undertaking_ Discussion on automatic wiring method of PCB in Protel DXP
Introduction to data fragmentation
Tips for using jeditabletable
快速集成认证服务-HarmonyOS平台
Data type - floating point (C language)
一种适用于应用频繁测试下快速查看Pod的日志的方法(grep awk xargs kuberctl)
如何理解分布式架构和微服务架构呢
[kuangbin]专题十五 数位DP
21 general principles of wiring in circuit board design_ Provided by Chengdu circuit board design
Golang compilation constraint / conditional compilation (/ / +build < tags>)
数据分片介绍
QT charts use (rewrite qchartview to realize some custom functions)
对API接口或H5接口做签名认证
Gson转换实体类为json时报declares multiple JSON fields named
String operation
Installation and configuration of PLSQL
What are the advantages of commas in conditional statements- What is the advantage of commas in a conditional statement?