ITPub博客

首页 > 数据库 > > 命令行参考-启动命令

命令行参考-启动命令

作者:GaussDB_数据库 时间:2020-01-20 11:28:49 0 删除 编辑

功能

start命令用于在集群恢复操作后启动集群。

命令格式

python GaussRoach.py
-t start
[--logging-path] <logging-path>
[--parallel-jobs] <jobs-count>
[--restore-new-cluster]
[-X <XML path of the new cluster>]

参数说明

表1 启动命令的命令行参数列表

完整选项

缩写选项

数据类型

说明

取值范围

缺省值

应用实例

-t

不涉及

字符串

Roach接口支持多种功能。指定该参数为start,表示启动集群。

  • -t backup
  • -t stop
  • -t validate
  • -t delete
  • -t restore
  • -t show
  • -t generate
  • -t genstack
  • -t getobject
  • -t start
  • -t clean
  • -t config
  • -t version
  • -t help

不涉及

-t start

--logging-path

不涉及

字符串

日志存放路径。

不涉及

$GAUSSLOG/roach/controller

--logging-path $GAUSSLOG/roach/controller

--parallel-jobs

不涉及

整数

备份或恢复操作的并行进程数量。

1–32

5

--parallel-jobs 6

--restore-new-cluster

不涉及

布尔型

将集群恢复到另一主机上。

如果命令中指定了该参数,则参数值为true。否则值为false。

说明:

该参数仅在media type为disk时有效。

不涉及

False

--restore-new-cluster

-X

-X

字符串

新集群的XML路径。

说明:
  • 该参数仅对从磁盘将集群恢复到不同节点组的功能有效。
  • 该参数区分大小写,参数值必须为大写。

绝对路径

不涉及

-X /home/db/

restore

使用指南

在恢复集群之后,使用start命令启动集群。并行参数(可选)可以同start命令一同提供,用以同步运行流程。

命令示例

恢复操作后启动集群。

python GaussRoach.py -t start
将集群恢复到不同节点组后启动集群。
python GaussRoach.py -t start --restore-new-cluster -X <XML path of the new cluster>
系统回显
sparrow@node200:~/db/bin> python GaussRoach.py -t start
Begin to parse config file...
Begin stop cluster...
End stop cluster.
Begin step:start cluster...
Begin start GTM...
End start GTM
Begin start coordinator...
End start coordinator
Begin start datanode Master...
End start datanode Master
Begin build datanode Standby...
End build datanode Standby
Begin start cluster...
Start primary instance sucessfully, wait for standby instances...
---------------------------------------------------------------------
.
Start standby instances successfully.
---------------------------------------------------------------------
cluster_state : Normal
node_count : 2
Coordinator State
normal : 2
abnormal : 0
GTM State
primary : 1
standby : 1
abnormal :
down : 0
GTM State
primary : 2
standby : 2
secondary : 2
building :
abnormal :
down : 0
End start cluster.
End step:start cluster...


相关命令

恢复命令

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69959250/viewspace-3166713/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2020-01-06

  • 博文量
    2907
  • 访问量
    19310