您的位置:首页 > 数据库

GreenPlum数据库启动失败 Failed to start Master instance in admin mode

2013-05-27 14:49 429 查看
[gpadmin@sggp ~]$ gpstart

20130527:14:17:31:003814 gpstart:sggp:gpadmin-[INFO]:-Starting gpstart with args:

20130527:14:17:31:003814 gpstart:sggp:gpadmin-[INFO]:-Gathering information and validating the environment...

20130527:14:17:31:003814 gpstart:sggp:gpadmin-[INFO]:-Greenplum Binary Version: 'postgres (Greenplum Database) 4.2.1.2 build 2'

20130527:14:17:31:003814 gpstart:sggp:gpadmin-[INFO]:-Greenplum Catalog Version: '201109210'

20130527:14:17:31:003814 gpstart:sggp:gpadmin-[INFO]:-Starting Master instance in admin mode

20130527:14:17:33:003814 gpstart:sggp:gpadmin-[CRITICAL]:-Failed to start Master instance in admin mode

20130527:14:17:33:003814 gpstart:sggp:gpadmin-[CRITICAL]:-Error occurred: non-zero rc: 1

Command was: 'env GPSESSID=0000000000 GPKILL=NEVER GPERA=None $GPHOME/bin/pg_ctl -D /data/masterdata/gpseg-1 -l /data/masterdata/gpseg-1/pg_log/startup.log -w -t 600 -o " -p 5432 -b 1 -z 0 --silent-mode=true -i -M master -C -1 -x 0 -c gp_role=utility " start'

rc=1, stdout='waiting for server to start......could not start server

', stderr='pg_ctl: PID file "/data/masterdata/gpseg-1/postmaster.pid" does not exist

'

[gpadmin@sggp ~]$

出现这个问题有以下几种可能:

1.gpmaster/目录下磁盘已满,没有启动所用的空间;

解决:删除不用的数据。留有足够的空间

2.数据库升过级后,忘了改环境变量或是环境变量设置的有问题

解决:环境变量修改正确即可,实例如下:

[gpadmin@mdw ~]$ more .bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

[gpadmin@mdw ~]$ more .bashrc

# .bashrc

# Source global definitions

if [ -f /etc/bashrc ]; then

. /etc/bashrc

fi

# User specific aliases and functions

source /usr/local/greenplum-db/greenplum_path.sh

export MASTER_DATA_DIRECTORY=/data/master/gpseg-1

source /usr/local/greenplum-cc-web-1.2.0.1-build-2/gpcc_path.sh

[gpadmin@mdw ~]$
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