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 5000, 5000F, 6000, and 6000F V5 Series V500R007

This document is applicable to OceanStor 5110 V5, 5110F V5, 5300 V5, 5500 V5, 5600 V5, 5800 V5, 6800 V5, 5300F V5, 5500F V5, 5600F V5, 5800F V5, and 6800F V5. 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.
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-11

Document ID: EDOC1000181619

Views: 614152

Downloads: 242

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