gp 6.4.0 初始化数据库

[gpadmin@sdw1 conf]$ gpinitsystem -c /home/gpadmin/conf/gpinitsystem_config -h /home/gpadmin/conf/seg_hosts
20200310:19:42:04:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Checking configuration parameters, please wait...
20200310:19:42:04:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Reading Greenplum configuration file /home/gpadmin/conf/gpinitsystem_config
20200310:19:42:04:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Locale has not been set in /home/gpadmin/conf/gpinitsystem_config, will set to default value
20200310:19:42:04:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Locale set to en_US.utf8
20200310:19:42:04:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-No DATABASE_NAME set, will exit following template1 updates
20200310:19:42:04:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-MASTER_MAX_CONNECT not set, will set to default value 250
20200310:19:42:04:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Checking configuration parameters, Completed
20200310:19:42:04:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Commencing multi-home checks, please wait...
..
20200310:19:42:04:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Configuring build for standard array
20200310:19:42:04:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Commencing multi-home checks, Completed
20200310:19:42:04:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Building primary segment instance array, please wait...
..
20200310:19:42:05:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Building group mirror array type , please wait...
..
20200310:19:42:06:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Checking Master host
20200310:19:42:06:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Checking new segment hosts, please wait...
....
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Checking new segment hosts, Completed
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Greenplum Database Creation Parameters
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:---------------------------------------
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Master Configuration
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:---------------------------------------
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Master instance name       = Greenplum Data Platform
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Master hostname            = sdw1
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Master port                = 5432
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Master instance dir        = /home/gpadmin/data/master/gpseg-1
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Master LOCALE              = en_US.utf8
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Greenplum segment prefix   = gpseg
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Master Database            = 
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Master connections         = 250
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Master buffers             = 128000kB
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Segment connections        = 750
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Segment buffers            = 128000kB
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Checkpoint segments        = 8
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Encoding                   = UNICODE
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Postgres param file        = Off
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Initdb to be used          = /usr/local/greenplum-db/./bin/initdb
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-GP_LIBRARY_PATH is         = /usr/local/greenplum-db/./lib
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-HEAP_CHECKSUM is           = on
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-HBA_HOSTNAMES is           = 0
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Ulimit check               = Passed
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Array host connect type    = Single hostname per node
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Master IP address [1]      = ::1
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Master IP address [2]      = 220.220.220.10
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Master IP address [3]      = fe80::20c:29ff:fe77:9ea3
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Standby Master             = Not Configured
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Number of primary segments = 1
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Total Database segments    = 2
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Trusted shell              = ssh
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Number segment hosts       = 2
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Mirror port base           = 50000
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Number of mirror segments  = 1
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Mirroring config           = ON
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Mirroring type             = Group
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:----------------------------------------
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Greenplum Primary Segment Configuration
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:----------------------------------------
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-sdw2         /home/gpadmin/data/primary/gpseg0       7000    2       0
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-sdw3         /home/gpadmin/data/primary/gpseg1       7000    3       1
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:---------------------------------------
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Greenplum Mirror Segment Configuration
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:---------------------------------------
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-sdw3         /home/gpadmin/data/mirror/gpseg0        50000   4       0
20200310:19:42:10:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-sdw2         /home/gpadmin/data/mirror/gpseg1        50000   5       1

