postmaster.pid does not exist,為啥呀?
很多時候,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文件,正確配置訪問地址。
最後更新:2017-06-11 19:32:40