Symptoms:
When running the
gpstart, it appears to be hanging for some time and command prompt is not returned.
The following is an example output from
gpstart:
20180803:20:58:55:020360 gpstart:mdw1:gpadmin-[WARNING]:-****************************************************************************
20180803:20:58:55:020360 gpstart:mdw1:gpadmin-[WARNING]:-There are 2 segment(s) marked down in the database
20180803:20:58:55:020360 gpstart:mdw1:gpadmin-[WARNING]:-To recover from this current state, review usage of the gprecoverseg
20180803:20:58:55:020360 gpstart:mdw1:gpadmin-[WARNING]:-management utility which will recover failed segment instance databases.
20180803:20:58:55:020360 gpstart:mdw1:gpadmin-[WARNING]:-****************************************************************************
20180803:20:58:55:020360 gpstart:mdw1:gpadmin-[INFO]:-Starting Master instance mdw1 directory /data/master/gpseg-1
20180803:20:58:56:020360 gpstart:mdw1:gpadmin-[INFO]:-Command pg_ctl reports Master mdw1 instance active
20180803:20:58:56:020360 gpstart:mdw1:gpadmin-[DEBUG]:-Connecting to dbname='template1'
The command prompt does not return even when the
gpstart has actually completed its run. The
Psql hangs and there are startup connections when checked with the
Process Status (ps) command.
Example:
[gpadmin@mdw ~]$ ps -ef | grep postgres grep -i startup
gpadmin 83129 82178 0 20:58 ? 00:00:00 postgres: port 5432, gpadmin template1 host(port) con5 host(port) startup
While checking via
gpstate, it is seen that one or more segments are trying to recover or resynchronize.
Example:
20180803:21:06:55:020928 gpstate:mdw1:gpadmin-[INFO]:-Segment Pairs in Resynchronization
20180803:21:06:55:020928 gpstate:mdw1:gpadmin-[INFO]:- Current Primary Port Resync mode Est. resync progress Total resync objects Objects to resync Data synced Est. total to sync Est. resync end time Change tracking size Mirror Port
20180803:21:06:55:020928 gpstate:mdw1:gpadmin-[INFO]:- sdw1 1153 Incremental Not Available 0 0 0 bytes Not Available Not Available 518 GB sdw2 1025
...
20180803:21:06:55:020928 gpstate:mdw1:gpadmin-[INFO]:- sdw4 1156 Incremental Not Available 0 0 0 bytes Not Available Not Available 538 GB sdw3 1028