启停openGauss

2023年 11月 16日 18.5k 0

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

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

相关文章

Oracle如何使用授予和撤销权限的语法和示例
Awesome Project: 探索 MatrixOrigin 云原生分布式数据库
下载丨66页PDF,云和恩墨技术通讯(2024年7月刊)
社区版oceanbase安装
Oracle 导出CSV工具-sqluldr2
ETL数据集成丨快速将MySQL数据迁移至Doris数据库

发布评论