ITPub博客

首页 > 数据库 > > 命令行参考-清除命令

命令行参考-清除命令

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

功能

clean命令用于在恢复操作之前清除该集群。

命令格式

python GaussRoach.py
-t clean
[--logging-path <logging-path>]
[--restore-new-cluster]

参数说明

表1 清除命令的命令行参数列表

完整选项

缩写选项

数据类型

说明

取值范围

缺省值

应用实例

-t

不涉及

字符串

Roach接口支持多种功能。指定该参数为clean,表示调用清除功能。

  • -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 clean

--logging-path

不涉及

字符串

日志存放路径。

不涉及

$GAUSSLOG/roach/controller

--logging-path $GAUSSLOG/roach/controller

--restore-new-cluster

不涉及

布尔型

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

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

说明:

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

不涉及

False

--restore-new-cluster

使用指南

  • 在恢复操作之前,用户使用清除命令删除集群数据库。
  • 在执行清理操作之前,请确保存在有效的备份。
  • 执行清理和恢复时,请确保备份已经过验证。
 说明:

用户可以通过使用clean脚本或者作为恢复命令的参数来执行清除操作。

命令示例

恢复操作前清除集群数据库。

python GaussRoach.py -t clean
将集群恢复到不同节点组前清除集群数据库。
python GaussRoach.py -t clean --restore-new-cluster
系统回显
Begin to parse config file...
Begin step:clean cluster...
Begin stop cluster...
End stop cluster.
Begin clean data before restore...
End clean data before restore
End step:clean cluster

相关命令

恢复命令

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

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

注册时间:2020-01-06

  • 博文量
    2907
  • 访问量
    19305