greenplum 5.7 + gpstart gpstop gpstate

gpstart 启动数据库

$ gpstart --help

$ gpstart

直接启动,不提示终端用户输入确认
$ gpstart -a

只启动master 实例,主要在故障处理时使用
$ gpstart -m
PGOPTIONS='-c gp_session_role=utility' psql

限制模式,只有超级管理员可以连接
$ gpstart -R

gpstop 关闭数据库

$ gpstop --help

正常关闭,需要用户输入y|n确认
$ gpstop
$ gpstop -M smart

直接停止,不需要用户输入y|n确认
$ gpstop -a

三种关闭模式
$ gpstop -M smart
$ gpstop -M fast
$ gpstop -M immediate

只停止master 实例,进入维护模式
$ gpstop -m

重新加载配置文件,不停止数据库
$ gpstop –u

重启所有segment 实例
$ gpstop –r

gpstate 查看数据库运行状态

$ gpstate --help

显示详细信息
$ gpstate -s

显示 primary instance 和 mirror instance 的对应关系
$ gpstate -c

显示 standby master details
$ gpstate -f

显示 mirrors实例的状态和配置信息
$ gpstate -m

显示状态综合信息
$ gpstate -Q

显示版本信息
$ gpstate -i
原文地址:https://www.cnblogs.com/ctypyb2002/p/9793004.html