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 2800 V5 V500R007

This document is applicable to OceanStor 2800 V5. Based on the CLI, this document describes how to use various commands classified by functions and 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 disk_domain repair_pool_meta

change disk_domain repair_pool_meta

Function

The change disk_domain repair_pool_meta command is used to repair pool metadata.

Format

change disk_domain repair_pool_meta repair_type=? disk_domain_id=? [ engine_id=? ] [ meta_type=? ] [ app_type=? ] [ tier_type=? ] [ action=? ] [ pool_id=? ] [ bak_ckg_id=? ] [ is_old_disklog=? ] [ root_ckg_info=? ] [ disklog_ckg_info=? ] [ disklog_type=? ] [ disklog_info=? ] [ force_type=? ] [ zone_id=? ] [ disk_id=? ]

Parameters

Parameter

Description

Value

repair_type=?

Type of the metadata to be repaired.

The value can be "POOL_META", "POOL_ROOT", "INSTANCE", "INNER_NODE", "DISKLOG", or "POOL_QUEUE", where:

  • "POOL_META": Pool metadata will be repaired.
  • "POOL_ROOT": The pool superblock will be repaired.
  • "INSTANCE": Tree instances will be repaired.
  • "INNER_NODE": Internal nodes will be repaired.
  • "DISKLOG": Disk logs will be repaired.
  • "POOL_QUEUE": The pool queue will be repaired.

disk_domain_id=?

Disk domain ID.

To obtain the value, run the "show disk_domain general" command in the guest view.

engine_id=?

Engine ID.

To obtain the value, run the "show controller general" command in the guest view.

meta_type=?

Type of the metadata object to be reconstructed.

The value can be "ZONE_CKG", "CKG_FREE_EXTENT", or "SPARE_CK", where:

  • "ZONE_CKG": CKG info tree.
  • "CKG_FREE_EXTENT": free extent tree.
  • "SPARE_CK": spare CK tree.

app_type=?

Application type.

The value can be "meta" or "data", where:

  • "meta": metadata.
  • "data": user data.

tier_type=?

Tier type.

The value can be "SSD", "SAS", or "NearLine_SAS", where:

  • "SSD": tier 0 with SSDs.
  • "SAS": tier 1 with SAS disks.
  • "NearLine_SAS": tier 2 with NL-SAS disks.

action=?

Operation type. When the value of "repair_type" is "POOL_META", "INSTANCE", or "INNER_NODE", this parameter is mandatory.

The value can be "repair", "repair_confirm", "repair_cancel", or "clear_state", where:

  • "repair": repair.
  • "repair_confirm": repair confirmation.
  • "repair_cancel": repair canceling.
  • "clear_state": to clear the repair state.

pool_id=?

Storage pool ID. When the value of "repair_type" is "INSTANCE" or "INNER_NODE", the value of "app_type" is "data", and no value is entered for "zone_id", this parameter is mandatory.

To obtain the value, run the "show storage_pool general" command in the guest view.

bak_ckg_id=?

ID of the backup superblock. When the value of "repair_type" is "POOL_ROOT", this parameter is mandatory.

To obtain the value, search for RaBx_BAKCKG0 in the operation logs.

is_old_disklog=?

Whether the disk log is old. When the value of "repair_type" is "POOL_ROOT", this parameter is mandatory.

The value can be "no" or "yes", where:

  • "no": The logs are not old ones.
  • "yes": The logs are old ones.

root_ckg_info=?

Information about the metadata superblock. When the value of "repair_type" is "POOL_ROOT", this parameter is mandatory.

To obtain the value, search for RaBx_CKG0 in the operation logs.

disklog_ckg_info=?

Information about the disk log superblock. When the value of "repair_type" is "POOL_ROOT", this parameter is mandatory.

To obtain the value, search for RaBx_LOGCKG in the operation logs.

disklog_type=?

Type of the disk log.

The value can be "ROOT_DISKLOG", "FORMAT_DISKLOG", or "OTHER_DISKLOG", where:

  • "ROOT_DISKLOG": Disk logs in the log zone are repaired.
  • "FORMAT_DISKLOG": Formatted disk logs in the log zone are repaired.
  • "OTHER_DISKLOG": Other disk logs that are not in the log zone are repaired.

disklog_info=?

Information about the disk log.

  • For disk logs in a log zone, obtain the value by searching for RaBx_RCKGLOG in the operation log.
  • For disk logs of a new version, obtain the value with the tree ID.

force_type=?

Forcible repair type. When the value of "repair_type" is "POOL_META", this parameter is mandatory.

The value can be "ZONE", "DISK", or "ZONE_DISK", where:

  • ZONE: forcibly repairs CKG info tree.
  • DISK: forcibly repairs CK SMO tree.
  • ZONE_DISK: forcibly repairs CK SMO tree and CKG info tree.

zone_id=?

Zone ID. This parameter is displayed when the value of "repair_type" is "POOL_META", and the value of "force_type" is "ZONE" or "ZONE_DISK"; or when the value of "repair_type" is "INSTANCE" or "INNER_NODE", the value of "app_type" is "data", and no values are entered for "pool_id", this parameter is mandatory.

ID of the zone that needs to be repaired.

disk_id=?

Disk ID. The parameter is displayed when the value of "repair_type" is "POOL_META" and the value of "force_type" is "DISK" or "ZONE_DISK"; or when "repair_type" is "DISKLOG" and "disklog_type" is "FORMAT_DISKLOG", this parameter is displayed.

ID of the disk that needs to be repaired.

Views

Developer view

Usage Guidelines

None

Example

Repair the internal node whose engine ID is "0", disk domain ID is "0", metadata object type is "CKG_FREE_EXTEN", application type is "meta", and tier is "SAS".

developer:/>change disk_domain repair_pool_meta repair_type=POOL_META disk_domain_id=0 action=repair_confirm 
DANGER: You are going to repair the metadata on the disk domain. This operation will change the metadata on the disk domain and cause part of the space to lose. 
Suggestion: Before you run this command, check that you want to reconstruct this disk domain. 
Have you read danger alert message carefully?(y/n)y 
Are you sure you really want to perform the operation?(y/n)y 
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-11

Document ID: EDOC1000181575

Views: 642696

Downloads: 30

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