Continue with Greenplum creation Yy|Nn (default=N):
> y
20200310:19:42:13:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Building the Master instance database, please wait...
20200310:19:42:20:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Starting the Master in admin mode
20200310:19:42:21:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Commencing parallel build of primary segment instances
20200310:19:42:21:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Spawning parallel processes    batch [1], please wait...
..
20200310:19:42:21:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Waiting for parallel processes batch [1], please wait...
...................
20200310:19:42:41:024409 gpinitsystem:sdw1:gpadmin-[INFO]:------------------------------------------------
20200310:19:42:41:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Parallel process exit status
20200310:19:42:41:024409 gpinitsystem:sdw1:gpadmin-[INFO]:------------------------------------------------
20200310:19:42:41:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Total processes marked as completed           = 2
20200310:19:42:41:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Total processes marked as killed              = 0
20200310:19:42:41:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Total processes marked as failed              = 0
20200310:19:42:41:024409 gpinitsystem:sdw1:gpadmin-[INFO]:------------------------------------------------
20200310:19:42:41:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Deleting distributed backout files
20200310:19:42:41:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Removing back out file
20200310:19:42:41:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-No errors generated from parallel processes
20200310:19:42:41:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Restarting the Greenplum instance in production mode
20200310:19:42:41:026774 gpstop:sdw1:gpadmin-[INFO]:-Starting gpstop with args: -a -l /home/gpadmin/gpAdminLogs -m -d /home/gpadmin/data/master/gpseg-1
20200310:19:42:41:026774 gpstop:sdw1:gpadmin-[INFO]:-Gathering information and validating the environment...
20200310:19:42:41:026774 gpstop:sdw1:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20200310:19:42:41:026774 gpstop:sdw1:gpadmin-[INFO]:-Obtaining Segment details from master...
20200310:19:42:41:026774 gpstop:sdw1:gpadmin-[INFO]:-Greenplum Version: 'postgres (Greenplum Database) 6.4.0 build commit:564b89a8c6bef5e329a59f39dac438b13d9cb3fa'
20200310:19:42:41:026774 gpstop:sdw1:gpadmin-[INFO]:-Commencing Master instance shutdown with mode='smart'
20200310:19:42:41:026774 gpstop:sdw1:gpadmin-[INFO]:-Master segment instance directory=/home/gpadmin/data/master/gpseg-1
20200310:19:42:41:026774 gpstop:sdw1:gpadmin-[INFO]:-Stopping master segment and waiting for user connections to finish ...
server shutting down
20200310:19:42:42:026774 gpstop:sdw1:gpadmin-[INFO]:-Attempting forceful termination of any leftover master process
20200310:19:42:42:026774 gpstop:sdw1:gpadmin-[INFO]:-Terminating processes for segment /home/gpadmin/data/master/gpseg-1
20200310:19:42:42:026797 gpstart:sdw1:gpadmin-[INFO]:-Starting gpstart with args: -a -l /home/gpadmin/gpAdminLogs -d /home/gpadmin/data/master/gpseg-1
20200310:19:42:42:026797 gpstart:sdw1:gpadmin-[INFO]:-Gathering information and validating the environment...
20200310:19:42:42:026797 gpstart:sdw1:gpadmin-[INFO]:-Greenplum Binary Version: 'postgres (Greenplum Database) 6.4.0 build commit:564b89a8c6bef5e329a59f39dac438b13d9cb3fa'
20200310:19:42:42:026797 gpstart:sdw1:gpadmin-[INFO]:-Greenplum Catalog Version: '301908232'
20200310:19:42:42:026797 gpstart:sdw1:gpadmin-[INFO]:-Starting Master instance in admin mode
20200310:19:42:43:026797 gpstart:sdw1:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20200310:19:42:43:026797 gpstart:sdw1:gpadmin-[INFO]:-Obtaining Segment details from master...
20200310:19:42:43:026797 gpstart:sdw1:gpadmin-[INFO]:-Setting new master era
20200310:19:42:43:026797 gpstart:sdw1:gpadmin-[INFO]:-Master Started...
20200310:19:42:43:026797 gpstart:sdw1:gpadmin-[INFO]:-Shutting down master
20200310:19:42:43:026797 gpstart:sdw1:gpadmin-[INFO]:-Commencing parallel segment instance startup, please wait...
.
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-Process results...
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-----------------------------------------------------
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-   Successful segment starts                                            = 2
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-   Failed segment starts                                                = 0
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-   Skipped segment starts (segments are marked down in configuration)   = 0
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-----------------------------------------------------
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-Successfully started 2 of 2 segment instances 
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-----------------------------------------------------
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-Starting Master instance sdw1 directory /home/gpadmin/data/master/gpseg-1 
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-Command pg_ctl reports Master sdw1 instance active
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-Connecting to dbname='template1' connect_timeout=15
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-No standby master configured.  skipping...
20200310:19:42:45:026797 gpstart:sdw1:gpadmin-[INFO]:-Database successfully started
20200310:19:42:45:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Completed restart of Greenplum instance in production mode
20200310:19:42:45:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Commencing parallel build of mirror segment instances
20200310:19:42:45:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Spawning parallel processes    batch [1], please wait...
..
20200310:19:42:45:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Waiting for parallel processes batch [1], please wait...
...............
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:------------------------------------------------
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Parallel process exit status
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:------------------------------------------------
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Total processes marked as completed           = 2
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Total processes marked as killed              = 0
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Total processes marked as failed              = 0
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:------------------------------------------------
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Scanning utility log file for any warning messages
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Log file scan check passed
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Greenplum Database instance successfully created
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-------------------------------------------------------
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-To complete the environment configuration, please 
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-update gpadmin .bashrc file with the following
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-1. Ensure that the greenplum_path.sh file is sourced
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-2. Add "export MASTER_DATA_DIRECTORY=/home/gpadmin/data/master/gpseg-1"
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-   to access the Greenplum scripts for this instance:
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-   or, use -d /home/gpadmin/data/master/gpseg-1 option for the Greenplum scripts
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-   Example gpstate -d /home/gpadmin/data/master/gpseg-1
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Script log file = /home/gpadmin/gpAdminLogs/gpinitsystem_20200310.log
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-To remove instance, run gpdeletesystem utility
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-To initialize a Standby Master Segment for this Greenplum instance
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Review options for gpinitstandby
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-------------------------------------------------------
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-The Master /home/gpadmin/data/master/gpseg-1/pg_hba.conf post gpinitsystem
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-has been configured to allow all hosts within this new
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-array to intercommunicate. Any hosts external to this
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-new array must be explicitly added to this file
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-Refer to the Greenplum Admin support guide which is
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-located in the /usr/local/greenplum-db/./docs directory
20200310:19:43:01:024409 gpinitsystem:sdw1:gpadmin-[INFO]:-------------------------------------------------------
[gpadmin@sdw1 conf]$ 
[gpadmin@sdw1 conf]$ 
[gpadmin@sdw1 conf]$ gpstate -e
20200310:19:43:12:027561 gpstate:sdw1:gpadmin-[INFO]:-Starting gpstate with args: -e
20200310:19:43:12:027561 gpstate:sdw1:gpadmin-[INFO]:-local Greenplum Version: 'postgres (Greenplum Database) 6.4.0 build commit:564b89a8c6bef5e329a59f39dac438b13d9cb3fa'
20200310:19:43:12:027561 gpstate:sdw1:gpadmin-[INFO]:-master Greenplum Version: 'PostgreSQL 9.4.24 (Greenplum Database 6.4.0 build commit:564b89a8c6bef5e329a59f39dac438b13d9cb3fa) on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 6.4.0, 64-bit compiled on Feb 11 2020 20:35:16'
20200310:19:43:12:027561 gpstate:sdw1:gpadmin-[INFO]:-Obtaining Segment details from master...
20200310:19:43:12:027561 gpstate:sdw1:gpadmin-[INFO]:-Gathering data from segments...
20200310:19:43:12:027561 gpstate:sdw1:gpadmin-[INFO]:-----------------------------------------------------
20200310:19:43:12:027561 gpstate:sdw1:gpadmin-[INFO]:-Segment Mirroring Status Report
20200310:19:43:12:027561 gpstate:sdw1:gpadmin-[INFO]:-----------------------------------------------------
20200310:19:43:12:027561 gpstate:sdw1:gpadmin-[INFO]:-All segments are running normally
[gpadmin@sdw1 conf]$ 

 

你可能感兴趣的:(greenplum)