No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Advanced O&M Command Reference

OceanStor 2000, 5000, and 6000 V3 Series V300R006

This document is applicable to OceanStor 2200 V3, 2600 V3 Video Surveillance Edition, 2600 V3, 5300 V3, 5500 V3, 5600 V3, 5800 V3, and 6800 V3. Based on the CLI, this document describes how to use various commands classified by functionsand how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
change ccdb general

change ccdb general

Function

The change ccdb general command is used to change the configuration of the CCDB.

Format

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

Parameters

Parameter

Description

Value

obj_type=?

Operation object type.

The value can be "db_file" or "server" where:

  • db_file: operation database file.
  • server: operation server process.

oper_type=?

Operation type.

The value can be "create" or "delete", where:

  • create: creation.
  • delete: deletion.

controller=?

Controller ID.

The value is in the format of "XA" or "XB" or "XC" or "XD", where the "X" is an integer ranging from 0 to 3, for example: "0A", "1C".

backup_file_name=?

Backup file name.

You can get through the "show ccdb general obj_type=backup_files" command. In general, the 'backup-' at the beginning, ending in '.tar'.

db_name=?

Name of the database to be operated.

The value contains 1 to 127 characters.

Views

Developer view

Usage Guidelines

  • If you want to recover a database file, you need to specify the value of backup_file_name. Besides, you can enter the value of db_name to specify the name of the database whose database file needs to be recovered.
  • If you want to clean up a database file, you can enter the value of db_name to specify the name of the database whose database file needs to be cleaned up.

Example

  • Stop the server process of the CCDB.
    developer:/>change ccdb general obj_type=server oper_type=delete controller=0A 
    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 danger alert message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Password:************** 
    Command executed successfully.
  • Clean up all the database files of the CCDB.
    developer:/>change ccdb general obj_type=db_file oper_type=delete controller=0A 
    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 danger alert message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Password:********** 
    Command executed successfully.
  • Recover all the database files of the CCDB.
    developer:/>change ccdb general obj_type=db_file oper_type=create controller=0A 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 danger alert message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Password:********** 
    Command executed successfully.
  • Clean up the CCDB's database file whose name is test_db.
    developer:/>change ccdb general obj_type=db_file oper_type=delete controller=0A 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 danger alert message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Password:********** 
    Command executed successfully.
  • Recover the CCDB's database file whose name is test_db.
    developer:/>change ccdb general obj_type=db_file oper_type=create controller=0A 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 danger alert message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Password:********** 
    Command executed successfully.
  • Start the server process of the CCDB.
    developer:/>change ccdb general obj_type=server oper_type=create controller=0A 
    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 danger alert message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Password:********** 
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138402

Views: 612978

Downloads: 695

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next