所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

OceanStor Dorado V3系列 V300R002 高级运维命令参考(块业务)

本产品文档适用于OceanStor Dorado3000 V3, Dorado5000 V3, Dorado6000 V3和Dorado18000 V3。本文档针对CLI命令行,介绍如何使用CLI设置和管理存储系统,以及按功能分类详细介 绍各命令的使用方法。
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
change ccdb general

change ccdb general

命令功能

change ccdb general命令用于更改CCDB的相关配置。

命令格式

change ccdb general obj_type=? oper_type=? [ backup_file_name=? db_name=? ]

参数说明

参数

参数说明

取值

obj_type=?

操作对象类型。

取值为db_file或server,各参数取值说明如下:

  • db_file:操作数据库文件。
  • server:操作server进程。

oper_type=?

操作类型。

取值为create或delete,各参数取值说明如下:

  • create:创建操作。
  • delete:删除操作。

backup_file_name=?

备份文件名。

可以通过“show ccdb general obj_type=backup_files”命令获取。一般以‘backup’开头,以‘.tar’结尾。

db_name=?

要操作的数据库名字。

-

视图

研发视图

使用指南

  • 如果是恢复数据库文件操作,需要输入“backup_file_name”指定备份文件名。并可通过输入“db_name”指定要恢复数据库文件的数据库的名字。
  • 如果是清理数据库文件操作,可输入“db_name”指定要清理数据库文件的数据库的名字。

使用实例

  • 停止ccdb的server进程。
    developer:/>change ccdb general obj_type=server oper_type=delete 
    DANGER: You are going to perform a danger command, this behavior clears or recover storage system configuration data. 
    Suggestion: Before performing this operation, please confirm that you want to do this. 
    Have you read warning message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 清理CCDB的所有数据库文件。
    developer:/>change ccdb general obj_type=db_file oper_type=delete 
    DANGER: You are going to perform a danger command, this behavior clears or recover storage system configuration data. 
    Suggestion: Before performing this operation, please confirm that you want to do this. 
    Have you read warning message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 恢复CCDB的所有数据库文件。
    developer:/>change ccdb general obj_type=db_file oper_type=create backup_file_name=backup-2015-05-27-16-30-09.tar  
    DANGER: You are going to perform a danger command, this behavior clears or recover storage system configuration data. 
    Suggestion: Before performing this operation, please confirm that you want to do this. 
    Have you read warning message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 清理CCDB的某个名字为test_db的数据库文件。
    developer:/>change ccdb general obj_type=db_file oper_type=delete db_name=test_db 
    DANGER: You are going to perform a danger command, this behavior clears or recover storage system configuration data. 
    Suggestion: Before performing this operation, please confirm that you want to do this. 
    Have you read warning message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 恢复CCDB的名字为test_db的数据库文件。
    developer:/>change ccdb general obj_type=db_file oper_type=create backup_file_name=backup-2015-05-27-16-30-09.tar db_name=test_db 
    DANGER: You are going to perform a danger command, this behavior clears or recover storage system configuration data. 
    Suggestion: Before performing this operation, please confirm that you want to do this. 
    Have you read warning message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 启动ccdb的server进程。
    developer:/>change ccdb general obj_type=server oper_type=create 
    DANGER: You are going to perform a danger command, this behavior clears or recover storage system configuration data. 
    Suggestion: Before performing this operation, please confirm that you want to do this. 
    Have you read warning message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.

输出说明

无。

翻译
下载文档
更新时间:2019-07-17

文档编号:EDOC1100049100

浏览量:51974

下载量:66

平均得分:
本文档适用于这些产品
相关文档
相关版本
Share
上一页 下一页