postmaster.pid does not exist,为啥呀?

    xiaoxiao2024-07-22  104

    很多时候,Deepgreen(Greenplum)启动过程中,会抛出一个postmastr.pid不存在的错误,产生这个问题的原因有很多,下面介绍一下,如有不足敬请补充:

    1.Master没有启动所用的空间

    解决办法:

    可以通过删除不用的数据(如log日志)的方式,留出足够的空间来启动数据库扩展磁盘空间临时转移log日志,带数据库启动并删除不用的数据库表数据后,重新把log日志转移回来

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

    解决办法:

    重新修改.bash_profile或.bashrc文件,环境变量设置正确

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

    3.pg_hba.conf中配置的客户端访问地址不对。

    解决办法:

    修改pg_hba.conf文件,正确配置访问地址。
    最新回复(0)