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