首页 > 数据库 > > 命令行参考-启动命令
start命令用于在集群恢复操作后启动集群。
python GaussRoach.py
-t start
[--logging-path] <logging-path>
[--parallel-jobs] <jobs-count>
[--restore-new-cluster]
[-X <XML path of the new cluster>]
完整选项 | 缩写选项 | 数据类型 | 说明 | 取值范围 | 缺省值 | 应用实例 |
|---|---|---|---|---|---|---|
-t | 不涉及 | 字符串 | Roach接口支持多种功能。指定该参数为start,表示启动集群。 |
| 不涉及 | -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/ ,如需转载,请注明出处,否则将追究法律责任。