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

华为GaussDB A GaussRoach.py 启动命令

墨天轮 2019-10-12
959

启动命令

功能

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 : 0 down : 0 GTM State primary : 2 standby : 2 secondary : 2 building : 0 abnormal : 0 down : 0 End start cluster. End step:start cluster...

相关命令

恢复命令


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

评论