暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

启停openGauss

原创 凌韵 2023-11-14
151

1、启动openGauss


• 以操作系统用户omm登录数据库主节点。

• 使用以下命令启动openGauss。

[omm@opengauss ~]$ gs_om -t start
Starting cluster.
=========================================
[SUCCESS] opengauss
2023-11-13 17:38:10.189 [unknown] [unknown] localhost 47781153439104 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2023-11-13 17:38:10.189 [unknown] [unknown] localhost 47781153439104 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2023-11-13 17:38:10.192 [unknown] [unknown] localhost 47781153439104 0[0:0#0] 0 [BACKEND] WARNING: Failed to initialize the memory protect for g_instance.attr.attr_storage.cstore_buffers (16 Mbytes) or shared memory (3489 Mbytes) is larger.
=========================================
Successfully started.

2、停止openGauss


• 以操作系统用户omm登录数据库主节点。

• 使用以下命令停止openGauss。

[omm@opengauss ~]$ gs_om -t stop
Stopping cluster.
=========================================
Successfully stopped cluster.
=========================================
End stop cluster.

3、查看openGauss


• 以操作系统用户omm登录数据库主节点。

• 使用以下命令查看openGauss。

[omm@opengauss ~]$ gs_om -t status
-----------------------------------------------------------------------

cluster_name : yonath
cluster_state : Normal
redistributing : No

-----------------------------------------------------------------------
[omm@opengauss ~]$ gs_om -t status
-----------------------------------------------------------------------

cluster_name : yonath
cluster_state : Normal
redistributing : No

-----------------------------------------------------------------------


[omm@opengauss ~]$ gs_om -t status --detail
[ Cluster State ]

cluster_state : Normal
redistributing : No
current_az : AZ_ALL

[ Datanode State ]

node node_ip port instance state
--------------------------------------------------------------------------------
1 opengauss 192.168.203.139 26000 6001 /mogdb/data P Primary Normal


[omm@opengauss ~]$ gs_om -t status -h opengauss
-----------------------------------------------------------------------

cluster_state : Normal
redistributing : No

-----------------------------------------------------------------------

node : 1
node_name : opengauss
instance_id : 6001
node_ip : 192.168.203.139
data_path : /mogdb/data
instance_port : 26000
type : Datanode
instance_state : Normal
az_name : AZ1
instance_role : Normal

-----------------------------------------------------------------------

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

目录
  • 1、启动openGauss
  • 2、停止openGauss
  • 3、查看openGauss