我初始化greenplum时无法启动段实例数据库sdwXX

时间:2016-07-18 06:35:59

标签: python database postgresql greenplum

我在初始化Greenplum时遇到问题,因此无法成功安装Greenplum。 我已经在虚拟机中成功安装了Greenplum,我使用桥接模式,在初始化期间我还遇到了一个问题,即它无法在段之间复制文件(例如sdw1和sdw2),我发现解决方案从Internet设置DNS然后我安装Greenplum成功。 现在我以与VM相同的方式在云服务器上安装Greenplum,CentOS有默认的DNS,但我已经尝试了很多次并且无法成功安装,我认为问题是“无法启动段实例数据库sdwXX”,但是我不知道导致问题的原因是什么。请帮帮我,谢谢。 日志如下:

20160717:18:34:05:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Building the Master instance database, please wait...
20160717:18:34:37:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Starting the Master in admin mode
20160717:18:34:48:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing parallel build of primary segment instances
20160717:18:34:48:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Spawning parallel processes    batch [1], please wait...
......
20160717:18:34:49:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Waiting for parallel processes batch [1], please wait...
.
20160717:18:34:50:022913 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20160717:18:34:50:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Parallel process exit status
20160717:18:34:50:022913 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20160717:18:34:50:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as completed           = 0
20160717:18:34:50:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as killed              = 0
20160717:18:34:50:022913 gpinitsystem:mdw:gpadmin-[WARN]:-Total processes marked as failed              = 6 <<<<<
20160717:18:34:50:022913 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20160717:18:34:50:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing parallel build of mirror segment instances
20160717:18:34:50:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Spawning parallel processes    batch [1], please wait...
......
20160717:18:34:50:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Waiting for parallel processes batch [1], please wait...
.
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Parallel process exit status
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as completed           = 0
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as killed              = 0
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[WARN]:-Total processes marked as failed              = 6 <<<<<
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[FATAL]:-Errors generated from parallel processes
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Dumped contents of status file to the log file
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Building composite backout file
20160717:18:34:52:gpinitsystem:mdw:gpadmin-[FATAL]:-Failures detected, see log file /home/gpadmin/gpAdminLogs/gpinitsystem_20160717.log for more detail Script Exiting!
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[WARN]:-Script has left Greenplum Database in an incomplete state
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[WARN]:-Run command /bin/bash /home/gpadmin/gpAdminLogs/backout_gpinitsystem_gpadmin_20160717_183346 to remove these changes
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND

所以我看到/home/gpadmin/gpAdminLogs/gpinitsystem_20160717.log,部分内容如下:

20160717:18:34:51:010213 gpcreateseg.sh:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND
20160717:18:34:51:010213 gpcreateseg.sh:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:51:010213 gpcreateseg.sh:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND
20160717:18:34:51:010710 gpcreateseg.sh:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:51:010945 gpcreateseg.sh:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:51:010213 gpcreateseg.sh:mdw:gpadmin-[FATAL][0]:-Failed to start segment instance database sdw2 /home/gpadmin/gpdata/gpdatam1/gpseg0
20160717:18:34:51:010710 gpcreateseg.sh:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND
20160717:18:34:51:010293 gpcreateseg.sh:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:51:010416 gpcreateseg.sh:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:51:010945 gpcreateseg.sh:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND
20160717:18:34:51:010710 gpcreateseg.sh:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:51:010293 gpcreateseg.sh:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND
20160717:18:34:51:010416 gpcreateseg.sh:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND
20160717:18:34:51:010945 gpcreateseg.sh:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:51:010293 gpcreateseg.sh:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:51:010710 gpcreateseg.sh:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND
20160717:18:34:51:010546 gpcreateseg.sh:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:51:010416 gpcreateseg.sh:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:51:010945 gpcreateseg.sh:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND
20160717:18:34:51:010293 gpcreateseg.sh:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND
20160717:18:34:51:010710 gpcreateseg.sh:mdw:gpadmin-[FATAL][4]:-Failed to start segment instance database sdw1 /home/gpadmin/gpdata/gpdatam1/gpseg4
20160717:18:34:51:010546 gpcreateseg.sh:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND
20160717:18:34:51:010416 gpcreateseg.sh:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND
20160717:18:34:51:010945 gpcreateseg.sh:mdw:gpadmin-[FATAL][5]:-Failed to start segment instance database sdw1 /home/gpadmin/gpdata/gpdatam2/gpseg5
20160717:18:34:51:010293 gpcreateseg.sh:mdw:gpadmin-[FATAL][1]:-Failed to start segment instance database sdw2 /home/gpadmin/gpdata/gpdatam2/gpseg1
20160717:18:34:51:010546 gpcreateseg.sh:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:51:010416 gpcreateseg.sh:mdw:gpadmin-[FATAL][2]:-Failed to start segment instance database sdw3 /home/gpadmin/gpdata/gpdatam1/gpseg2
20160717:18:34:51:010546 gpcreateseg.sh:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND
20160717:18:34:51:010546 gpcreateseg.sh:mdw:gpadmin-[FATAL][3]:-Failed to start segment instance database sdw3 /home/gpadmin/gpdata/gpdatam2/gpseg3
20160717:18:34:51:022913 gpinitsystem:mdw:gpadmin-[INFO]:-End Function PARALLEL_WAIT
20160717:18:34:51:022913 gpinitsystem:mdw:gpadmin-[INFO]:-End Function PARALLEL_COUNT
20160717:18:34:51:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Start Function PARALLEL_SUMMARY_STATUS_REPORT
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Parallel process exit status
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as completed           = 0
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Total processes marked as killed              = 0
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[WARN]:-Total processes marked as failed              = 6 <<<<<
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:------------------------------------------------
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-End Function PARALLEL_SUMMARY_STATUS_REPORT
FAILED:sdw2~43000~/home/gpadmin/gpdata/gpdatam1/gpseg0~8~0~44000
FAILED:sdw1~43000~/home/gpadmin/gpdata/gpdatam1/gpseg4~12~4~44000
FAILED:sdw1~43001~/home/gpadmin/gpdata/gpdatam2/gpseg5~13~5~44001
FAILED:sdw2~43001~/home/gpadmin/gpdata/gpdatam2/gpseg1~9~1~44001
FAILED:sdw3~43000~/home/gpadmin/gpdata/gpdatam1/gpseg2~10~2~44000
FAILED:sdw3~43001~/home/gpadmin/gpdata/gpdatam2/gpseg3~11~3~44001
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-End Function CREATE_QES_MIRROR
INSERT 0 1
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[FATAL]:-Errors generated from parallel processes
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Dumped contents of status file to the log file
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Building composite backout file
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Start Function ERROR_EXIT
20160717:18:34:52:gpinitsystem:mdw:gpadmin-[FATAL]:-Failures detected, see log file /home/gpadmin/gpAdminLogs/gpinitsystem_20160717.log for more detail Script Exiting!
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[WARN]:-Script has left Greenplum Database in an incomplete state
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[WARN]:-Run command /bin/bash /home/gpadmin/gpAdminLogs/backout_gpinitsystem_gpadmin_20160717_183346 to remove these changes
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
20160717:18:34:52:022913 gpinitsystem:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND

1 个答案:

答案 0 :(得分:0)

检查是否正确设置了所有环境变量。细分应该有这些

export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/ usr / local / lib export LIBRARY_PATH = $ LD_LIBRARY_PATH 〜

此外,请检查您是否在gpinitsystem之前执行了gpseginstall