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

[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 ~]$

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值